Hi The xslt component is part of camel-spring and uses the spring resource abstraction. Hence why it works when using spring-dm. With blueprint its another story. So there may be something failing to have it load a resource on the classpath.
Obviously it would be great if the community stepped up and helped with https://issues.apache.org/jira/browse/CAMEL-3272 To provide more blueprint unit tests. Essentially we need to 2x tests with osgi - spring-dm - blueprint So its in fact a massive task to do. And we do have a fair amount of tests already. I suggest to create a JIRA for the xslt issue so we can try to address that for Camel 2.8. On Mon, May 2, 2011 at 7:53 PM, Ioannis Canellos <[email protected]> wrote: > 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 > * > -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com CamelOne 2011: http://fusesource.com/camelone2011/ Twitter: davsclaus Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
