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

Reply via email to