Tomcat 4 and XML Parsers.

Alessandro A. Garbagnati

Regarding Tomcat 4 and XML parsers, the documentation states:

If you wish to make the JAXP/1.1 reference implementation parser available to all web applications, simply move the "jaxp.jar" and "crimson.jar" files from the $CATALINA_HOME/jasper directory into the $CATALINA_HOME/lib directory. Jasper will continue to use this parser for processing JSP pages in XML syntax.
However there is no $CATALINA_HOME/jasper dir and jaxp.jar and crimson.jar are nowhere in Tomcat 4.
Can this problem be solved?

You are absolutely right.
I think that the problem is caused by the fact that the beta versions of Tomcat 4 (maybe even the first final version) was using those two classes and a slightly different structure.

Actually, the correct documentation is part of the Tomcat 4.0.1 Release Notes:

Tomcat 4.0 and XML Parsers:

As described above, Tomcat 4.0 makes an XML parser (and many other standard APIs) available to web applications. This parser is also used internally to parse web.xml files and the server.xml configuration file. If you wish, you may replace the "xerces.jar" file in "common/lib" with another XML parser, as long as it is compatible with the JAXP/1.1 APIs.

If you wish to *not* make any XML parser visible to all web applications, this can be accomplished by copying the "xerces.jar" file from "common/lib" to both "server/lib" and "lib" (where jaspers file reside), and removing it from "common/lib".