• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

my package doesnt contain ObjectFactory.class or jaxb.index

 
moha mohamed
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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 ,
 
Devan Brahma
Ranch Hand
Posts: 46
Hibernate Java Tomcat Server
  • Mark post as helpful
  • send pies
  • 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 Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hellloooo..
is there any one here...
please help me out

,
Devan
 
Ghiutzu Pop
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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
 
Balu Sadhasivam
Ranch Hand
Posts: 874
Android Java VI Editor
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic