Hi,

I changed the 2nd URI as you told. Now a FileNotFound exception is thrown.
It says "Cannot find resource in classpath for URI:
/home/madusanka/Desktop/example.xsl". The "example.xsl" file exists in my
desktop. How to set the classpath in the URI?

    <camel:camelContext xmlns="http://camel.apache.org/schema/spring";>
        <camel:route>
            <camel:from uri="file:///home/madusanka/Desktop/inbox?noop=true"
/>
            <camel:to uri="xslt:///home/madusanka/Desktop/example.xsl"/>
            <camel:to
uri="file:///home/madusanka/Desktop/outbox?noop=true"/>
        </camel:route>
    </camel:camelContext>


 logException in thread "SpringOsgiExtenderThread-4"
org.apache.camel.RuntimeCamelException:
org.apache.camel.FailedToCreateRouteException: Failed to create route route2
at: >>> To[xslt:///home/madusanka/Desktop/example.xsl] <<< in route:
Route[[From[file:///home/madusanka/Desktop/inbox?noop=true]]... because of
Failed to resolve endpoint: xslt:///home/madusanka/Desktop/example.xsl due
to: java.io.FileNotFoundException: Cannot find resource in classpath for
URI: /home/madusanka/Desktop/example.xsl
        at
org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1326)
        at
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:120)
        at
org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:285)
        at
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)
        at
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)
        at
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
        at
org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235)
        at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:358)
        at
org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)




--
View this message in context: 
http://camel.465427.n5.nabble.com/Error-in-XSLT-message-tranformation-tp5744263p5744296.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to