[ https://issues.apache.org/jira/browse/CAMEL-9921?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15261857#comment-15261857 ]
Claus Ibsen commented on CAMEL-9921: ------------------------------------ Works fine with karaf 4.0.4 and camel 2.17.0 {code} karaf@root()> camel:route-list Context Route Status Total # Failed # Inflight # Uptime ------- ----- ------ ------- -------- ---------- ------ camel-1 route1 Started 0 0 0 51.470 seconds karaf@root()> camel:route-show route1 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <route customId="false" id="route1" xmlns="http://camel.apache.org/schema/spring"> <from uri="file:/tmp/inbox?fileName=abc-order.xml"/> <setHeader headerName="approval" id="setHeader1"> <constant>AUTO</constant> </setHeader> <to uri="ref:xml2json" id="to1"/> <to uri="file:/tmp/outbox?fileName=xyz-order.json" id="to2"/> </route> {code} karaf@root()> info Karaf Karaf version 4.0.4 > Dozer variable mapping doesn't work on karaf > -------------------------------------------- > > Key: CAMEL-9921 > URL: https://issues.apache.org/jira/browse/CAMEL-9921 > Project: Camel > Issue Type: Bug > Components: camel-dozer > Affects Versions: 2.15.6, 2.17.0 > Reporter: Tomohisa Igarashi > Priority: Minor > > The configuration variables defined in transformation.xml is not resolved to > the value on karaf. It just works in unit test and JBoss EAP via SwitchYard. > I also tried to run with camel-2.18-SNAPSHOT, but it requires > (&(osgi.wiring.package=org.apache.felix.gogo.commands)(version>=0.16.0)(!(version>=1.0.0))) > while karaf-2.4.4 bundles felix gogo 0.12.1. > h4. Steps to reproduce > # Checkout xml-to-json example from here - > https://github.com/fusesource/fuseide/tree/master/examples/transformation/xml-to-json > # Change camel version to 2.17.0 in its pom.xml > # Run mvn install > # Start a karaf instance > # Add URLs > {code} > karaf@root> features:addurl > mvn:org.apache.camel.karaf/apache-camel/2.17.0/xml/features > karaf@root> features:addurl > mvn:org.jboss.tools.fuse.examples.transformation/xml-to-json/1.0.0-SNAPSHOT/xml/features > {code} > # Install the application > {code} > karaf@root> features:install xml-to-json > {code} > # Copy input file > {code} > # cp src/data/abc-order.xml /tmp/inbox/ > {code} > # Check the output file '/tmp/outbox/xyz-order.json'. You would see > "origin":"$\{ORIGIN}" while $\{ORIGIN} should have been resolved to 'Web'. -- This message was sent by Atlassian JIRA (v6.3.4#6332)