2 Jun 2008 20:48
Re: help understanding osgi.parentClassLoader
I'm sorry I sent my email a little too fast, I still had the parentclassloader set as app. So now my question is how else can it work if I don't supply app has the loader given the scenario I described in my previous email. Thanks Shravan On Mon, Jun 2, 2008 at 2:38 PM, nebulae <shravan.mishra@...> wrote: > Thanks a lot Tom, you're right xerces.jar was indeed in the ext dir > and that's why osgi.parentClassloader=app worked and so would ext. > > I was able to fix this problem by supplying DynamicImport-Package: * > in one of my bundles. Here are the details: > > > I have a declarative service let's say in a bundle - Ads. > Now Ads calls a leagcy code which has been wrapped as a bundle and > loaded in the OSGI environ - Lega > > Ads is calling Lega's APIs. > > Now Lega is calling Jdom which in turn calls > org.sax.helpers.XMLReaderFactory.loadClass which is in rt.jar. > > Now I'm assuming rt.jar is using class.forName() to load a Sax driver > from xerces.jar. > > What I did was put DynamicImport-Package in Ads's manifest and it(Continue reading)
RSS Feed