Web services 如何使用CXF和Spring构建WS?

Web services 如何使用CXF和Spring构建WS?,web-services,spring,cxf,Web Services,Spring,Cxf,我正在尝试使用CXF构建WS。我正在关注这篇文章 但我有两个问题: (一) 2) 我得到这个错误:FileNotFound:META-INF/cxf/cxf.xml。我不知道这个文件在哪里 提前感谢您需要确保声明了正确的cxf依赖项 <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-frontend-jaxws</artifactId>

我正在尝试使用CXF构建WS。我正在关注这篇文章
但我有两个问题:

(一)

2) 我得到这个错误:FileNotFound:META-INF/cxf/cxf.xml。我不知道这个文件在哪里


提前感谢

您需要确保声明了正确的cxf依赖项

<dependency>
    <groupId>org.apache.cxf</groupId>
    <artifactId>cxf-rt-frontend-jaxws</artifactId>
    <version>2.2.5</version>
</dependency>
<dependency>
    <groupId>org.apache.cxf</groupId>
    <artifactId>cxf-rt-transports-http</artifactId>
    <version>2.2.5</version>
</dependency>

org.apache.cxf
cxf rt前端jaxws
2.2.5
org.apache.cxf
cxf rt传输http
2.2.5

META-INF/cxf/cxf.xml位于cxf-rt-core-2.2.5.jar中,这是一个可传递的依赖项。

META-INF/cxf/cxf.xml位于cxf-2.3.0.jar中 您将需要这些JAR来运行cxf Web服务

commons-codec-1.3.jar commons-collections-3.2.1.jar commons-lang-2.4.jar commons-logging-1.1.1.jar commons-pool-1.5.2.jar cxf-2.3.0.jar cxf-manifest.jar geronimo-activation_1.1_spec-1.0.2.jar geronimo-annotation_1.0_spec-1.1.1.jar geronimo-javamail_1.4_spec-1.6.jar geronimo-jaxws_2.1_spec-1.0.jar geronimo-stax-api_1.0_spec-1.0.1.jar geronimo-ws-metadata_2.0_spec-1.1.2.jar jaxb-api-2.2.1.jar jaxb-impl-2.2.1.1.jar jaxb-xjc-2.2.1.1.jar jstl.jar log4j-1.2.15.jar spring-aop-3.0.4.RELEASE.jar spring-asm-3.0.4.RELEASE.jar spring-beans-3.0.4.RELEASE.jar spring-context-3.0.4.RELEASE.jar spring-core-3.0.4.RELEASE.jar spring-expression-3.0.4.RELEASE.jar spring-jms-3.0.4.RELEASE.jar spring-tx-3.0.4.RELEASE.jar spring-web-3.0.4.RELEASE.jar standard.jar wsdl4j-1.6.2.jar wss4j-1.5.9.jar xalan-2.7.1.jar xml-resolver-1.2.jar xmlbeans-2.4.0.jar XmlSchema-1.4.7.jar xmlsec-1.4.3.jar commons-codec-1.3.jar commons-collections-3.2.1.jar commons-lang-2.4.jar commons-logging-1.1.1.jar commons-pool-1.5.2.jar cxf-2.3.0.jar cxf-manifest.jar geronimo-activation_1.1_spec-1.0.2.jar geronimo-annotation_1.0_spec-1.1.1.jar geronimo-javamail_1.4_spec-1.6.jar geronimo-jaxws_2.1_spec-1.0.jar geronimo-stax-api_1.0_spec-1.0.1.jar geronimo-ws-metadata_2.0_spec-1.1.2.jar jaxb-api-2.2.1.jar jaxb-impl-2.2.1.1.jar jaxb-xjc-2.2.1.1.jar jstl.jar log4j-1.2.15.jar spring-aop-3.0.4.RELEASE.jar spring-asm-3.0.4.RELEASE.jar spring-beans-3.0.4.RELEASE.jar spring-context-3.0.4.RELEASE.jar spring-core-3.0.4.RELEASE.jar spring-expression-3.0.4.RELEASE.jar spring-jms-3.0.4.RELEASE.jar spring-tx-3.0.4.RELEASE.jar spring-web-3.0.4.RELEASE.jar standard.jar wsdl4j-1.6.2.jar wss4j-1.5.9.jar xalan-2.7.1.jar xml-resolver-1.2.jar xmlbeans-2.4.0.jar XmlSchema-1.4.7.jar xmlsec-1.4.3.jar
您是否有错误的完整堆栈跟踪?