We encountered the EXACT same thing.

The fix is to put it in the TOMCAT_HOME/lib directory and add it to the
CLASSPATH in wrapper.properties

BUT the trick is that you MUST add it before anything else:

For example, in our case, we have -

wrapper.class_path=$(wrapper.tomcat_home)\classes
wrapper.class_path=$(wrapper.tomcat_home)\lib\xalan.jar
wrapper.class_path=$(wrapper.tomcat_home)\lib\xerces.jar
wrapper.class_path=$(wrapper.tomcat_home)\lib\jaxp.jar
wrapper.class_path=$(wrapper.tomcat_home)\lib\parser.jar
wrapper.class_path=$(wrapper.tomcat_home)\lib\webserver.jar
wrapper.class_path=$(wrapper.tomcat_home)\lib\servlet.jar
wrapper.class_path=$(wrapper.tomcat_home)\lib\jasper.jar

HTH. 8)
Anuj.

Michael Day wrote:

> I have a servlet that requires classes from xalan.jar. I've tried placing
> this JAR file in TOMCAT_HOME/lib, WEB-INF/lib, in the CLASSPATH and
> nothing seems to work. When the servlet runs it invariably fails with a
> NoClassDefFound exception when it tries to access
> org.apache.xpath.XPathAPI.

Reply via email to