Could not find destination factory for transport http://schemas.xmlsoap.org/soap/http
A little tip, if you use CXF as a client to some web service, and am getting this exception:
And you will need the cxf-rt-transports-http-jetty jarfile in classpath.
Then you are not alone, as I did too. Here is what I did to solve it: CXF uses spring xml for its configuration, so inside your spring config, do this:
org.apache.cxf.interceptor.Fault: Could not find destination factory for transport http://schemas.xmlsoap.org/soap/http
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:85)
at org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:82)
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:56)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:56)
at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
Caused by: java.lang.RuntimeException: Could not find destination factory for transport http://schemas.xmlsoap.org/soap/http
at org.apache.cxf.binding.soap.SoapTransportFactory.getConduit(SoapTransportFactory.java:148)
at org.apache.cxf.endpoint.AbstractConduitSelector.getSelectedConduit(AbstractConduitSelector.java:73)
at org.apache.cxf.endpoint.UpfrontConduitSelector.selectConduit(UpfrontConduitSelector.java:71)
at org.apache.cxf.endpoint.ClientImpl.getConduit(ClientImpl.java:417)
<import resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml"/>
And you will need the cxf-rt-transports-http-jetty jarfile in classpath.





3 kommentarer:
Nice and knowledgeable sites for everyone-
books
booksshelf
knowledge
books
liberary
kitaben
Books and references
tutorial books
Very helpful, thank you very much. It is good to know you are not alone. The severe lack of documentation is making me want to stick with XFire for now!
Not alone ;-)
yc
Post a Comment