XsltComponent was moved the camel-core from camel-spring since Camel 2.9.0.
But I don't think it break the resource loading from class path.
Can you try to use the uri like this ?
"xslt:com/mycompany/test.xsl".

On Thu Apr 19 16:54:18 2012, Michael Szalay wrote:
Hi all

Because of bug https://issues.apache.org/jira/browse/CAMEL-4913 I tried to 
migrate
from Camel 2.8.4 to Camel 2.9.2.

Now, all my "xslt:"-endpoints do not work anymore. We load the xslt as a 
resource
from classpath, i.e. "xslt:com.mycompany/test.xsl".

This worked in 2.8.4, but does not work in 2.9.2 anymore.

Caused by: java.io.FileNotFoundException: Cannot find resource in classpath for 
URI: com.mycompany/test.xsl
         at 
org.apache.camel.util.ResourceHelper.resolveMandatoryResourceAsUrl(ResourceHelper.java:122)
         at 
org.apache.camel.component.xslt.XsltEndpoint.loadResource(XsltEndpoint.java:67)
         at 
org.apache.camel.component.xslt.XsltEndpoint.<init>(XsltEndpoint.java:51)
         at 
org.apache.camel.component.xslt.XsltComponent.createEndpoint(XsltComponent.java:131)
         at 
org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:91)
         at 
org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:437)

Has anything changed in the resource loading from Camel 2.8.4 to 2.9.2?

Regards Michael




--
Willem
----------------------------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
        http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang

Reply via email to