I have OSGi bundle that has configuration files in the META-INF/services/*
location. (Such as
resteasy-jaxrs-2.2.3.GA.jar/META-INF/services/javax.ws.rs.ext.Providers).

Now when another bundle attempts to access the resource with the following
code, this resource is not found:

Enumeration en =
Thread.currentThread().getContextClassLoader().getResources("META-INF/services/"
+ Providers.class.getName());

Of course if this resource exists in the current OSGi bundle, then it is
found.

More on this issue described here: 
https://issues.jboss.org/browse/RESTEASY-640

Is this expected behaviour?  Why?


--
View this message in context: 
http://servicemix.396122.n5.nabble.com/OSGi-classpath-getResources-issue-in-ServiceMix-4-4-0-tp5137185p5137185.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to