Hi, I hope somebody have solved this problem, as I can see there are number of posting for the problem but no real and satisfactory common solution to the problem.
Let me discuss my issue: I have created jaxb bean as : <bean id="myJaxb" class="org.apache.camel.model.dataformat.JaxbDataFormat"> <property name="prettyPrint" value="true"/> <property name="contextPath" value="com.xyz.abc.xa.jaxb.generated"/> </bean> In my routeBuilder.java Class, I have create route as : from(quartzUri) .to(DataextracterUri) .marshal(myjaxb) .(ftpServerURI); Now for your concern, I verify you that my jaxb generated classes are in package: com.xyz.abc.xa.jaxb.generated. This include ObjectFactory.class. But there is nothing like jaxb.index inside it. Why classloader not picking up the class ObjectFactory, although it is there in com.xyz.abc.xa.jaxb.generated package. FYI: I am deploying my bundle using feature in ServiceMix 4.3--2.0 Error Log: Caused by: javax.xml.bind.JAXBException: Unable to create context - with linked exception: http://java.lang.reflect.InvocationTargetException at javax.xml.bind.ContextFinder.find(ContextFinder.java:68) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:77) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:73) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:69) at com.vzb.ram.bind.ns.XmlPoJoUtil.toPoJo(XmlPoJoUtil.java:185) ... 54 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method):1.6.0_18 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39):1.6.0_18 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25):1.6.0_18 at java.lang.reflect.Method.invoke(Method.java:597):1.6.0_18 at javax.xml.bind.ContextFinder.find(ContextFinder.java:63) ... 58 more Caused by: javax.xml.bind.JAXBException: "com.xyz.abc.xa.jaxb.generated" doesnt contain ObjectFactory.class or jaxb.index at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:197) ... 63 more Thank you, Arun Kumar (sharma_arun_se) -- View this message in context: http://camel.465427.n5.nabble.com/Help-with-Camel-JAXB-SMX4-Camel-2-1-0-tp470566p3267328.html Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.