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: Where to keep .xsl in eclipse
Date Sat, 12 Nov 2011 09:37:35 GMT
Hi

The src/main/resources is automatic in the classpath, so do like this

                .to("xslt:META-INF/spring/createIncident.xsl");

classpath is the default, but you can explicit specify this

                .to("xslt:classpath:META-INF/spring/createIncident.xsl");

You can also use file: to refer to the file system.
See the xslt wiki page for details.



On Sat, Nov 12, 2011 at 9:56 AM, farha <farha.jahan@wipro.com> wrote:
> Can anyone tell where to keep the .xsl in eclipse??
>
> I am using Fuse-4.4.1 in eclipse-Helios. I have to send and xml file from a
> folder to output folder transforming it using xslt.
>
> This is the code
> from("file://rider/inbox/")
>
>                .wireTap("log:com.wipro.camel.MyRouteBuilder")
>                .to("xslt:C:/Documents and Settings/yadnwan/workspace/Ebonding/
> src/main/resources/META-INF/spring/createIncident.xsl");
>                //.to("file://rider/outbox/");
>
> And I am getting this error:
>
>
> Exception in thread "SpringOsgiExtenderThread-3"
> org.apache.camel.RuntimeCamelEx
> ception: org.apache.camel.FailedToCreateRouteException: Failed to create
> route r
> oute6 at: >>> To[xslt:file:C:/Documents and
> Settings/yadnwan/workspace/Ebonding/
> src/main/resources/META-INF/spring/createIncident.xsl] <<< in route:
> Route[[From
> [file://rider/inbox/]] -> [WireTap[log:com.wipro.... because of Failed to
> resolv
> e endpoint: xslt://file:C:/Documents and
> Settings/yadnwan/workspace/Ebonding/src
> /main/resources/META-INF/spring/createIncident.xsl due to: File:
> C:\Documents an
> d
> Settings\yadnwan\workspace\Ebonding\src\main\resources\META-INF\spring\createI
> ncident.xsl not found. URL [file:C:/Documents and
> Settings/yadnwan/workspace/Ebo
> nding/src/main/resources/META-INF/spring/createIncident.xsl]
>
>
> I have tried different locations but still it is not working.
> Please help.
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Where-to-keep-xsl-in-eclipse-tp4986559p4986559.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



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