使用cxf创建webservice发生“Failed to import bean definitions from URL location [classpath:META-INF/cxf/cxf”

来源:互联网 发布:js防水涂料基层处理 编辑:程序博客网 时间:2024/05/16 05:50

转载请注明出处:http://blog.csdn.net/dongdong9223/article/details/53156495
本文出自【我是干勾鱼的博客】

使用cxf创建webservice,我用的是目前的最新的版本3.1.8

启动tomcat的时候发生了一个错误:

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

上网查了一下,有的人说在cxf3.0版本之后可能已经不需要这个配置文件了,需要在spring的xml配置文件里删除这个引用,也就是将:

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

去掉。

试了一下,果然就不报错了。

0 0
原创粉丝点击