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

11,885

Solution 1

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

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

Solution 2

According to documentation you don't need to import this file anymore in CXF 3:

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

Solution 3

I got the same issue with updating cxf 2.2.6 to 3.1.0. I just removed import cxf-extension-soap.xml and it worked.

Share:
11,885
sari
Author by

sari

Updated on June 14, 2022

Comments

  • sari
    sari almost 2 years

    I would very much appreciate your help with this issue.

    Configuration is Eclipse Juno, CXF 3.0.3 runtime and Tomcat v7. I have used CXF to create Web service top down from ready WSDL approach. But when deploying 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]
    

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

    I simple cannot find a solution to this error and I'm stuck for long time. Many thanks!