公司用的struts 2.1 要求升级到2.3.34以上
我按照CSDN的步骤详细的改了struts2.xml和web.xml配置以及更新了一些jar。
如何解决错误呢?
发现启动tomcat7后出现大量错误:
- Unable to load config class com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor at interceptor - jar:file:/E:/Program%20Files%20(x86)/apache/apache-tomcat-7.0.84/webapps/tjbank/WEB-INF/lib/struts2-core-2.3.34.jar!/struts-default.xml:202:116 probably due to a missing jar, which might be fine if you never plan to use the exception interceptor
- Actual exception Caught Exception while registering Interceptor class com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor - interceptor - jar:file:/E:/Program%20Files%20(x86)/apache/apache-tomcat-7.0.84/webapps/tjbank/WEB-INF/lib/struts2-core-2.3.34.jar!/struts-default.xml:202:116
Caused by: java.lang.IllegalArgumentException: unknown reserved key '_typeConverter'
- Unable to load config class org.apache.struts2.interceptor.ServletConfigInterceptor at interceptor - jar:file:/E:/Program%20Files%20(x86)/apache/apache-tomcat-7.0.84/webapps/tjbank/WEB-INF/lib/struts2-core-2.3.34.jar!/struts-default.xml:213:112 probably due to a missing jar, which might be fine if you never plan to use the servletConfig interceptor- Unable to load config class com.opensymphony.xwork2.interceptor.PrepareInterceptor at interceptor - jar:file:/E:/Program%20Files%20(x86)/apache/apache-tomcat-7.0.84/webapps/tjbank/WEB-INF/lib/struts2-core-2.3.34.jar!/struts-default.xml:210:105 probably due to a missing jar, which might be fine if you never plan to use the prepare interceptor