CXFServlet抛出java.lang.NoSuchMethodError:

编程入门 行业动态 更新时间:2024-10-09 08:31:34
本文介绍了CXFServlet抛出java.lang.NoSuchMethodError:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 java.lang.NoSuchMethodError: org.codehaus.stax2.ri.EmptyIterator.getInstance()Lorg/codehaus/stax2/ri/EmptyIterator; at com.ctc.wstx.sw.OutputElementBase.getPrefixes(OutputElementBase.java:358) at org.apache.cxf.staxutils.StaxUtils.writeStartElement(StaxUtils.java:793) at org.apache.cxf.staxutils.StaxUtils.copy(StaxUtils.java:741) at org.apache.cxf.staxutils.StaxUtils.copy(StaxUtils.java:705) at org.apache.cxf.binding.soap.saaj.SAAJOutInterceptor$SAAJOutEndingInterceptor.handleMessage(SAAJOutInterceptor.java:214) at org.apache.cxf.binding.soap.saaj.SAAJOutInterceptor$SAAJOutEndingInterceptor.handleMessage(SAAJOutInterceptor.java:174) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307) at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:516) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:425) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:326) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:279) at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96) at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:138) at com.sun.proxy.$Proxy223.execute(Unknown Source)

我正在使用Java 8和Apache CXF 3.0.7应用程序在本地服务器上运行良好,仅在将其移至AWS EC2时才出错,这是在运行时发生的

I'm using Java 8 and Apache CXF 3.0.7 application work fine in local server only get error when move it AWS EC2, it is happening runtime

本地环境和ec2相同,相同的jdk和相同的tomcat版本

local environment and ec2 is same, same jdk and same tomcat version

有什么想法吗?

[INFO] +- org.apache.cxf:cxf-rt-ws-security:jar:3.0.7:compile [INFO] | +- org.apache.cxf:cxf-core:jar:3.0.7:compile [INFO] | | +- org.codehaus.woodstox:woodstox-core-asl:jar:4.4.1:compile [INFO] | | \- org.apache.ws.xmlschema:xmlschema-core:jar:2.2.1:compile [INFO] | +- org.apache.cxf:cxf-rt-bindings-soap:jar:3.0.7:compile [INFO] | | +- org.apache.cxf:cxf-rt-wsdl:jar:3.0.7:compile [INFO] | | | \- wsdl4j:wsdl4j:jar:1.6.3:compile [INFO] | | \- org.apache.cxf:cxf-rt-databinding-jaxb:jar:3.0.7:compile [INFO] | | +- com.sun.xml.bind:jaxb-impl:jar:2.2.11:compile [INFO] | | \- com.sun.xml.bind:jaxb-core:jar:2.2.11:compile [INFO] | +- org.apache.cxf:cxf-rt-security:jar:3.0.7:compile [INFO] | | \- org.apache.wss4j:wss4j-ws-security-common:jar:2.0.6:compile [INFO] | | +- org.apache.santuario:xmlsec:jar:2.0.5:compile [INFO] | | +- org.opensaml:opensaml:jar:2.6.1:compile [INFO] | | | \- org.opensaml:openws:jar:1.5.1:compile [INFO] | | | \- org.opensaml:xmltooling:jar:1.4.1:compile [INFO] | | +- org.jasypt:jasypt:jar:1.9.2:compile [INFO] | | \- org.apache.geronimo.specs:geronimo-javamail_1.4_spec:jar:1.7.1:compile [INFO] | +- net.sf.ehcache:ehcache:jar:2.10.4:compile [INFO] | +- org.apache.wss4j:wss4j-ws-security-dom:jar:2.0.6:compile [INFO] | +- org.apache.wss4j:wss4j-policy:jar:2.0.6:compile [INFO] | | \- org.apache.neethi:neethi:jar:3.0.3:compile [INFO] | +- org.apache.wss4j:wss4j-ws-security-stax:jar:2.0.6:compile [INFO] | | \- org.apache.wss4j:wss4j-bindings:jar:2.0.6:compile [INFO] | \- org.apache.wss4j:wss4j-ws-security-policy-stax:jar:2.0.6:compile [INFO] +- org.apache.cxf:cxf-rt-frontend-jaxws:jar:3.0.7:compile [INFO] | +- xml-resolver:xml-resolver:jar:1.2:compile [INFO] | +- asm:asm:jar:3.3.1:compile [INFO] | +- org.apache.cxf:cxf-rt-bindings-xml:jar:3.0.7:compile [INFO] | +- org.apache.cxf:cxf-rt-frontend-simple:jar:3.0.7:compile [INFO] | \- org.apache.cxf:cxf-rt-ws-addr:jar:3.0.7:compile [INFO] | \- org.apache.cxf:cxf-rt-ws-policy:jar:3.0.7:compile [INFO] +- org.apache.cxf:cxf-rt-transports-http:jar:3.0.7:compile

推荐答案

罪魁祸首很可能是 woodstox-core-asl ;尝试将其替换为其他版本或 woodstox-core (没有 -asl ).

The culprit is most likely woodstox-core-asl; try to replace it with a different version or woodstox-core (without the -asl).

更多推荐

CXFServlet抛出java.lang.NoSuchMethodError:

本文发布于:2023-11-25 11:40:34,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1629601.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:抛出   CXFServlet   java   NoSuchMethodError   lang

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!