I have some code that uses DocumentBuilderFactory etc. (JAXP) to parse a document with W3C schema validation.
My unit tests work fine with Xerces in the classpath. When the business is all packaged into a webapp and deployed in tomcat (via mvn tomcat:run), the validation fails with bogus error, and the backtrace shows that I'm using whatever nasty version of JAXP is sitting in the JVM. Short of calling DocumentBuilderFactoryImpl, can anyone tell me what I'm doing wrong? The xerces Jar is in the WAR file in the right place.