Re: JAXB Exception

2009-05-25 Thread Frank C.
.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 >>>> >>>> >>>> >>> >>> >> > > > -- View this message in context: http://www.nabble.com/JAXB-Exception-tp23706927p23708575.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: JAXB Exception

2009-05-25 Thread Willem Jiang
JAXB DataFormat supports to set the JaxbContext. Please try these code, JaxbDataFormat jaxb = new JaxbDataFormat(); jaxb.setContext(JAXBContext.newInstance(EndpointInformation.class)); Willem Frank C. wrote: > Willem and Ade: > > What worked is trimming the string to "org.helios.routing.server"

Re: JAXB Exception

2009-05-25 Thread Frank C.
b) >> .to("browse:pingEnd"); >> } >> >> where >> jaxb = new JaxbDataFormat(); >> jaxb.setContextPath(targetClassName); >> >> and targetClassName = "org.helios.routing.server.EndpointInfor

Re: JAXB Exception

2009-05-25 Thread Adrian Trenaman
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 O

Re: JAXB Exception

2009-05-25 Thread Willem Jiang
Is there an ObjectFactory or a jaxb.index file in the package of org.helios.routing.server.EndpointInformation ? Can you double check it ? If not , JAXB can't do the marshal and unmarshal work for you. Willem Frank C. wrote: > I am getting a "Caused by: javax.xml.bind.JAXBException: > "org.helio

JAXB Exception

2009-05-25 Thread Frank C.
h(targetClassName); and targetClassName = "org.helios.routing.server.EndpointInformation" I am using Camel 2.0-M1 -- View this message in context: http://www.nabble.com/JAXB-Exception-tp23706927p23706927.html Sent from the Camel - Users mailing list archive at Nabble.com.