camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Cannot find resource in classpath using OSGi blueprint
Date Wed, 25 Apr 2012 16:58:45 GMT
On Wed, Apr 25, 2012 at 11:25 AM, Tobias Hofer <tobias.hofer@basis06.ch> 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.
>

There was a recent fix on this. Can you try 2.9.3 SNAPSHOT.

Also do you use xslt include or something? eg how is your xslt
endpoint configured,etc.
And do you use Windows or other OS.


> Kind regards,
> Tobias



-- 
Claus Ibsen
-----------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Mime
View raw message