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
目前还没有答案

相关推荐

    apache-cxf-2.5.2

    这个"apache-cxf-2.5.2"版本是该框架的一个特定发行版,发布于2011年,包含了CXF框架的所有组件和依赖项,供开发者在他们的项目中使用。 Apache CXF的主要特性包括: 1. **Web服务实现**:CXF允许开发者使用JAX-WS...

    apache-cxf-3.1.6.zip官网完整包

    这个"apache-cxf-3.1.6.zip"是Apache CXF的3.1.6版本的官方完整包,发布于2016年4月14日,包含了与Spring框架的集成支持。 **Apache CXF核心特性:** 1. **Web服务实现**:CXF提供了基于Java API for Web Services...

    apache-cxf-3.5.0.zip

    Apache CXF 是一款广泛使用的开源框架,主要用于构建和部署高质量的Web服务。它以其灵活性、易用性和强大...通过深入理解和实践"apache-cxf-3.5.0.zip"中的内容,开发者可以更好地利用CXF构建高效、健壮的分布式系统。

    apache-cxf-2.2.4

    安装和使用"apache-cxf-2.2.4"时,开发者需要根据自己的项目需求选择合适的组件,配置相应的服务和客户端,并通过Maven或Gradle等构建工具将其依赖引入到项目中。同时,阅读官方文档和示例代码可以帮助更好地理解和...

    apache-cxf-2.4.2.zip

    4. **配置CXF**:在你的Ant构建文件build.xml中,配置CXF相关的任务,例如使用`cxf-codegen-plugin`生成WSDL或者Java接口,使用`cxf-servlet`部署服务到应用服务器。 5. **编译和运行**:通过运行Ant命令(如`ant ...

    apache-cxf-2.7.18.rar

    cxf自动生成webservice客户端,apache-cxf-2.7.18最稳定的版本 apache cxf 框架wsdl2java命令的使用。 -encoding是指定编码类型; -p 指定包名 -d 指定生成目录 -all生成服务端和客户端代码 -...

    apache-cxf 2.2.8版本下载

    在压缩包中的"apache-cxf-2.2.8"目录可能包含了CXF 2.2.8的所有组件和库文件,包括JAR包、文档、示例代码等,用户可以通过这些文件在自己的项目中集成和使用CXF。 总的来说,Apache CXF 2.2.8是一个功能强大的工具...

    apache-cxf-3.3.3.zip

    这个"apache-cxf-3.3.3.zip"压缩包包含了CXF框架的3.3.3版本,这是一个重要的里程碑,因为它包含了在此版本之前的所有修复、改进和新功能。CXF允许开发者以多种方式创建和消费Web服务,如Java API for RESTful Web ...

    apache-cxf-2.7.6.rar

    这个"apache-cxf-2.7.6.rar"文件包含的是Apache CXF 2.7.6版本的源码、库文件和其他相关资源。CXF这个名字是“Cocoon XML Framework”的缩写,起初它是Apache Cocoon项目的一部分,后来发展成为专注于Web服务的独立...

    apache-cxf-2.7.11

    在解压后的"apache-cxf-2.7.11"文件中,你将找到以下组件和资源: - **bin目录**:包含启动和配置CXF服务的脚本。 - **lib目录**:包含了CXF运行所需的库文件,包括JAR包。 - **docs目录**:存放API文档和其他技术...

    apache-cxf-3.1.5.zip

    这个"apache-cxf-3.1.5.zip"压缩包包含了Apache CXF 3.1.5版本的所有组件和库,是开发者在基于Java的环境中实现Web服务和SOAP通信的重要工具。 Apache CXF的主要功能和特点包括: 1. **Web服务实现**:CXF支持多种...

    apache-cxf-2.6.1.zip

    apache-cxf-2.6.1.zip cxf转化wsdl文件,生成javaBean实体类 附上使用文章:http://blog.csdn.net/sinat_34979884/article/details/78776305

    cxf框架包 apache-cxf-3.4.3.tar.gz

    下载"apache-cxf-3.4.3.tar.gz"后,你需要解压文件,然后将其添加到你的Java项目中。可以通过Maven或Gradle依赖管理工具引入,或者将CXF的JAR文件添加到项目的类路径中。 **7. 使用示例** - 创建服务接口和实现 - ...

    apache-cxf-2.7.7.zip

    这个"apache-cxf-2.7.7.zip"压缩包包含了CXF框架的2.7.7版本,这是一个在2013年发布的稳定版本。CXF是Apache软件基金会的项目,它集成了多种Web服务标准,如SOAP、RESTful HTTP、WS-*规范等,为开发者提供了一个全面...

    apache-cxf-3.2.4完整版

    - **服务端实现**:Apache CXF提供了多种方式来创建服务端Web服务,包括基于Java接口的WsdlFirst(WSDL优先)方法和基于Java类的CodeFirst(代码优先)方法。 - **客户端支持**:CXF同样支持生成客户端代码,使得...

    apache-cxf-3.4.4

    这个“apache-cxf-3.4.4”版本是该框架的一个发行版,它包含了实现和消费Web服务所需的所有组件和库。Apache CXF 支持多种协议和标准,如SOAP、RESTful、WS-*、JAX-RS 和 JAX-WS,使得开发者能够轻松地在Java应用...

    apache-cxf-3.2.8.zip

    CXF 继承了 Celtix 和 XFire 两大开源项目的精华,提供了对 JAX-WS 全面的支持,并且提供了多种 Binding 、DataBinding、Transport 以及各种 Format 的支持,并且可以根据实际项目的需要,采用代码优先(Code First...

    apache-cxf3.1.15和3.2.3合集及jdk说明

    这个合集包含了Apache CXF的两个不同版本,3.1.15和3.2.3,这可能是为了对比或兼容性测试,或者是为了满足不同项目的需求。 Apache CXF 3.1.15是该框架的一个稳定版本,它可能包含了若干bug修复和安全更新。而3.2.3...

    apache-cxf-2.2.10安装包和如何配置到环境变量

    - 将CXF bin目录的路径(如"C:\Program Files\Apache\CXF-2.2.10\bin")添加到已有的路径列表中,用分号";"隔开 **配置Apache CXF** 在安装完成后,我们需要配置CXF以与我们的项目集成。这通常涉及到以下步骤: ...

    apache-cxf-3.0.4

    Apache CXF = Celtix + XFire,开始叫 Apache CeltiXfire,后来更名为 Apache CXF 了,以下简称为 CXF。CXF 继承了 Celtix 和 XFire 两大开源项目的精华,提供了对 JAX-WS 全面的支持,并且提供了多种 Binding 、...

Global site tag (gtag.js) - Google Analytics