Hi

I think I have reproduce the same problem on Camel trunk, and
currently working on fixing this.
Have only seen the problem in an OSGi based xslt test running on Windows.


On Thu, Mar 14, 2013 at 2:28 AM, ychawla <[email protected]> wrote:
> Hello All,
> I am trying to sue ServiceMix 4.5.1 snapshot on windows and I am having some
> issues with finding XSLT's in the classpath.  Camel is throwing this error:
>
> Caused by: javax.xml.transform.TransformerException:
> java.io.FileNotFoundException: Cannot find resource in classpath for URI:
> xslt\my.xsl
>         at
> org.apache.camel.builder.xml.XsltUriResolver.resolve(XsltUriResolver.java:83)
>         at
> org.apache.camel.builder.xml.XsltUriResolver.resolve(XsltUriResolver.java:91)
>         at
> org.apache.camel.component.xslt.XsltEndpoint.loadResource(XsltEndpoint.java:95)
>         at
> org.apache.camel.component.xslt.XsltEndpoint.doStart(XsltEndpoint.java:108)
>         at
> org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)
>         at
> org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:1763)
>         at
> org.apache.camel.impl.DefaultCamelContext.doAddService(DefaultCamelContext.java:931)
>         at
> org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:892)
>         at
> org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:475)
>         ... 35 more
> Caused by: java.io.FileNotFoundException: Cannot find resource in classpath
> for URI: xslt\my.xsl
>         at
> org.apache.camel.util.ResourceHelper.resolveMandatoryResourceAsInputStream(ResourceHelper.java:106)
>         at
> org.apache.camel.builder.xml.XsltUriResolver.resolve(XsltUriResolver.java:81)
>
> When I deploy the same bundle in SMX 4.5.0, it deploys just fine.  Could
> there be an issue with a classpath resolver in the 4.5.1 snapshot?  Camel
> did see an issue with this in the past, but indicate that is has been fixed:
>
> https://issues.apache.org/jira/browse/CAMEL-5223
>
> I tried a previous snapshot of 4.5.1 on my MacOS and the bundle started with
> no issues.
>
> Any ideas?
>
> Thanks,
> Yogesh
>
>
>
>
>
> --
> View this message in context: 
> http://servicemix.396122.n5.nabble.com/ServiceMix-4-5-1-snapshot-classpath-issue-tp5716126.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to