严重: Exception starting filter struts2

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

根据错误提示,意思是找不到类org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter,可是我确实手动找到了这个类:

Struts2问题:ClassNotFoundException: org...dispatcher.ng.filter.StrutsPrepareAndExecuteFilter

web.xml中配置如下:

Struts2问题:ClassNotFoundException: org...dispatcher.ng.filter.StrutsPrepareAndExecuteFilter

最后弃用了add external jars, 手动将Struts2的相关jar复制到/webContent/WEB-INF/lib目录下再add,问题解决

在网上还找到了其他的解决方法:

因为我们在配置tomcat的时候选择了“调试模式”,即“debug”;需设置为“生产模式”,即“run”,之后重新部署即可。

模式设置位置:myeclipse--preferences--servers--tomcatxx--launch选择“run mode”。


相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-05
  • 2021-09-07
  • 2021-08-22
  • 2022-12-23
  • 2021-05-29
  • 2021-07-26
猜你喜欢
  • 2021-07-30
  • 2021-07-14
  • 2022-12-23
  • 2021-05-18
  • 2021-11-13
  • 2021-08-19
  • 2021-07-18
相关资源
相似解决方案