Hi Please use the user forum of that vendors product https://community.jboss.org/en/jbossfuse
On Fri, Aug 22, 2014 at 10:40 PM, ReDiya <[email protected]> wrote: > Hi > > I am trying to read a json file and convert it into a xml. When I run the > attached blueprint in my local jboss studio it runs without any error. When > I deploy it as a OSGI bundle it fails with the following Error > > Error occurred during starting Camel: CamelContext(blueprintContext) due > Failed to create route route15 at: >>> Unmarshal[ref:xmljsonWithOptions] <<< > in route: Route(route15)[[From[stream:file?fileName=data/inbox/json.js... > because of Data format 'xmljson' could not be created. Ensure that the data > format is valid and the associated Camel component is present on the > classpath > > org.apache.camel.FailedToCreateRouteException: Failed to create route > route15 at: >>> Unmarshal[ref:xmljsonWithOptions] <<< in route: > Route(route15)[[From[stream:file?fileName=data/inbox/json.js... because of > Data format 'xmljson' could not be created. Ensure that the data format is > valid and the associated Camel component is present on the classpath > at > org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:912)[org.apache.camel:camel-core:2.12.0.redhat-610379 > com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:1.4] > at > org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:177)[org.apache.camel:camel-core:2.12.0.redhat-610379 > com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:1.4] > at > org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:778)[org.apache.camel:camel-core:2.12.0.redhat-610379 > com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:1.4] > at > org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1955)[org.apache.camel:camel-core:2.12.0.redhat-610379 > com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:1.4] > > Here is my copy of my blueprint.xml > > <?xml version="1.0" encoding="UTF-8"?> > <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:camel="http://camel.apache.org/schema/blueprint" > xsi:schemaLocation=" > http://www.osgi.org/xmlns/blueprint/v1.0.0 > http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd > http://camel.apache.org/schema/blueprint > http://camel.apache.org/schema/blueprint/camel-blueprint-2.12.0.xsd"> > > <camelContext trace="true" id="blueprintContext" > xmlns="http://camel.apache.org/schema/blueprint"> > <dataFormats> > <xmljson id="json"/> > <xmljson forceTopLevelObject="false" rootName="root" > trimSpaces="true" skipNamespaces="false" removeNamespacePrefixes="false" > expandableProperties="d e" id="xmljsonWithOptions"/> > </dataFormats> > <route> > <from uri="stream:file?fileName=data/inbox/json.json"/> > <unmarshal ref="xmljsonWithOptions"/> > <to uri="stream:out"/> > </route> > </camelContext> > </blueprint> > > I have included the following features to my fabric profile > > fabric:profile-edit --features camel-stream jboss-fuse-full > > fabric:profile-edit --features camel-xmljson jboss-fuse-full > > fabric:profile-edit --features camel-gson jboss-fuse-full > > fabric:profile-edit --features camel-xstream jboss-fuse-full > > fabric:profile-edit --features camel-jackson jboss-fuse-full > > regards > Suresh > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/xmljson-could-not-be-created-tp5755586.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: [email protected] Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/
