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

老项目中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个回答

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

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

weixin_40584261
谦谦公子爱编程 回复jt_s8645: 实在是不行,是否考虑换高一点版本的struts2,2.1.8.1这些低版本漏洞很多的。
10 个月之前 回复
jt_s8645
jt_s8645 仔细检查过其他jar包没有发现冲突的地方,找不到报错的根源
10 个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问