項(xiàng)目背景,訪問MQ的功能接口發(fā)布到Webservice上,本地調(diào)用此接口報(bào)錯如下: org.apache.axis2.AxisFault: com/ibm/mq/MQException at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531) at org.apache.axis2.description.OutI
項(xiàng)目背景,訪問MQ的功能接口發(fā)布到Webservice上,本地調(diào)用此接口報(bào)錯如下:
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)
截圖:
如圖:
Tomcat需要加入IBM MQ和Axis2的lib中的jar包。否則Tomcat找不到。
IBM MQ的jar共18個(gè),位于C:\Program Files\IBM\WebSphere MQ\Java\lib
如圖:
Axis2的jar共22個(gè),位于D:\Program Files\axis2-1.6.2\lib
如圖:
全部放到Tomcat的lib中,位于:D:\Program Files\Apache Software Foundation\Tomcat 7.0\lib
如圖:
運(yùn)行結(jié)果:
備注:
http://blog.csdn.net/ozwarld/article/details/7743387
上次的錯誤原因Tomcat沒有配置數(shù)據(jù)源,兩次錯誤不太相同,這次干脆把所有jar都放到Tomcat的lib中免除后患。
聲明:本網(wǎng)頁內(nèi)容旨在傳播知識,若有侵權(quán)等問題請及時(shí)與本網(wǎng)聯(lián)系,我們將在第一時(shí)間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com