你的位置:首页 > Java教程

[Java教程]web service遇到的异常


异常:Caused by: java.io.IOException: Could not find destination factory for transport http://schemas.    at org.apache.cxf.binding.soap.SoapTransportFactory.getDestination(SoapTransportFactory.java:133)
    at org.apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:84)
    at org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:63)
    at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:179)
    ... 39 more
Caused by: org.apache.cxf.BusException: No DestinationFactory was found for the namespace http://cxf.apache.org/transports/http.
    at org.apache.cxf.bus.managers.DestinationFactoryManagerImpl.getDestinationFactory(DestinationFactoryManagerImpl.java:122)
    at org.apache.cxf.binding.soap.SoapTransportFactory.getDestination(SoapTransportFactory.java:127)

问题原因:没有导入cxf-rt-transports-http-3.1.5.jar(我用的cxf的版本都是3.1.5)