• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Runtime Exception

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ,
i am trying out the DOM example from here
http://developer.java.sun.com/developer/TechTips/2000/tt0627.html
it is giving me the following errors
http://developer.java.sun.com/developer/TechTips/2000/tt0627.html
C:\>java UseDOM file:TechTipArchive.xml ListByAuthor.html
javax.xml.parsers.FactoryConfigurationError: com.sun.xml.parser.DocumentBuilderFactoryImpl
at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:80)
at UseDOM.createHTMLDoc(UseDOM.java:65)
at UseDOM.main(UseDOM.java:80)
i am setting the class path to
xml.jar
JavaClass.jar
xsltc.jar
Regds.
Rahul.
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It works fine. Not sure why its not working on your installation. I am using Jaxp 1.0.1. Which versions of JAXP do you use?
Deepak
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I think it has something to do with the system properties setting for Factory.
do u have any idea.
i took this down from the JDC
" I had the same problem with the factoryconfigurationerror message when I moved my code from Win98 to Linux. Turns out the problem was I had three xml related jars in the my classpath: jaxp, parser, and xml. The xml.jar duplicates classes in the parser.jar. I think I got it from my forte development environment. "
and am checking this out.
Regds
Rahul.

[This message has been edited by rahul_mkar (edited June 30, 2000).]
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i was earlier but now i Got it! yes!
The point to note is there is as in my post above sometimes conflict between jar files
The following code worked as i set the classpath specifically
javac -classpath c:\sax2.jar;c:\parser.jar;c:\jaxp.jar;.; UseSAX2.java
C:\>java -classpath c:\sax2.jar;c:\parser.jar;c:\jaxp.jar;.; UseSAX2 file:TechT
ipArchive.xml simple.html

regds.
Rahul
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!