Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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!

like image 986
sari Avatar asked Jan 22 '15 14:01

sari


3 Answers

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

<import resource="classpath:META-INF/ cxf/ cxf-extension-soap.xml" />
like image 148
Diansheng Avatar answered Nov 18 '22 13:11

Diansheng


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.

like image 9
Konstantin V. Salikhov Avatar answered Nov 18 '22 13:11

Konstantin V. Salikhov


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.

like image 2
Thushan Jayasundara Avatar answered Nov 18 '22 11:11

Thushan Jayasundara