On 11/3/10 15:02, Bruno Rosell i Gui wrote:
Hi!
When I run it I see anotherthing. It is possible that you have any system
property that mosify the Felix?
I don't think so. I'm just running it like you said to do. You embed the
Felix framework into launcher.jar and set the config properties in
there, so I don't see why mine would be different.
What platform and Java version are you using? I'm on a Mac with Java 1.6.
-> richard
I see:
--------------- EMBEDDING ----------
-------------- Starting
Installed plugins/a.b_1.0.0.jar
Installed a.b
Installed plugins/a.b.c.d.e_1.0.0.jar
Installed a.b.c.d.e
Installed plugins/a_1.0.0.jar
Installed a
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
Started a.b
Started a.b.c.d.e
Started a
Started a.b.c.d
Started a.b.c
-------------- Started
Starting class a.b.Activator
A == a.A
Starting class a.b.c.d.e.Activator
java.lang.NoClassDefFoundError: a/A
at a.b.c.d.e.Activator.start(Activator.java:16)
at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:633)
at org.apache.felix.framework.Felix.activateBundle(Felix.java:1822)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1739)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1143)
at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
at java.lang.Thread.run(Thread.java:636)
Caused by: java.lang.ClassNotFoundException: a.A not found by a.b.c.d.e [2]
at
org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:788)
at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:72)
at
org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1765)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
... 7 more
Starting class a.b.c.d.Activator
java.lang.NoClassDefFoundError: a/A
at a.b.c.d.Activator.start(Activator.java:16)
at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:633)
at org.apache.felix.framework.Felix.activateBundle(Felix.java:1822)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1739)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1143)
at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
at java.lang.Thread.run(Thread.java:636)
Caused by: java.lang.ClassNotFoundException: a.A not found by a.b.c.d [4]
at
org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:788)
at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:72)
at
org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1765)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
... 7 more
Starting class a.b.c.Activator
A == a.A
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]