Hi

Getting below compilation error when I start ActiveMQ.

Error: Caused by: org.apache.camel.FailedToCreateRouteException: Failed to 
create route route1: 
Route(route1)[[From[{{camel.xslt.file.directory}}?delay={{ca... because of 
Error checking type of the expression 'funcall(current-dateTime,[])'.

I got the same error when I ran java standalone camel program but it is solved 
once I copied camel-saxon.jar under java class path. 
But for spring configuration, it is not working if I copy camel-saxon.jar in 
the ActiveMq class path libs like  ../optional or../ camel or ../extra etc,.

I have tried below options as suggested in the forums but still couldn't solve 
the issue.


  1.  <to uri="xslt:file:xsl/my.xsl?transformerFactory=tFactory" /> <bean > 
id="tFactory" class="net.sf.saxon.TransformerFactoryImpl" />
  2.  Environment variable setup in the  camel-configuration file
       <prop 
key="javax.xml.transform.TransformerFactory">net.sf.saxon.xpath.XPathFactoryImpl</prop>


Appreciate your help..


Just adding the code snippets here..

Camel.xml
-----------------
<camelContext xmlns="http://activemq.apache.org/camel/schema/spring";>
  <route>
    <from uri="activemq:My.Queue"/>
    <to uri=" xslt:{{camel.xslt.file.directory}}/test.xslt"/>
    <to uri="activemq:Another.Queue"/>
  </route>
</camelContext>


test.xslt
-------------
   <xsl:value-of select="current-dateTime()"/>




Thanks
Mallesh


Reply via email to