Halo Jean Baptiste, No, I didn't try such statements! I think that it wouldn't help because the class loader which tries to load the resource is the boot class loader and not the bundle classloader.
On Mon, May 2, 2011 at 8:43 PM, Jean-Baptiste Onofré <[email protected]>wrote: > Hi Ioannis, > > did you try using Bundle-Classpath statement in MANIFEST. > > Something like Bundle-Classpath: ., META-INF/my/xslt > > Regards > JB > > > On 05/02/2011 07:28 PM, Ioannis Canellos wrote: > >> I am building a camel route using camel-blueprint inside karaf. >> >> My route contains an xslt transfromation, but it seems that the Xslt >> component can't find my xslt document, which is inside the bundle that >> contains the routes. >> >> The problem is that I get a FileNotFoundException >> java.io.FileNotFoundException: class path resource >> [net/iocanel/xslt/mint-mo-xslt.xsl] cannot be opened because it does not >> exist >> at >> >> org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:158) >> >> >> at >> >> org.apache.camel.component.xslt.XsltComponent.loadResource(XsltComponent.java:156) >> >> >> Note: That my bundle does not import the package which contains the xslt. >> >> -- *Ioannis Canellos* * http://iocanel.blogspot.com Apache Karaf <http://karaf.apache.org/> Committer & PMC Apache ServiceMix <http://servicemix.apache.org/> Committer *
