tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Rudnicki <jdr5l...@pacbell.net>
Subject Re: using xalan with Tomcat
Date Wed, 20 Dec 2000 08:59:49 GMT


> You can manually re-order to classpath to put xerces.jar before
parser.jar.
> At least with 3.2, Tomcat adds the jars to its classpath in alphabetical
> order, so you can renamed parser.jar to zparser.jar and it will be loaded
> last.  I've been using this trick for a while.  BTW does anyone know if
> depending on this behavior of classloaders is a Bad Thing?

Well, its not a good thing.  Also, webapps should not be adding jar's to the
system classpath.  You should be adding them to the webapp's classpath.

The underlying problem is that the parser.jar packaged with Tomcat includes
the DOM1 packages org.w3c.dom and also org.xml.sax.  If you strip out the
org. from parser.jar and then add a jar with the DOM2 interfaces all will be
well.  jaxp will work and xerces will run for your webapps.

Jim



Mime
View raw message