cxf3.0+spring4.0.5错误
来源:互联网 发布:手机淘宝换回默认皮肤 编辑:程序博客网 时间:2024/05/20 02:51
学习配置cxf+spring,按部就班老的方法配置,出现如下错误
这里只贴出了错误的关键部分,主要是说找不到META-INF/cxf/cxf-extension-soap.xml这个东西。在老的配置方式里我们这样
import了三个xml文件,在3.0版本之前这三个文件都是在cxf-core下的META-INF/cxf/目录下,排查各种原因后发现在3.0的核心包即cxf-core下没有了
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerorg.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: class path resource [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 existat org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
这里只贴出了错误的关键部分,主要是说找不到META-INF/cxf/cxf-extension-soap.xml这个东西。在老的配置方式里我们这样
<import resource="classpath:META-INF/cxf/cxf.xml" /><import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" /><import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
import了三个xml文件,在3.0版本之前这三个文件都是在cxf-core下的META-INF/cxf/目录下,排查各种原因后发现在3.0的核心包即cxf-core下没有了
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" /><import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
这两个xml文件
其实在2.7版本的时候<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />这句话就可以不加了,应为这里面没有东西,那现在原因找到了,只要去了
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" /><import resource="classpath:META-INF/cxf/cxf-servlet.xml" />这两句话就ok了,爽
1 0
- cxf3.0+spring4.0.5错误
- 简单CXF3.0整合Spring4.1
- CXF3.1.6+Spring4.1.9整合
- [CXF REST标准实战系列] 二、Spring4.0 整合 CXF3.0,实现测试接口
- 转载 [CXF REST标准实战系列] 二、Spring4.0 整合 CXF3.0,实现测试接口
- CXF3+spring4发布RESTful问题总结
- spring4.x + cxf3.x整合实例
- WebService Spring4.3+cxf3.1.5整合Demo
- 利用cxf3.14+spring4.2发布webservice
- 使用 Spring4 + CXF3 + WS-Security 开发 WebService
- cxf3.1.4整合spring4.1.7 demo-xs
- webservice-CXF3.0
- 手把手教你 cxf3.1.4整合spring4.2
- cxf3.14+spring4.2以rest风格发布webservice
- was8+cxf3.0.15+spring4.x 部署不兼容问题
- CXF3.0使用的注意事项
- spring4.1.6+cxf3.0.8的简单WebService案例(maven工程)
- Spring4 + CXF3.1.5 RESTful Web Service 实战例子 (调试通过)
- Oracle 表空间与数据文件
- Yii Criteria常用方法
- 算法竞赛入门经典(第2版)习题3-11 换低挡装置 Kickdown UVa1588
- JQuery中$.ajax()方法参数详解
- Extjs grid 遍历store
- cxf3.0+spring4.0.5错误
- A/B(扩展欧几里得)
- Android SharedPreference配合checkBox完成用户名和密码保存
- 管式超滤系统主要应用领域
- SQL创建表时候添加字段说明方法
- user/include/netinet/in.h 说明
- 用户空间访问内核空间网络设备
- 设置的元素!
- Linux下出现/java: cannot execute binary file