我正在尝试使用CXF构建WS。我正在关注这篇文章http://www.ibm.com/developerworks/library/ws-pojo-springcxf/ 但我有两个问题:
1)Which maven2 artifacts are necessary to build a WS with CXF and Spring?
2)我收到此错误:FileNotFound:META-INF / cxf / cxf.xml。我不知道这个文件在哪里。
提前致谢
答案 0 :(得分:1)
您需要确保声明了正确的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>
META-INF / cxf / cxf.xml位于cxf-rt-core-2.2.5.jar中,它是传递依赖项之一。
答案 1 :(得分:0)
META-INF / cxf / cxf.xml位于cxf-2.3.0.jar中 您将需要这些jar来运行cxf webservices
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