Deployment error in CXF 3.0.3 in generated Java service top-down from WSDL

I am very grateful for your help in this issue.

Configuration - Eclipse Juno, CXF 3.0.3 and Tomcat v7. I used CXF to create a top-down web service from a WSDL approach. But when deploying the service on Tomcat, I get the following error:

org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location [classpath:META-INF/cxf/cxf-extension-soap.xml]

Offensive resource: ServletContext resource [/WEB-INF/cxf-beans.xml]; A nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing an XML document from a class path resource [META-INF / cxf / cxf-extension-soap.xml]; inested exception is java.io.FileNotFoundException: class path resource [META-INF / cxf / cxf-extension-soap.xml] cannot be opened because it does not exist

I just can't find a solution to this error, and I am stuck for a long time. Many thanks!

+4
source share
3 answers

in WebContent / WEB-INF / cxf- beans.xml, delete the import

<import resource="classpath:META-INF/ cxf/ cxf-extension-soap.xml" />
+6
source

As per the documentation, you no longer need to import this file into CXF 3:

Starting with CXF 2.4.0, extensions are automatically loaded by CXF, and you do not need to import the entire cxf-extension - * file. xml. You only need to import the classpath: META-INF / cxf / cxf.xml.

+6
source

cxf 2.2.6 3.1.0. cxf-extension-soap.xml, .

+2

All Articles