I want to serialize the incoming message to XML. I'm starting from the camel-example-cxf-osgi example.
My Route:
JaxbDataFormat jaxb = new JaxbDataFormat();
from("cxf:bean:reportIncident")
.convertBodyTo(InputReportIncident.class)
.marshal(jaxb)
.bean(new MyBean2())
.transform(constant(ok));
But I'm getting error and I'm at a loss:
java.io.IOException: javax.xml.bind.JAXBException: class org.apache.camel.example.reportincident.InputReportIncident nor any of its super class is known to this context.
Appreciate any help. Thx.