Help trace runtime error

A

Asad Khan

Hi,

I wrote a few methods in a class, and I am using someone else's code that
interfaces with the database. I created some test classes, and when I run
it, I get the following error:

*********************C:\Program Files\DrJAVA
org.jdom.JDOMException: SAX2 driver class
org.apache.xerces.parsers.SAXParser not found: SAX2 driver class
org.apache.xerces.parsers.SAXParser not found
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:323)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:340)
at database.Database.interpretConfig(Database.java:84)
at database.Database.connect(Database.java:53)
....

so on and so forth. I have added JAR files in DR JAVA (the IDE I'm using)
but that doesn't seem to help. Any ideas what's going on?

BTW, I'm running J2SE (1.4.x).

Thanks.
 
C

Christophe Vanfleteren

Asad said:
Hi,

I wrote a few methods in a class, and I am using someone else's code that
interfaces with the database. I created some test classes, and when I run
it, I get the following error:

*********************C:\Program Files\DrJAVA
org.jdom.JDOMException: SAX2 driver class
org.apache.xerces.parsers.SAXParser not found: SAX2 driver class
org.apache.xerces.parsers.SAXParser not found
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:323)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:340)
at database.Database.interpretConfig(Database.java:84)
at database.Database.connect(Database.java:53)
...

so on and so forth. I have added JAR files in DR JAVA (the IDE I'm using)
but that doesn't seem to help. Any ideas what's going on?

BTW, I'm running J2SE (1.4.x).

Thanks.

It is very simple, you do not have the xerces parser in your classpath.

Are you sure that xercesImpl.jar or something like that is in your classpath?
And what JDK are you using? The way the xml parsers are found/used have
changed with JDK 1.4.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,045
Latest member
DRCM

Latest Threads

Top