0 0

apache-cxf-2.5.2 中 samples中的wsdl_first项目报错,如何解决?5

Starting Server
2012-3-19 18:10:43 org.springframework.context.support.AbstractApplicationContext prepareRefresh
信息: Refreshing org.apache.cxf.bus.spring.BusApplicationContext@147ee05: startup date [Mon Mar 19 18:10:43 CST 2012]; root of context hierarchy
2012-3-19 18:10:43 org.apache.cxf.bus.spring.BusApplicationContext getConfigResources
信息: Loaded configuration file cxf.xml.
2012-3-19 18:10:43 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
信息: Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
2012-3-19 18:10:44 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
信息: Loading XML bean definitions from class path resource [cxf.xml]
2012-3-19 18:10:44 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
信息: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@18b81e3: defining beans [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,{http://apache.org/hello_world_soap_http}SoapPort.jaxws-client.proxyFactory,{http://apache.org/hello_world_soap_http}SoapPort.jaxws-client,{http://apache.org/hello_world_soap_http}SoapPort.jaxws-endpoint]; root of factory hierarchy
2012-3-19 18:10:44 org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromClass
信息: Creating Service {http://server.customerservice.example.com/}CustomerServiceImplService from class com.example.customerservice.CustomerService
2012-3-19 18:10:44 org.apache.cxf.transport.http.HTTPTransportFactory getDestination
严重: 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:353)
at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:242)
at org.apache.cxf.jaxws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:145)
at javax.xml.ws.Endpoint.publish(Endpoint.java:170)
at com.example.customerservice.server.CustomerServiceServer.<init>(CustomerServiceServer.java:35)
at com.example.customerservice.server.CustomerServiceServer.main(CustomerServiceServer.java:44)
Caused by: org.apache.cxf.service.factory.ServiceConstructionException
at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:178)
at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:207)
at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:438)
at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:325)
... 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:160)
... 8 more
2012年3月19日 18:16
目前还没有答案

相关推荐

Global site tag (gtag.js) - Google Analytics