https://blog.csdn.net/jajavaja/article/details/7901140
对这个问题,网上有很多解答,常见的是 将filter-class的标签改为如下内容
<filter-class>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
</filter-class>
根据是struts2.1更新后,这个地方发生了改动
还有的方法是,将struts.xml中的中的namespace=”/” 删掉
至于这个我不知道原因
试了以上两种方法以及各种方法后,还是没有解决问题
最后我将环境从myeclipse10换到myeclipse8.5,从glassfish换成tomcat…
将项目导入换成新建项目…….
不停滴不存,重启服务器…..最后偶然中,可以运行了,晕!