Java:哪个Apache Digester类? [英] Java: Which Apache Digester Class?

查看:59
本文介绍了Java:哪个Apache Digester类?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在支持无法启动的Web应用程序/Java servlet.事实证明,此问题是由org.apache.webapp.balancer.RulesParser引发的相对简单的java.lang.NoClassDefFoundError异常.

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.

引发异常的过滤器类期望Digester类存在于包中:

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

属于当前应用程序/项目的一部分.这两个类都扩展了org.xml.sax.helpers.DefaultHandler,所以我假设它们是同一类(但可能是不同的日期/版本)?

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)?

catalina-balancer.jar中存在RulesParser类(我没有源文件),因此无法直接更改包的导入.

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)?

推荐答案

您要查找的类位于Tomcat文件夹中. %TOMCAT_HOME%/server/lib/tomcat-util.jar确保您没有覆盖默认的类路径/加载器,并且忘记添加到Tomcat目录中

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

这篇关于Java:哪个Apache Digester类?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆