I am trying to get basic unmarshalling to work. The samples show this (and I
am trying it verbatim, but changed the package ref), but I get the following
error.

<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring";>
  <dataFormats>
    <jaxb id="myJaxb" prettyPrint="true"
contextPath="org.apache.camel.example"/>
  </dataFormats>

  <route>
    <from uri="direct:start"/>
    <marshal ref="myJaxb"/>
    <to uri="direct:marshalled"/>
  </route>
  <route>
    <from uri="direct:marshalled"/>
    <unmarshal ref="myJaxb"/>
    <to uri="mock:result"/>
  </route>

</camelContext>


Failed to create route route1 at: >>> Marshal[ref:myJaxb] <<< in route:
Route[[From[direct:start]] -> [Marshal[ref:myJaxb], To[direc... because of
dataFormat must be specified

Are the docs out of date? What am I missing?

My Spring config points to these XSDs:

xsi:schemaLocation="
   http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
   http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
   http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd
   "

Thanks in advance for any help!
-- 
View this message in context: 
http://camel.465427.n5.nabble.com/JAXB-Unmarshalling-DataFormat-error-suggestions-tp2814620p2814620.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to