Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMohmed Taha
1,427 PointsData Persistence won't run in Java 9.0.1 on IntelliJ due to errors in XML parsing and JAXB issues, please help
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
I tried installing javax.xml jaxb-api & jaxb-impl, yet I got a lot of new errors:
Caused by: org.hibernate.internal.util.config.ConfigurationException: Unable to perform unmarshalling at line number -1 and column -1 in RESOURCE hibernate.cfg.xml. Message: cvc-complex-type.2.4.a: Invalid content was found starting with element '{"http://www.hibernate.org/xsd/orm/cfg":argLine}'. One of '{"http://www.hibernate.org/xsd/orm/cfg":session-factory}' is expected.
[org.xml.sax.SAXParseException; cvc-complex-type.2.4.a: Invalid content was found starting with element '{"http://www.hibernate.org/xsd/orm/cfg":argLine}'. One of '{"http://www.hibernate.org/xsd/orm/cfg":session-factory}' is expected.]
Caused by: org.xml.sax.SAXParseException; cvc-complex-type.2.4.a: Invalid content was found starting with element '{"http://www.hibernate.org/xsd/orm/cfg":argLine}'. One of '{"http://www.hibernate.org/xsd/orm/cfg":session-factory}' is expected.
1 Answer
Marvin Deutz
8,349 PointsProbably not relevant any more, but I just rolled back to using JDK8 for this course.