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!
in WebContent/WEB-INF/cxf-beans.xml, remove import
<import resource="classpath:META-INF/ cxf/ cxf-extension-soap.xml" />
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With