严重: Exception starting filter struts2 --------终极解决方案

欢迎使用Markdown编辑器写博客

严重: Exception starting filter struts2:java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter…..

使用Myeclipse进行webservice开发时,遇到这个问题很恼火, 在网络上搜素了所有的方法:
1、更新struts2
2、手动添加相关的struts2中jar包到web-inf/lib
3、修改web.xml文件,确保jar包正确

自己检查发现,在执行tomcat时, 发现webapps中有另一个项目同时运行了;
解决方案:
1、若其他项目无用,则直接删除,搞定
2、若其他项目有用, 则修改其他项目中tomcat的配置,保证执行项目时,其他发布的项目不会影响到该项目

你可能感兴趣的:(java)