cxf-users mailing list archives

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

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

INFO: Creating Service {}TestWebServ
ice from class com.datasourceinc.peopletrack.testws.TestWebService
Aug 11, 2014 9:52:16 AM org.apache.cxf.transport.http.HTTPTransportFactory getDe
SEVERE: Cannot find any registered HttpDestinationFactory from the Bus.
Exception in thread "main" org.apache.cxf.serv
        at org.apache.cxf.jaxws.EndpointImpl.doPublish(
        at org.apache.cxf.jaxws.EndpointImpl.publish(
        at org.apache.cxf.jaxws.spi.ProviderImpl.createAndPublishEndpoint(Provid
        at Source)
        at com.datasourceinc.peopletrack.testws.Main.<init>(
        at com.datasourceinc.peopletrack.testws.Main.main(
Caused by: org.apache.cxf.service.factory.ServiceConstructionException
        at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.ja
        at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactory
        at org.apache.cxf.jaxws.EndpointImpl.getServer(
        at org.apache.cxf.jaxws.EndpointImpl.doPublish(
        ... 5 more
Caused by: Cannot find any registered HttpDestinationFactor
y from the Bus.
        at org.apache.cxf.transport.http.HTTPTransportFactory.getDestination(HTT
        at org.apache.cxf.binding.soap.SoapTransportFactory.getDestination(SoapT
        at org.apache.cxf.endpoint.ServerImpl.initDestination(
        at org.apache.cxf.endpoint.ServerImpl.<init>(
        at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.ja
        ... 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?


David Sills

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