• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

my package doesnt contain ObjectFactory.class or jaxb.index

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I am using JAxb in an a java application named "MyApplication"and i am working with netbeans 6.5.1
I try to display my xml file:

I get this errors


Please help me ,
 
Ranch Hand
Posts: 46
Hibernate Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi ..
me too getting the same error...
this is my console..



please can anyone help me out...

thanks ,
Devan
 
Devan Brahma
Ranch Hand
Posts: 46
Hibernate Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hellloooo..
is there any one here...
please help me out

,
Devan
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I also get this error and I have some clues (but not a solution, yet):
I generated some Java classes through JAXB using an XSD schema, and after that, I could serialize/deserialize to/from XML.
When I generated the Java classes using JAXB 2.0 (through Eclipse plugin XJC), another class, named ObjectFactory.java was generated.
I think this class is needed for marshalling/unmarshalling objects with JAXB 2.0; because later I tried marshaling objects with JAXB, but not through XJC plugin, therefore not having an ObjectFactory.java class.
If you need a tutorial on JAXB with XJC in Eclipse, you can check this tutorial I found, Using JAXB in Eclipse for XML serialization
 
Ranch Hand
Posts: 874
Android VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

When I generated the Java classes using JAXB 2.0 (through Eclipse plugin XJC), another class, named ObjectFactory.java was generated.



Yes ObjectFactory.java is generated during xsd to java conversions. This is required for marshalling/Unmarshalling objects.
xjc utility comes with most of the JAXB implementations.
 
reply
    Bookmark Topic Watch Topic
  • New Topic