|Target Platform Jar Inter-dependencies [message #1219459]
||Wed, 04 December 2013 00:20
| Aron L
Registered: December 2013
I am using OSGi as a platform for an application that has a bundle, "B",
and a target platform, "TP". Within TP there is a folder containing two
jars, "J1" and "J2".
B calls code in J1 that tries to load a class "C" from J2. While
code in B can load C without a problem, (because J2 is correctly
listed in B's MANIFEST.MF), code in J1 cannot load C.
Further investigation shows that the ContextFinder, when called to load
C from J1, traverses the stack until reaching the
BundleClassLoader/DefaultClassLoader associated with J1, whose "domains"
field includes only J1.
Is there a way to specify in OSGi that J1 depends on J2, without
wrapping each jar in its own bundle?
Powered by FUDForum
. Page generated in 0.01415 seconds