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

Reply via email to