cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Sills <DSi...@datasourceinc.com>
Subject Question about using CXF stand-alone
Date Mon, 11 Aug 2014 13:59:46 GMT
All:

I have a very, very simple web service that I am developing in Eclipse. In Eclipse, it runs
beautifully. The server (Jetty) starts right up and runs as long as I tell it to.

Unfortunately, when I try exactly the same service in a Windows 7 command window, I get this
error:

INFO: Creating Service {http://testws.peopletrack.datasourceinc.com/}TestWebServ
ice from class com.datasourceinc.peopletrack.testws.TestWebService
Aug 11, 2014 9:52:16 AM org.apache.cxf.transport.http.HTTPTransportFactory getDe
stination
SEVERE: Cannot find any registered HttpDestinationFactory from the Bus.
Exception in thread "main" javax.xml.ws.WebServiceException: org.apache.cxf.serv
ice.factory.ServiceConstructionException
        at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:371)
        at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:251)
        at org.apache.cxf.jaxws.spi.ProviderImpl.createAndPublishEndpoint(Provid
erImpl.java:155)
        at javax.xml.ws.Endpoint.publish(Unknown Source)
        at com.datasourceinc.peopletrack.testws.Main.<init>(Main.java:15)
        at com.datasourceinc.peopletrack.testws.Main.main(Main.java:41)
Caused by: org.apache.cxf.service.factory.ServiceConstructionException
        at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.ja
va:188)
        at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactory
Bean.java:211)
        at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:456)
        at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:334)
        ... 5 more
Caused by: java.io.IOException: Cannot find any registered HttpDestinationFactor
y from the Bus.
        at org.apache.cxf.transport.http.HTTPTransportFactory.getDestination(HTT
PTransportFactory.java:296)
        at org.apache.cxf.binding.soap.SoapTransportFactory.getDestination(SoapT
ransportFactory.java:142)
        at org.apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:83
)
        at org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:62)
        at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.ja
va:170)
        ... 8 more

I have printed out the classloader URLs that are used in running the service in Eclipse and
replicated them in my JAR file manifest exactly (and , of course, put the JAR files in the
appropriate directory). I have added (and also removed) the JAR file itself from the manifest
Class-List (though I don't believe this is necessary). I always get the same result, whatever
I try. Can anyone help me figure out what is going on and why?

Thanks!

David Sills


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message