wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes Please Help .. Error Parsing XML File Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Please Help .. Error Parsing XML File" Watch "Please Help .. Error Parsing XML File" New topic
Author

Please Help .. Error Parsing XML File

Rosalinde Casalini
Greenhorn

Joined: Jul 13, 2001
Posts: 5
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: 12823
    
    5
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

------------------
author of:
Rosalinde Casalini
Greenhorn

Joined: Jul 13, 2001
Posts: 5
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: 12823
    
    5
I have not encountered any bug in JAXP 1.1 - exactly what happened?
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Please Help .. Error Parsing XML File