> 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


Reply via email to