views:

14

answers:

2

I'm trying to build a WS with CXF. I'm following this article http://www.ibm.com/developerworks/library/ws-pojo-springcxf/
But I have 2 questions:

1) http://stackoverflow.com/questions/3969268/which-maven2-artifacts-are-necessary-to-build-a-ws-with-cxf-and-spring

2) I'm getting this error: FileNotFound: META-INF/cxf/cxf.xml. I don't know where this file is.

Thanks in advance

A: 

You need to make sure you have proper cxf dependencies declared.

<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>

The META-INF/cxf/cxf.xml is in cxf-rt-core-2.2.5.jar which is one of the transitive dependencies.

Eugene Kuleshov