Websphere SOAP over JMS位置和IllegalArgumentException:protocol = jms host = null

时间:2015-02-11 13:47:05

标签: java web-services soap jms websphere

我们有一个JAXWS Web服务,它将通过JMS接收SOAP消息。 Web服务安装在Websphere 8服务器上,MQ队列将安装在另一台服务器上,第三台服务器将通过HTTP接收SOAP消息并将它们发送到MQ队列。我遇到的问题是,当我在Websphere上部署Web服务时,我得到以下异常:

Caused by: java.lang.IllegalArgumentException: protocol = jms host = null
at sun.net.spi.DefaultProxySelector.select(DefaultProxySelector.java:163) ~[na:6.0]
at com.sun.xml.ws.api.EndpointAddress.chooseProxy(EndpointAddress.java:186) ~[webservices-rt-2.3.jar:2.3]
at com.sun.xml.ws.api.EndpointAddress.<init>(EndpointAddress.java:134) ~[webservices-rt-2.3.jar:2.3]
at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parsePort(RuntimeWSDLParser.java:515) ~[webservices-rt-2.3.jar:2.3]
at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parseService(RuntimeWSDLParser.java:483) ~[webservices-rt-2.3.jar:2.3]
at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parseWSDL(RuntimeWSDLParser.java:461) ~[webservices-rt-2.3.jar:2.3]
at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:328) ~[webservices-rt-2.3.jar:2.3]
at com.sun.xml.ws.server.EndpointFactory.getWSDLPort(EndpointFactory.java:746) ~[webservices-rt-2.3.jar:2.3]
at com.sun.xml.ws.server.EndpointFactory.create(EndpointFactory.java:254) ~[webservices-rt-2.3.jar:2.3]
at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:158) ~[webservices-rt-2.3.jar:2.3]
at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:577) ~[webservices-rt-2.3.jar:2.3]
at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:560) ~[webservices-rt-2.3.jar:2.3]
[...]

它似乎与WSDL中的端点地址问题有关,但我不确定该字段应该是什么。这是我使用的:

<service name="OrderService">
<port name="OrderAsyncPortType" binding="tns:OrderPortTypeBinding">
<soap:address location="jms:jndi:jms/OrderQueue?jndiConnectionFactoryName=jms/OrderConnectionFactory&amp;targetService=OrderAsyncPortType"/>
</port>
</service>

任何帮助都将不胜感激。

0 个答案:

没有答案