OSGi framework by itself does not set any context class loader by itself, so, I do not get what do you mean. What class loader do you expect as a context class loader?
On Tue, Jan 20, 2009 at 10:05 PM, Ittay Dror <[email protected]> wrote: > Hi, > > > I have a thirdparty code which uses the idiom of finding packages by > looking for a properties file in META-INF: > > resources = > Thread.currentThread().getContextClassLoader().getResources(metaInfProperties); > > > This is done during handling of a request. > > > The problem is that the context class loader is BundleClassLoader, which > only searches the resources in the bundle it is associated with. > > > This is not the default class loader that is used. It is set by Jetty > before handling the request. This is because jetty is given it by > pax-web, which creates it in HttpServiceStarted. > > > My question is why is there a need to replace the default context class > loader (the one set by the osgi container)? Is there a way to override > this behavior? > > > Thank you, > > Ittay > > > -- > -- > Ittay Dror <[email protected]> > > > > _______________________________________________ > general mailing list > [email protected] > http://lists.ops4j.org/mailman/listinfo/general > -- Alin Dreghiciu http://www.ops4j.org - New Energy for OSS Communities - Open Participation Software. http://www.qi4j.org - New Energy for Java - Domain Driven Development. http://malaysia.jayway.net - New Energy for Projects - Great People working on Great Projects at Great Places _______________________________________________ general mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/general
