- 
        1. Re: camel - jaxb - unable to locate ObjectFactory.class or jaxb.indexdavsclaus Aug 21, 2009 4:30 AM (in response to mfatafta)Can you post your route. In the JAXB marshall stuff you may need to add a JAXB context yourself if you do not have your own jaxb.index file in your own classpath. 
- 
        2. Re: camel - jaxb - unable to locate ObjectFactory.class or jaxb.indexmfatafta Aug 21, 2009 10:16 AM (in response to mfatafta)In my route, I am doing something like this: public class MyRouteBuilder extends RouteBuilder { @Override public void configure() { from ( "direct:my-endpoint" ).unmarshal( "myJaxb" ); } } where I am using a bean ref, which was created like this: 
- 
        3. Re: camel - jaxb - unable to locate ObjectFactory.class or jaxb.indexsharma_arun_se1 Nov 16, 2010 11:02 AM (in response to mfatafta)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 : In my routeBuilder.java Class, I have create route as : from(quartzUri) .to(DataextracterUri) .marshal(myjaxb) .to(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) Edited by: sharma_arun_se on Nov 16, 2010 4:01 PM 
- 
        4. Re: camel - jaxb - unable to locate ObjectFactory.class or jaxb.indexsharma_arun_se1 Nov 20, 2010 7:46 AM (in response to sharma_arun_se1)Hi All, I have found alternative solution of my problem. If anybody face same kind of problem, I will be more than happy to discuss the solution. Regards, Arun Kumar (sharma_arun_se) Expert SOA (Fuse ESB, Camel, ActiveMQ, OSGi) and RESTful Solution Architect, Open Source Contributor. linkedin: http://in.linkedin.com/in/aronkumar 
- 
        5. Re: camel - jaxb - unable to locate ObjectFactory.class or jaxb.indexsocallag Dec 6, 2010 5:54 AM (in response to mfatafta)Your bundle will need to import the packages defined by Constants.JAXB_CONTEXT_PACKAGES These are: "org.apache.camel:org.apache.camel.model:org.apache.camel.model.config:org.apache.camel.model.dataformat:org.apache.camel.model.language:org.apache.camel.model.loadbalancer" 
- 
        6. Re: camel - jaxb - unable to locate ObjectFactory.class or jaxb.indexgunatitdas Dec 9, 2010 4:50 PM (in response to sharma_arun_se1)Hello Arun, Could you please share how were you able to solve the context creation issue? Thanks, Keyur 
- 
        7. Re: camel - jaxb - unable to locate ObjectFactory.class or jaxb.indexffang Dec 9, 2010 6:18 PM (in response to gunatitdas)Hi, Please see the related discussion thread[1], at the end of that discussion, fusetopia kindly share the solution what he found[2] http://fusesource.com/forums/thread.jspa?messageID=8597↕ http://stackoverflow.com/questions/1043109/why-cant-jaxb-find-my-jaxb-index-when-running-inside-apache-felix Freeman 
 
     
     
     
     
    