camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mallesh Gorupati <>
Subject Active MQ 5.15.5 - XSLT2.0 - Compilation Issue
Date Wed, 06 Sep 2017 17:51:58 GMT

Getting below compilation error when I start ActiveMQ.

Error: Caused by: org.apache.camel.FailedToCreateRouteException: Failed to create route route1:
Route(route1)[[From[{{}}?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..

<camelContext xmlns="">
    <from uri="activemq:My.Queue"/>
    <to uri=" xslt:{{}}/test.xslt"/>
    <to uri="activemq:Another.Queue"/>

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


View raw message