digester java,Java:哪个Apache Digester类?

I'm supporting a web application / Java servlet that has been failing to start. The issue turns out to be a relatively straight-forward java.lang.NoClassDefFoundError exception, thrown 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

That package doesn't appear to exist in the application lib, but there is an instance of the class in:

org/apache/commons/digester

Which is part of our current application / project. Both of the classes extend org.xml.sax.helpers.DefaultHandler so I'm assuming they are the same class (but probably different dates / versions)?

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

What is the later version of the class and which version should I be using (and how)?

解决方案

The class you are looking for is in the Tomcat folder. %TOMCAT_HOME%/server/lib/tomcat-util.jar Make sure you haven't overridden the default classpath/loader and forgot to add in the Tomcat directories

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值