ServiceConstructionException:无法解析null的绑定

时间:2014-03-11 19:26:36

标签: binding null cxf factory bus

我在java中使用cxf webservice客户端。我的代码在eclipse中运行得很好但是当我创建一个jar并尝试从cmd运行时,我得到了这个错误(显示在最后): -

我使用的org.apache.cxf版本是2.5.3。不知道原因是什么?

  

org.apache.cxf.service.factory.ServiceConstructionException:无法解析null的绑定   00:01:11在org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createBindingInfo(AbstractWSDLBasedEndpointFactory.java:350)   00:01:11 at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpointInfo(AbstractWSDLBasedEndpointFactory.java:258)   00:01:11 at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:143)   00:01:11在org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:90)   00:01:11在org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:155)   00:01:11在org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:155)   00:01:11在com.cisco.nm.nmtgre.b360.automation.IpCentralFetcher.getProjectAssets(IpCentralFetcher.java:58)   00:01:11在com.cisco.nm.nmtgre.b360.automation.IpCentralParser.getIpCentralByProjectVersionId(IpCentralParser.java:122)   00:01:11在com.cisco.nm.nmtgre.b360.automation.IpCentralParser.getIPcFromXml(IpCentralParser.java:51)   00:01:11在com.cisco.nm.nmtgre.b360.automation.IpCentralParser.main(IpCentralParser.java:245)   00:01:11引起:org.apache.cxf.BusException:没有注册名称空间http://schemas.xmlsoap.org/soap/的绑定工厂。   00:01:11在org.apache.cxf.binding.BindingFactoryManagerImpl.getBindingFactory(BindingFactoryManagerImpl.java:120)   00:01:11 at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createBindingInfo(AbstractWSDLBasedEndpointFactory.java:338)   00:01:11 ... 9更多

0 个答案:

没有答案