[jdom-interest] Tomcat and JDOM

Kesav Kumar kesavk at voquette.com
Wed Mar 21 09:29:51 PST 2001


First set your classpath on the local machine which includes
jdom.jar,jaxp.jar and crimson.jar;
Modify the tomcat.bat the line which is set CP=%CP%;%CLASSPATH% to set
CP=%CLASSPATH%;%CP% which makes the system classpath to be first and then
tomcat classes.  Make sure that you have clen system classpath.



Kesav Kumar
Software Engineer
Voquette, Inc.
650 356 3740
mailto:kesavk at voquette.com
http://www.voquette.com
Voquette...Delivering Sound Information


-----Original Message-----
From: Gary Bentley [mailto:gb at opengroup.org]
Sent: Wednesday, March 21, 2001 7:39 AM
To: jdom-interest at jdom.org
Subject: RE: [jdom-interest] Tomcat and JDOM


No need to respond...fixed it...

Needed to put the JAR files, jaxp.jar, jdom.jar and crimson.jar in the
$TOMCAT_HOME/lib and ensure that jaxp.jar is overwritten with the newer
version...

Any other info anyone has though would be welcome...

G.

-----Original Message-----
From: jdom-interest-admin at jdom.org
[mailto:jdom-interest-admin at jdom.org]On Behalf Of Gary Bentley
Sent: Wednesday, March 21, 2001 3:10 PM
To: jdom-interest at jdom.org
Subject: [jdom-interest] Tomcat and JDOM


Hi folks,

Probably a simple answer but I'm a bit baffled...

How do I get Tomcat and JDOM 6 to work together?  Keep getting:

	org.jdom.JDOMException: Error in building: SAX2 driver class
org.apache.xerces.parsers.SAXParser not found

Now I can get it to work with JServ...

On Tomcat, I have jaxp.jar, jdom.jar and crimson.jar in the WEB-INF/lib
directory...maybe this is a question for the Tomcat mailing list but I'm
trying here first...

Also, I have expanded the jars into the WEB-INF/classes directory as well...

Now I know that the org.apache.xerces directory is not present (I checked
the Jar)...so why is JDOM looking for it...isn't it supposed to use JAXP by
default now and it should be able to find that...it shoudn't be a class
loader problem since Tomcat is supposed to use a different class loader per
web application...

Cheers (hopefully!),

G.


_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
t.com

_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
t.com



More information about the jdom-interest mailing list