Java: What Apache Digester class?

I support a web application / Java servlet that did not start. This question turns out to be a relatively direct exception to java.lang.NoClassDefFoundError created by org.apache.webapp.balancer.RulesParser .

The filter class that throws the exception expects the Digester class to exist in the package:

 org/apache/tomcat/util/digester 

This package does not exist in the lib application, but there is an instance of the class in:

 org/apache/commons/digester 

This is part of our current application / project. Both classes are extended by org.xml.sax.helpers.DefaultHandler , so I assume they are the same class (but probably different dates / versions)?

The RulesParser class exists in catalina-balancer.jar (I don’t have a source), so I can’t directly modify the package import.

What is a later version of the class and which version should I use (and how)?

0
source share
1 answer

The class you are looking for is located in the Tomcat folder. % TOMCAT_HOME% / server / lib / tomcat-util.jar Make sure you do not override the default classpath / loader and forget to add Tomcat to the directories

+1
source

All Articles