Showing results for 
Search instead for 
Did you mean: 
Mission Specialist
Mission Specialist

JAXB marshal springDSL


I  tried to execute a lab  to unmarshal xml files to Java object using spring DSL with jaxb (Fuse 7), however occurs this message when I execute the camel route


Caused by: javax.xml.bind.JAXBException: "" doesnt contain ObjectFactory.class or jaxb.index

In the course material, is wrote to create a route using the tags <dataFormats>



    <bean id="xmlProcessor" class="" />

    <camelContext id="camelContext-5934cd73-2041-4b43-aa3c-52f4f62aaeef"
        trace="false" xmlns="">
      		<jaxb id="jaxb"  contextPath="" ></jaxb>
        <route id="_route1">
            <from id="_from1" uri="file:files/xml"/>
            <unmarshal ref="jaxb"/> 
            <to uri="bean:xmlProcessor" />

I don' t  understand the reason for this error because of I made an annotated class, as described in JB421 and put the class in the package

Does somebody already have this problem?






Labels (3)
0 Replies
Join the discussion
You must log in to join this conversation.