KyKiske22 2018-02-07 04:16 采纳率: 0%
浏览 1084
已结题

求问,关于struts2升级问题

公司用的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
  • 写回答

6条回答 默认 最新

  • 小肥猪。 2018-02-07 04:32
    关注

    struts2-core-2.3.34.jar 这个核心包是不是冲突了?检查一下jar包是否存在错误或冲突

    评论

报告相同问题?

悬赏问题

  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 shape_predictor_68_face_landmarks.dat
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料