Just as a follow up to myself...

Require-Bundle with reexport visibility is a pretty bad practice...

-> richard

On 11/3/10 14:18, Richard S. Hall wrote:
This is what I see:

[heavyweight Launcher]$ java -jar launcher.jar
-------------- Starting
Installed    plugins/a.b.c.d.e_1.0.0.jar
Installed    a.b.c.d.e
Installed    plugins/a.b.c.d_1.0.0.jar
Installed    a.b.c.d
Installed    plugins/a.b.c_1.0.0.jar
Installed    a.b.c
Installed    plugins/a.b_1.0.0.jar
Installed    a.b
Installed    plugins/a_1.0.0.jar
Installed    a
Started    a.b.c.d.e
Started    a.b.c.d
Started    a.b.c
Started    a.b
Started    a
-------------- Started
Starting class a.b.c.d.e.Activator
A == a.A
Starting class a.b.c.d.Activator
A == a.A
Starting class a.b.c.Activator
A == a.A
Starting class a.b.Activator
A == a.A
Stoping class a.b.Activator
Stoping class a.b.c.Activator
Stoping class a.b.c.d.Activator
Stoping class a.b.c.d.e.Activator
Stop
[heavyweight Launcher]$

-> richard


On 11/3/10 12:26, Bruno Rosell i Gui wrote:
Hi!

I have a problem when embedding the Felix 3.0.5. When I start the bundles
some java.lang.NoClassDefFoundError are thown. But If I deploy the same
bundles using the 'org.apache.felix.main.distribution-3.0.5.tar.gz' it runs
without any exception.
I tried to set a diferent vlues for 'org.osgi.framework.bundle.parent' and
'felix.bootdelegation.implicit', but nothing is changed.

I created a small example that shows you what
we have going on (you can dowload it from
http://www.iiia.csic.es/~rosell/del/EmbeddingError.zip). In it you can found:

   -a ( bundle that define the class A)
  -a.b ( bundle that depens of 'a' and reexport it)
  -a.b.c  ( bundle that depens of 'a.b' and reexport it)
  -a.b.c.d  ( bundle that depens of 'a.b.c.d' and reexport it)
  -a.b.c.d.e ( bundle that depens of 'a.b.c.d' and reexport it)
  -Launcher ( embeded felix launcher)

If you go to the Launcher directory and runs the 'java -jar launcher.jar' two java.lang.NoClassDefFoundError: a/A appears on the console. Also if you copy the bundles defined in the Launcher/plugins into the deploy of the felix main
distribution any exception is thrown.

Sorry for the mail so long, but he did not know how to explain myself. Thank you for your attention and I hope we can give someone a solution because I do
not know what more I can do.



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to