调用webservice报错
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了调用webservice报错相关的知识,希望对你有一定的参考价值。
OMException in getSOAPBuilder - org.apache.axis2.builder.BuilderUtilorg.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:688) -587935180 [ajp-apr-8009-exec-506]
org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
at [row,col unknown-source]: [1,0]
问题描述:按照himple-calculator-web-service.html上的教程构建jax-ws calculator这个web service,可部署到Geronimo 2.1.1后,在index.jsp上输入3和4,然后点击=转到result.jsp后,Geronimo控制台上出现如下错误:
18:54:35,406 ERROR [Axis2WebServiceContainer] Exception occurred while trying to invoke service method doService()
org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
at [row,col unknown-source]: [1,0]
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
解决方案:很简单,关闭你的杀毒软件如卡巴斯基(Kaspersky)就行了,Windows防火墙不用关。另外,如果卡巴斯基是开着的,在Geronimo 1.1.1 + Axis2 1.2里部署了Web服务后,访问时也会出现类似于上面的问题。
P.S. :在含Axis2的Geronimo里部署Web服务后,如果发现自动生成的WSDL文件中的端口的地址不对,如IP地址部分编程了192.168.30.1,则很有可能是因为安装了VMware后出现的虚拟网络连接导致的,禁用这些虚拟网络连接即可。
<wsdl:port name="MyServiceHttpport" binding="axis2:MyServiceHttpBinding">
<http:address location="http://192.168.30.1:8080/axis2/services/MyService" />
</wsdl:port>
springboot项目调用webservice客户端 问题
springboot项目调用webservice客户端。 项目正常启动调用webservice客户端接口没问题。当项目热启动后调用同样webservice客户端接口报错
java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [META-INF/services/org.apache.axis.EngineConfigurationFactory]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
以上是关于调用webservice报错的主要内容,如果未能解决你的问题,请参考以下文章