You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by David Sills <DS...@datasourceinc.com> on 2014/08/11 15:59:46 UTC

Question about using CXF stand-alone

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


RE: Question about using CXF stand-alone

Posted by David Sills <DS...@datasourceinc.com>.
Never mind. It turned out the maven repository sent me the javadoc for Jetty, not the classes. Once fixed, everything worked fine.

Thanks!

David Sills




-----Original Message-----
From: David Sills [mailto:DSills@datasourceinc.com] 
Sent: Monday, August 11, 2014 10:00 AM
To: users@cxf.apache.org
Subject: Question about using CXF stand-alone

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