BJ,
Thanks for pointing me in the right direction.

Thanks,
Aron


On Tue, Dec 3, 2013 at 6:21 PM, BJ Hargrave <[email protected]> wrote:

> "ContextFinder" and "Target Platform" are Eclipse specific concepts. You
> should try to ask your question in the Equinox Forum:
> http://www.eclipse.org/forums/index.php/f/31/
> --
>
>  *BJ Hargrave*
> Senior Technical Staff Member, IBM
> OSGi Fellow and CTO of the *OSGi Alliance* <http://www.osgi.org/>
> *[email protected]* <[email protected]>
>
> office: +1 386 848 1781
> mobile: +1 386 848 3788
>
>
>
>
>
> From:        Aron Lurie <[email protected]>
> To:        <[email protected]>
> Date:        2013/12/03 17:49
> Subject:        [osgi-dev] Target Platform Jar Inter-dependencies
> Sent by:        [email protected]
> ------------------------------
>
>
>
> Hi All,
>
> 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?
>
> Thanks,
> Aron_______________________________________________
> OSGi Developer Mail List
> [email protected]
> https://mail.osgi.org/mailman/listinfo/osgi-dev
>
>
> _______________________________________________
> OSGi Developer Mail List
> [email protected]
> https://mail.osgi.org/mailman/listinfo/osgi-dev
>
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to