Hi What version of Camel do you use? And do you use blueprint or spring in the xml file? And what osgi container do you use? karaf/smx etc?
On Mon, Jun 30, 2014 at 9:31 AM, jyoti <jyoti.sha...@viithiisys.com> wrote: > Hi, > > I am new to camel so don't have much idea about data conversion. I am using > OSGI for this, therefore have included the dependency for camel-xmljson in > pom.xml and have added > <dataFormats> > <xmljson id="xmljson"/> > <xmljson id="xmljsonWithOptions" forceTopLevelObject="true" > trimSpaces="true" rootName="newRoot" skipNamespaces="true" > removeNamespacePrefixes="true" expandableProperties="d > e"/> > </dataFormats> > > <from uri="cxfrs://bean://rsServer"/> > <marshal ref="xmljson"/> > <to uri="requiredUrl" /> > > in blueprint.xml. > But I get the following error on bundle initialization "Data format > 'xmljson' could not be created. Ensure that the data format is valid and the > associated Camel component is present on the classpath". > > Can someone please tell whether I missed something or did something wrong? > > Thanks in advance, > Jyoti > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Data-format-conversion-tp5753032.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/