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 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
  • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
  • ¥15 如何处理复杂数据表格的除法运算
  • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
  • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
  • ¥200 uniapp长期运行卡死问题解决
  • ¥15 latex怎么处理论文引理引用参考文献
  • ¥15 请教:如何用postman调用本地虚拟机区块链接上的合约?
  • ¥15 为什么使用javacv转封装rtsp为rtmp时出现如下问题:[h264 @ 000000004faf7500]no frame?
  • ¥15 乘性高斯噪声在深度学习网络中的应用