Hi,

I'm using camel, camel-juel 1.6.1 and servicemix 4. I have simple route like
this:

<route>
  <camel:from uri="timer:test?period=4000"/>
    <camel:setBody>
      <camel:constant>This is test message</camel:constant>
    </camel:setBody>
    <camel:choice>
      <camel:when>
        <camel:el>${in.body.startsWith('Th')}</camel:el>
        <camel:to uri="stream:out"/>
      </camel:when>
      <camel:otherwise>
        <camel:setBody>
          <camel:constant>Something else</camel:constant>
        </camel:setBody>
        <camel:to uri="stream:out"/>
      </camel:otherwise>
    </camel:choice>
  </route>

But when I try deploy and run my bundle into osgi container I get exception 

java.lang.NoSuchMethodError:
javax.el.ExpressionFactory.newInstance(Ljava/util/Properties;)Ljavax/el/ExpressionFactory;
        at
org.apache.camel.language.juel.JuelExpression.getExpressionFactory(JuelExpression.java:67)
        at
org.apache.camel.language.juel.JuelExpression.setVariable(JuelExpression.java:105)
        at
org.apache.camel.language.juel.JuelExpression.populateContext(JuelExpression.java:89)
        at
org.apache.camel.language.juel.JuelExpression.evaluate(JuelExpression.java:59)
        at
org.apache.camel.impl.ExpressionSupport.matches(ExpressionSupport.java:32)

I've installed camel-juel via features install. But I noticed that
juel-2.1.0 bundle imports javax.el package from pax jsp support bundle which
javax.el.ExpressionFactory class don't have newInstance method.
javax.el.ExpressionFactory.newInstance method is in javax.el package inside
juel-2.1.0 bundle. 

Where I can find example how to use camel-juel with servicemix?

Cheers,
Marcin
-- 
View this message in context: 
http://old.nabble.com/camel-juel-%2B-servicemix4-tp27610700p27610700.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to