• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Please Help .. Error Parsing XML File

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have not encountered any bug in JAXP 1.1 - exactly what happened?
Bill
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic