[英]How to build a WS with CXF and Spring?
我正在嘗試使用CXF構建WS。 我正在關注本文http://www.ibm.com/developerworks/library/ws-pojo-springcxf/
但是我有兩個問題:
1) 使用CXF和Spring構建WS需要哪些maven2工件?
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>
META-INF / cxf / cxf.xml位於cxf-rt-core-2.2.5.jar中,這是傳遞依賴項之一。
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
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.