Exception in thread "Main Thread" javax.xml.bind.UnmarshalException - with linked exception:
[org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'problemBean'.]
Exception in thread "Main Thread" java.lang.ClassCastException: generated.ProblemBean
at gov.va.bhie.jaxb.beanXML.conversion.XML2BeanDemo.main(XML2BeanDemo.java:29)
Natalie Kopple wrote:I have modified the code to I still get the same ClassCastException. I think the directory structure of my very simple first project is in proper order (shown below):
Natalie Kopple wrote:Nevertheless, I think that I have a basic understanding of how JAXB works after this exercise.
Eliminate 95% of the weeds in your lawn by mowing 3 inches or higher. Then plant tiny ads:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
|