jt_s8645
jt_s8645
采纳率45.5%
2019-03-12 19:57 阅读 285

老项目中struts2遇到的奇葩异常,哪位大神知道遇到过,求指教!!!

5

老项目中struts2遇到的奇葩异常,哪位大神知道遇到过,求指教!!!

java.lang.NoSuchMethodError: com.opensymphony.xwork2.config.providers.InterceptorBuilder.constructInterceptorReference(Lcom/opensymphony/xwork2/config/entities/PackageConfig;Ljava/lang/String;Ljava/util/Map;Lcom/opensymphony/xwork2/util/location/Location;Lcom/opensymphony/xwork2/ObjectFactory;)Ljava/util/List;
at org.texturemedia.smarturls.SmartURLsUnknownHandler.handleUnknownAction(SmartURLsUnknownHandler.java:151)
at com.opensymphony.xwork2.DefaultUnknownHandlerManager.handleUnknownAction(DefaultUnknownHandlerManager.java:106)
at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:164)
at org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:61)
at org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39)
at com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:47)
at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:478)
at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395)
at org.texturemedia.smarturls.SmartURLsFilter.doFilter(SmartURLsFilter.java:126)
at com.zkja.sp.action.ExtendStrutsFilter.doFilter(ExtendStrutsFilter.java:25)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.zkja.sp.action.SmuFilter.doFilter(SmuFilter.java:103)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:208)
at com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:274)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)

网上都是是这两个jar包版本冲突,仔细检查后觉得没有问题?

图片说明

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

2条回答 默认 最新

  • lwqnh 江湖郎中林半仙 2019-03-12 20:03

    这个不难,在百度文库就可以找到

    点赞 评论 复制链接分享
  • weixin_40584261 TinerSky 2019-03-12 20:34

    struts2-core-2.1.8.1的jar包和xwork-core2.1.6.jar应该不会冲突,maven repository官网都是这么推荐的,看看是不是这两个包有其他低版本的包和他们冲突了。

    点赞 评论 复制链接分享

相关推荐