You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by ychawla <pr...@gmail.com> on 2013/03/14 02:28:21 UTC

ServiceMix 4.5.1 snapshot classpath issue

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.

Re: ServiceMix 4.5.1 snapshot classpath issue

Posted by Claus Ibsen <cl...@gmail.com>.
On Thu, Mar 14, 2013 at 6:27 PM, ychawla <pr...@gmail.com> wrote:
> Hi Claus,
> Thanks for looking into this.  This is the exact behavior that I have been
> seeing with the issue only on Windows.
>
> If there is a fix for the bug, would it be in Camel 2.10.5 or are there any
> procedures to put the fix in 2.10.4?  The reason I ask is that SMX 4.5.1 is
> targeting Camel 2.10.4.  I could either try to port the fix into Camel
> 2.10.4, try to upgrade SMX to use 2.10.5 or maybe SMX 4.5.1 or 4.5.2 could
> target Camel 2.10.5.
>

Yeah the fix will be in Camel 2.10.5 and 2.11.0

> For now, I am using SMX 4.5.0 and have manually upgraded CXF to 2.6.4.
>
> Thanks,
> Yogesh
>
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/ServiceMix-4-5-1-snapshot-classpath-issue-tp5716126p5716132.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: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Re: ServiceMix 4.5.1 snapshot classpath issue

Posted by ychawla <pr...@gmail.com>.
Hi Claus,
Thanks for looking into this.  This is the exact behavior that I have been
seeing with the issue only on Windows.

If there is a fix for the bug, would it be in Camel 2.10.5 or are there any
procedures to put the fix in 2.10.4?  The reason I ask is that SMX 4.5.1 is
targeting Camel 2.10.4.  I could either try to port the fix into Camel
2.10.4, try to upgrade SMX to use 2.10.5 or maybe SMX 4.5.1 or 4.5.2 could
target Camel 2.10.5.

For now, I am using SMX 4.5.0 and have manually upgraded CXF to 2.6.4.

Thanks,
Yogesh



--
View this message in context: http://servicemix.396122.n5.nabble.com/ServiceMix-4-5-1-snapshot-classpath-issue-tp5716126p5716132.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: ServiceMix 4.5.1 snapshot classpath issue

Posted by Claus Ibsen <cl...@gmail.com>.
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 <pr...@gmail.com> 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: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen