You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by kiffin <ki...@yahoo.com> on 2010/02/05 22:46:58 UTC
Endpoint creation exception
I am porting a Metro app to CXF. I have the following code which runs OK in
Metro environment, but I am getting an exception from CXF. I am not sure
what is my problem.
List<Handler> handlers = new ArrayList<Handler>();
handlers.add(new ServiceHandler());
Endpoint endpoint = Endpoint
.create(new CalculationService(throwResourceNotAvailable,
timeout));
endpoint.getBinding().setHandlerChain(handlers); // throwing
exception here
endpoint.publish(endpointLocation);
java.lang.RuntimeException: Could not find destination factory for transport
http://schemas.xmlsoap.org/soap/http
at
org.apache.cxf.binding.soap.SoapTransportFactory.getDestination(SoapTransportFactory.java:76)
at org.apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:90)
at org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:69)
at
org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:106)
at
org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:167)
at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:346)
at org.apache.cxf.jaxws.EndpointImpl.getEndpoint(EndpointImpl.java:384)
at org.apache.cxf.jaxws.EndpointImpl.getBinding(EndpointImpl.java:148)
--
View this message in context: http://old.nabble.com/Endpoint-creation-exception-tp27474346p27474346.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: Endpoint creation exception
Posted by Daniel Kulp <dk...@apache.org>.
You probably need a http destination added to the deps. In most cases, that
would be the cxf-rt-transports-http-jetty jar. That would register an http
destination which would be picked up in this case.
Dan
On Fri February 5 2010 4:46:58 pm kiffin wrote:
> I am porting a Metro app to CXF. I have the following code which runs OK
> in Metro environment, but I am getting an exception from CXF. I am not
> sure what is my problem.
>
> List<Handler> handlers = new ArrayList<Handler>();
> handlers.add(new ServiceHandler());
>
> Endpoint endpoint = Endpoint
> .create(new CalculationService(throwResourceNotAvailable,
> timeout));
> endpoint.getBinding().setHandlerChain(handlers); // throwing
> exception here
> endpoint.publish(endpointLocation);
>
>
> java.lang.RuntimeException: Could not find destination factory for
> transport http://schemas.xmlsoap.org/soap/http
> at
> org.apache.cxf.binding.soap.SoapTransportFactory.getDestination(SoapTranspo
> rtFactory.java:76) at
> org.apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:90) at
> org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:69)
> at
> org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:106
> ) at
> org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.j
> ava:167) at
> org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:346) at
> org.apache.cxf.jaxws.EndpointImpl.getEndpoint(EndpointImpl.java:384) at
> org.apache.cxf.jaxws.EndpointImpl.getBinding(EndpointImpl.java:148)
--
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog