title: Do you always need an ObjectFactory class when using JAXB?
body: <p>Do you always need an ObjectFactory class when using JAXB?  </p>
  
  <p>Without it I get this exception: </p>
  
  <blockquote>
    <p>javax.xml.bind.JAXBException:
    "com.a.b.c"
    doesnt contain ObjectFactory.class or
    jaxb.index</p>
  </blockquote>
  
  <p>I <a href="https://stackoverflow.com/questions/953723/whats-the-point-of-jaxb-2s-objectfactory-classes">gather</a> the ObjectFactory can be overkill.  But given this exception I'm guessing you need it..  but not sure why?</p>