Hi

You need to put the file xquery/xmlTohtml.xq into the C-Report.jar so
its on the classpath when you run the application.

On Tue, Jan 19, 2016 at 6:19 AM, Jaishankar <[email protected]> wrote:
> Hi All,
>
> Simple Route Defined :
> from("direct:transformToHTML").routeId("transformToHTMLRoute")
>         .convertBodyTo(org.w3c.dom.Document.class)
> *       .to("xquery:xquery/xmlTohtml.xq")*
>         .to("log:XMLtoHTMLProcessedData?showBody=true")
>         .setHeader("CamelFileName", constant("report.html"))
>         .to("file:D:/RedKnee_Repo/Workplace-files/SoapUI-Report/doneFiles")
>         .end()
> ;
>
> While executing jar with the below command I am getting
> java.io.FileNotFoundException: Cannot find resource: xquery/xmlTohtml.xq in
> classpath for URI: xquery/xmlTohtml.xq
>
> java -jar CI-Report.jar
>
> I tried with even xslt eg: .to("xslt:xsl/xmlTohtml.xsl") with this changes
> also getting same error
>
> Dependency details :
> camel-core - 2.16.1
> camel-saxon - 2.16.1
> camel-spring - 2.16.1
>
> JKD - 1.7
>
> please help me in resolving this problem.
>
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Cannot-find-resource-when-executing-Runnable-Jar-which-has-xquery-and-xslt-transformations-tp5776406.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to