-
1. Re: How to Replace crimson with xerces parser?
anil.saldhana Feb 6, 2005 10:26 PM (in response to mgillam)Dependent on ur JBoss version, the jars should be under lib or lib/endorsed of your JBoss.
The system property java.endorsed.dirs should point to it. -
2. Re: How to Replace crimson with xerces parser?
mgillam Feb 7, 2005 10:29 PM (in response to mgillam)I'm running jboss-3.0.4_tomcat-4.1.12 on Windows XP Pro.
I created a ...lib/endorsed dir and copied xercesImpl.jar, xml-apis.jar, xmlParsersAPIs.jar to it.
I set the following system properties:
-Djava.endorsed.dirs=C:/jboss-3.0.4_tomcat-4.1.12/lib/endorsed
-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl
In my code ...
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
When I look at factory in the debugger, it is always the crimson implementation.
I've been stuck on this for 2 days and I'm going crazy!!!
I'll appreciate any help.