严重: Exception starting filter Struts2
java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
遇到这个异常,我当时用的是struts2-core-2.0.6.jar,换成版本高一点的struts2-core-2.3.4.1.jar。异常就消失了!
原来2.1.3之前的版本,用org.apache.struts2.dispatcher.FilterDispatcher,之后就废弃了,开始使用org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter。