Hi,

Can you submit a small test case into a JIRA[1]?
I will have a look at this this week.

[1]https://issues.apache.org/jira/browse/CAMEL


On Wed Apr 25 17:25:04 2012, Tobias Hofer wrote:
Hi all,

I switched from Apache Camel version 2.8.4 (in ServiceMix 4.4.1) to the
most recent version 2.9.2. Resource loading in 2.8.4 worked well, but not
in the new release of camel.

I've a blueprint XML that contains the camel route deployed in the deploy
folder as well as several osgi bundles that contain template resources for
XSLT and String-Template.

I get the following error:

java.io.FileNotFoundException: Cannot find resource in classpath for URI: 
com/example/test.xml
   at 
org.apache.camel.util.ResourceHelper.resolveMandatoryResourceAsInputStream(ResourceHelper.java:89)[91:org.apache.camel.camel-core:2.9.2]
   at 
org.apache.camel.component.ResourceEndpoint.loadResource(ResourceEndpoint.java:92)[91:org.apache.camel.camel-core:2.9.2]
   at 
org.apache.camel.component.ResourceEndpoint.getResourceAsInputStreamWithoutCache(ResourceEndpoint.java:81)[91:org.apache.camel.camel-core:2.9.2]
   at 
org.apache.camel.component.ResourceEndpoint.getResourceAsInputStream(ResourceEndpoint.java:77)[91:org.apache.camel.camel-core:2.9.2]
   at 
org.apache.camel.component.stringtemplate.StringTemplateEndpoint.onExchange(StringTemplateEndpoint.java:59)[165:org.apache.camel.camel-stringtemplate:2.9.2]

The same problem exists by the XSLT component.

Kind regards,
Tobias




--
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