I'm trying to validate and unmarshall an xml document using JDK5. The code is as follows:
But I'm getting the following error:
I'm using
Java 1.5.0_12, with JAXB 2.1.3 and Xerces 2.9.1, and passing in the following Java options to use the Xerces SAX Parser: -Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl
The program works correctly using Java 6, which already has JAXB and Xerces included with it. What am I doing wrong with Java 5?