Do you always need an ObjectFactory class when using JAXB?

Posted by Marcus on Stack Overflow See other posts from Stack Overflow or by Marcus
Published on 2010-04-19T13:27:43Z Indexed on 2010/04/19 13:33 UTC
Read the original article Hit count: 342

Filed under:
|

Do you always need an ObjectFactory class when using JAXB?

Without it I get this exception:

javax.xml.bind.JAXBException: "com.a.b.c" doesnt contain ObjectFactory.class or jaxb.index

I gather the ObjectFactory can be overkill. But given this exception I'm guessing you need it.. but not sure why?

© Stack Overflow or respective owner

Related posts about java

Related posts about jaxb