Hmm - I think you should be providing a path to the JAXB marshaller, not
a class name.
Try:
jaxb.setContextPath("org.helios.routing.server");
Best,
Ade
Frank C. wrote:
I am getting a "Caused by: javax.xml.bind.JAXBException:
"org.helios.routing.server.EndpointInformation" doesnt contain
ObjectFactory.class or jaxb.index" exception when attempting to execute the
following route:
public void configure() throws Exception {
from("direct:ping")
.marshal(jaxb)
.to(endpointInformation.getEpUrl())
.unmarshal(jaxb)
.to("browse:pingEnd");
}
where
jaxb = new JaxbDataFormat();
jaxb.setContextPath(targetClassName);
and targetClassName = "org.helios.routing.server.EndpointInformation"
I am using Camel 2.0-M1