Hi, I have written a java program to parse an xml file(using JAXP) and I am getting this error: javax.xml.parsers.FactoryConfigurationError: org.apache.crimson.jaxp.DocumentBuilderFactoryImpl at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:93) I don't have a clue why I am getting this, and the code works on a different machine. I included crimson.jar, jaxp.jar, and xalan.jar in my classpath is there any thing else that has to be done? If any body knows why I am getting the error, and how to fix it please let me know. Thank you, Rosalinde Casalini
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12267
1
posted
0
If the code works on a different system, that points to a likely cause. Namely, your system has an earlier version of JAXP somewhere where the JVM finds it before looking on the classpath. A likely suspect is the directory: JAVA_HOME\jre\lib\ext Read the tooldocs file on how classes are located for why this happens. Bill
Hi, Thanks for responding. It turned out I had two problems I had different DOM's in my classpath, and I needed the earlier version of JAXP(1.0) JAXP 1.1 has a bug in parsing inputSource. I downloaded JAXP1.0 put JAXP.jar and Parser.jar in my classpath and all was fine. Thanks again, Rosalinde
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12267
1
posted
0
I have not encountered any bug in JAXP 1.1 - exactly what happened? Bill