Cannot find any registered HttpDestinationFactory from the Bus

1998 단어 factory
 : Cannot find any registered HttpDestinationFactory from the Bus.
Exception in thread "main" javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException
	at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:350)
	at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:239)
	at org.apache.cxf.jaxws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:144)
	at javax.xml.ws.Endpoint.publish(Endpoint.java:170)
	at demo.hw.server.Server.<init>(Server.java:31)
	at demo.hw.server.Server.main(Server.java:36)
Caused by: org.apache.cxf.service.factory.ServiceConstructionException
	at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:176)
	at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:203)
	at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:433)
	at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:322)
	... 5 more
Caused by: java.io.IOException: Cannot find any registered HttpDestinationFactory from the Bus.
	at org.apache.cxf.transport.http.HTTPTransportFactory.getDestination(HTTPTransportFactory.java:270)
	at org.apache.cxf.binding.soap.SoapTransportFactory.getDestination(SoapTransportFactory.java:136)
	at org.apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:93)
	at org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:72)
	at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:158)
	... 8 more

 
cxf를 사용하는 과정에서 Cannot findany registered HttpDestinationFactory from the Bus가 자주 나오는데 일반적으로 cxf-rt-transports-http-jetty-xx를 도입하지 않았습니다.jar.아파치 보기.cxf.transport.http.HTTPTransportFactory.getDestination(HTTPTransportFactory.java:270)류,jettyFactory는null,즉 http-jetty의 실현이 부족하다.토마토캣에 배치하면 보통 이 문제가 발생하지 않습니다.
 
 
 
 

좋은 웹페이지 즐겨찾기