Well based on this example and the jaxb contextPath you gave earlier, it appears they aren't the same package. If jaxb can't find annotated classes or an ObjectFactory in the contetPath then you will get the error you were seeing.
-----Original Message----- From: dresden [mailto:isaacv...@gmail.com] Sent: Wednesday, September 08, 2010 2:19 PM To: users@camel.apache.org Subject: Re: Solution?? JAXB Unmarshalling - DataFormat error ... suggestions? I was able to achieve unmarshalling using a different approach. I found the suggestion here: http://stackoverflow.com/questions/2631662/using-apache-camel-how-do-i-u nmarshal-my-deserialized-object-that-comes-in-throug My Spring config looks like this: <route> <from uri="amq2:queue:eat" /> <to uri="xslt:file:src/com/mycompany/connector/resources/test.xslt" /> <convertBodyTo type="com.mycompany.connector.bean.TestBean" /> <bean ref="consumer" /> <to uri="amq2:queue:eaten" /> </route> Currently this method is working. My TestBean class is annotated with JAXB (XmlRootElement). The consumer bean receives a POJO, not an XML message or String. However, if anyone has an example of using an explicit Jaxb DataFormat from a Spring configuration, that would be great. -- View this message in context: http://camel.465427.n5.nabble.com/JAXB-Unmarshalling-DataFormat-error-su ggestions-tp2814620p2817914.html Sent from the Camel - Users mailing list archive at Nabble.com.