cannot convert value of type ‘org.codehaus.xfire.spring.editors.ServiceFactoryEditor
文章目录
- 一、分析定位
- 1.异常现象
- 2. 分析定位
- 二、解决方案
- 2.1.找坐标
- 2.3. 找jar包
- 2.3. 打开jar包
- 2.4. 找目录
- 2.5. 编辑customEditors.xml
一、分析定位
1.异常现象
cannot convert value of type ‘org.codehaus.xfire.spring.editors.ServiceFactoryEditor
2. 分析定位
原因是Spring4.0和xfire1.2.6有版本冲突
二、解决方案
2.1.找坐标
找到xfire-spring-1.2.6.jar
包的maven坐标
<dependency><groupId>org.codehaus.xfire</groupId><artifactId>xfire-all</artifactId><version>1.2.6</version></dependency>
2.3. 找jar包
在本地仓库中根据maven坐标,找xfire-spring-1.2.6.jar
2.3. 打开jar包
利用好压打开
2.4. 找目录
进入xfire-all-1.2.6.jar\org\codehaus\xfire\spring
文件夹下面
2.5. 编辑customEditors.xml
修改xfire-spring-1.2.6.jar
中的org/codehaus/xfire/spring/customEditors.xml
文件,将< map>< /map>
中的内容做一下调整,替换成下面的内容
原文
<entry key="org.codehaus.xfire.service.ServiceFactory"><bean class="org.codehaus.xfire.spring.editors.ServiceFactoryEditor"><property name="transportManager" ref="xfire.transportManager" /></bean></entry>
替换成
<entry key="org.codehaus.xfire.service.ServiceFactory" value="org.codehaus.xfire.spring.editors.ServiceFactoryEditor"></entry>
。。。。
调整完毕后,点击左上角文件-保存
点击右上角文件-x号关闭此页面
确定
完毕!!!
cannot convert value of type ‘org.codehaus.xfire.spring.editors.ServiceFactoryEditor相关推荐
- 使用XFire+Spring构建Web Service(二)
来源:http://www.blogjava.net/amigoxie/archive/2007/09/28/149074.html 在<使用XFire+Spring构建Web Service( ...
- 使用XFire+Spring构建Web Service(一)——helloWorld篇
来源:http://www.blogjava.net/amigoxie/archive/2007/09/26/148207.html XFire 是与Axis 2并列的新一代Web Service框架 ...
- java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x12问题
今天写程序,从一个Activity跳到另一个Activity,页面加载时出现了以下错误: 06-03 03:23:27.289: E/AndroidRuntime(9939): java.lang.R ...
- XFire报错:org.codehaus.xfire.fault.XFireFault
在客户端调用时却发现包下面的错误: rg.codehaus.xfire.fault.XFireFault: There must be a method name element. at org.co ...
- Cannot convert value of type 'com.sun.proxy.$Proxy10 implementing com.shuai.
ssm之前修改了包名后提示Cannot convert value of type 'com.sun.proxy.$Proxy10 implementing com.shuai. 在applicati ...
- Failed to convert value of type 'java.lang.String' to required type 'java.util.Date
异常原因:Controller层获取JSP页面请求参数是String类型,而在Controller层接收时使用Date类型,属于方法参数类型不匹配异常 警告: Failed to bind reque ...
- Cannot convert value of type 'org.apache.ibatis.session.defaults.DefaultSqlSessionFactory' to requir
报错:Cannot convert value of type 'org.apache.ibatis.session.defaults.DefaultSqlSessionFactory' to req ...
- can‘t convert from BSON type long to Date
{$project: {year: {$year: "$createTime"},_id: 1,createTime: 1} } 以上语句在查询mongodb时报错:can't c ...
- Cannot convert value of type ‘java.lang.String‘ to required type ‘java.util.Map‘ for property ‘param
问题描述 若依中使用feign进行远程调用,在get请求中使用@SpringQueryMap映射对象时,映射对象的父类中带有Map<String, Object>类型的params属性时, ...
最新文章
- 【公开课预告】AutoML知多少
- Python 之 Numpy (六)分割
- volatile: 多线程程序员最好的朋友
- c# 获取cad文档的路径_C# 打开以对话框,获取文件夹路径 、文件的路径、文件名...
- 【Android 逆向】代码调试器开发 ( ptrace 函数 | 读取进程内存数据 )
- linux配置python_Linux--linux下配置安装python3
- ie浏览器里面无法输入文字:
- Python编程语言简介
- 在Eclipse中使用OpenCV Java
- python-day8-赋值
- Adobe Illustrator的教程:使用渐变网格工具创建矢量插图
- AJAX vs FLEX:执行,传送,解析JSON,HTML,XML,AFM格式效率比较.
- 30页不容错过的超赞项目管理PPT
- 基于Web的酒店客房管理系统的设计与实现
- 这座研究所出了8位菲尔兹奖得主: 教授没有发论文压力,不指定方向,不必教课...
- monitorServer IBM Tivoli Enterprise Monitor Server
- 输入某年某日,判断这一天是这一年的第几天
- easy_install 和 pip 的安装及使用
- 新硬盘装机出现Disk Read Error解决方案
- Android 12 快速适配要点