Hi, Not sure to follow you.
The thing is that the META-INF/services should be in the Bundle-Classpath in order to be in the classloader. Regards JB -- Jean-Baptiste Onofré [email protected] http://blog.nanthrax.net Talend - http://wwx.talend.com ----- Reply message ----- From: "MarkS1900" <[email protected]> To: <[email protected]> Subject: OSGi classpath getResources issue in ServiceMix 4.4.0 Date: Wed, Jan 11, 2012 5:01 pm 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.
