You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by farha <fa...@wipro.com> on 2011/11/12 09:56:23 UTC
Where to keep .xsl in eclipse
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.
Re: Where to keep .xsl in eclipse
Posted by Claus Ibsen <cl...@gmail.com>.
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 <fa...@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/
Re: Where to keep .xsl in eclipse
Posted by farha <fa...@wipro.com>.
Thanks. My transformation is working.
My scenario is to fetch the soap request from the wsdl, do the neccesary
transformation and then forward it to another wsdl.Please help with the
endpoints framework. I am doing this through eclipse,directing the
camel-context.xml to a Java Dsl through route builder
--
View this message in context: http://camel.465427.n5.nabble.com/Where-to-keep-xsl-in-eclipse-tp4986559p4989798.html
Sent from the Camel - Users mailing list archive at Nabble.com.