欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

org.apache.axis2.AxisFault at org.apache.axis2.util.Utils.ge

程序员文章站 2022-06-13 16:20:04
...

项目背景,访问MQ的功能接口发布到Webservice上,本地调用此接口报错如下: org.apache.axis2.AxisFault: com/ibm/mq/MQException at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531) at org.apache.axis2.description.OutI

项目背景,访问MQ的功能接口发布到Webservice上,本地调用此接口报错如下:

org.apache.axis2.AxisFault: com/ibm/mq/MQException
at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:375)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:555)
at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:531)
at org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(RPCServiceClient.java:102)
at com.ui.NewJFrame$InnerSend.run(NewJFrame.java:1337)
at java.lang.Thread.run(Unknown Source)

截图:

org.apache.axis2.AxisFault at org.apache.axis2.util.Utils.ge


如图:


Tomcat需要加入IBM MQ和Axis2的lib中的jar包。否则Tomcat找不到。

IBM MQ的jar共18个,位于C:\Program Files\IBM\WebSphere MQ\Java\lib

如图:

org.apache.axis2.AxisFault at org.apache.axis2.util.Utils.ge

Axis2的jar共22个,位于D:\Program Files\axis2-1.6.2\lib

如图:

org.apache.axis2.AxisFault at org.apache.axis2.util.Utils.ge

全部放到Tomcat的lib中,位于:D:\Program Files\Apache Software Foundation\Tomcat 7.0\lib

如图:

org.apache.axis2.AxisFault at org.apache.axis2.util.Utils.ge

运行结果:

org.apache.axis2.AxisFault at org.apache.axis2.util.Utils.ge


备注:

http://blog.csdn.net/ozwarld/article/details/7743387

上次的错误原因Tomcat没有配置数据源,两次错误不太相同,这次干脆把所有jar都放到Tomcat的lib中免除后患。