struts2 中的 ClassNotFoundException StrutsPrepareAndExecuteFilter [英] ClassNotFoundException StrutsPrepareAndExecuteFilter in struts2

查看:21
本文介绍了struts2 中的 ClassNotFoundException StrutsPrepareAndExecuteFilter的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在启动应用程序时收到此错误.

I got this error when starting the app.

SEVERE: Exception starting filter struts2 java.lang.ClassNotFoundException: 
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter

服务器连续两次出现此错误.

and the server gave this error twice in a row.

我在 WEB-INF/lib 中有 struts2-core-2.3.15.2.jar 并导入到 build path.我不明白为什么找不到 StrutsPrepareAndExecuteFilter.

I have struts2-core-2.3.15.2.jar in WEB-INF/lib and imported into build path. I do not understand why StrutsPrepareAndExecuteFilter cannot be found.

应用程序可以开始了.那没问题.问题是由于这个错误,struts2 无法重定向操作.

The application can get started. thats no problem. the problem is because of this error, struts2 cannot redirect the action.

我使用的是 tomcat 7 和 struts2 2.3.16.它是 Tomcat 7,我猜 serverlet-api 不是 3.0.我尝试将servelet-api-3.0 放在tomcat/lib 中,但不兼容.

I use tomcat 7 and struts2 2.3.16. It's Tomcat 7, the servelet-api is not 3.0 I guess. I tried to put servelet-api-3.0 in tomcat/lib but it's not compatible.

有什么问题?

使用的罐子:

推荐答案

以下最少 jars 应该在你的类路径中:

The following minimum jars should be on your classpath:

  • asm-3.3.jar
  • asm-commons-3.3.jar
  • asm-tree-3.3.jar
  • commons-fileupload-1.3.jar
  • commons-io-2.2.jar
  • commons-lang3-3.1.jar
  • commons-logging-1.1.3.jar
  • freemarker-2.3.19.jar
  • javassist-3.11.0.GA.jar
  • log4j-1.2.17.jar
  • ognl-3.0.6.jar
  • struts2-core-2.3.16.jar
  • xwork-core-2.3.16.jar

您也可以关注 如何创建一个 Struts 2 Web 应用程序.

这篇关于struts2 中的 ClassNotFoundException StrutsPrepareAndExecuteFilter的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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