struts类型不匹配问题
javax.servlet.ServletException:
java.lang.ClassCastException: org.apache.struts.action.
ActionMessages cannot be cast to org.apache.struts.action.
ActionErrors org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:520)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:427)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.lhz.finance.filter.RequestFilter.doFilter(RequestFilter.java:29)
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
root cause
------解决方案--------------------朋友你struts版本不匹配吧
------解决方案--------------------要么用ActionErrors,要么用ActionMessages,干嘛要混着用?
1.2以后的就用ActionMessages吧,不要用ActionErrors了
不过ActionErrors可以在资源文件中配置header和footer
------解决方案--------------------ActionMessages不能转成ActionErrors啊,
你搜搜代码,把ActionErrors改成ActionMessages,
现在一般都是用ActionMessages的。。。
------解决方案--------------------你看看tomcat下common下的lib下的jar有没有跟你项目的jar有重复的server.jar啊。。。