• 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

Runtime Exception

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
You know it is dark times when the trees riot. I think this tiny ad is their leader:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic