最近爆了个spring的漏洞,然后公司整体要求升级spring到最新版本,然后搞四了一大批猿人。

spring-4.*的最新版本是4.3.16(稳定版)

xfire-spring-1.2.6(最新版-已经停止维护了-后续建议不要再使用了)

进入正题(主要修改的东西有二步):

注:可以去下载xfire-spring-1.2.6的源码或者反编译,问题主要是修改xml配置文档,无需重新编译的。

1、异常:Configuration problem: Old 1.x 'singleton' attribute in use - upgrade to 'scope

原因:spring-4.*不支持singleton=false写法了。

处理:找到下面配置文件

org/codehaus/xfire/spring/xfire.xml

org/codehaus/xfire/spring/xfireXmlBeans.xml

singleton="false" 修改为 scope="prototype"

2、异常:cannot convert value of type 'org.codehaus.xfire.spring.editors.ServiceFactoryEditor' to .....

原因:spring-4.*的customEditors获取类型直接指定为Class,而配置默认还是缺省的。

处理:找到下面配置文件

org/codehaus/xfire/spring/customEditors.xml

<bean id="xfire.customEditorConfigurer"
class="org.springframework.beans.factory.config.CustomEditorConfigurer">
<property name="customEditors">
<map>
<!-- 使用这一行即可 -->
<entry key="org.codehaus.xfire.service.ServiceFactory" value="org.codehaus.xfire.spring.editors.ServiceFactoryEditor"></entry>
<!-- <entry key="org.codehaus.xfire.service.ServiceFactory"> -->
<!-- <bean class="org.codehaus.xfire.spring.editors.ServiceFactoryEditor"> -->
<!-- <property name="transportManager" ref="xfire.transportManager" /> -->
<!-- </bean> -->
<!-- </entry> -->
</map>
</property>
</bean>

最新文章

  1. 【C#公共帮助类】 ToolsHelper帮助类
  2. [NHibernate]利用LINQPad查看NHibernate生成SQL语句
  3. python 批量扫描mongodb 未授权访问脚本
  4. error: command &#39;cc&#39; failed with exit status 1
  5. NSCharacter​Set在字符串操作中得使用
  6. 彻底理解跨域解决方案JSONP
  7. ASP.NET MVC+EF在服务端分页使用jqGrid以及jquery Datatables的注意事项
  8. RDIFramework.NET ━ .NET快速信息化系统开发框架 ━ 工作流程组件Web业务平台
  9. Python 爬虫实例
  10. js 字符串日期 转成 Date
  11. bzoj1913
  12. HttpClient 发送 HTTP、HTTPS 请求的简单封装
  13. struts2.1.6教程五、拦截器
  14. PHP的AES加密类
  15. 程序管理与SElinux
  16. Python的re模块中search与match的区别
  17. java基础知识—字符串
  18. 89、instancetype和id的区别
  19. design mode(php)
  20. openstack neutron 深入

热门文章

  1. 1141 PAT Ranking of Institutions (25 分)
  2. [转] 前后端分离之JWT用户认证
  3. Oracle PL/SQL之GROUP BY GROUPING SETS
  4. python爬虫之User-Agent用户信息
  5. PIE SDK分类统计
  6. js栈内存和堆内存的区别
  7. socket基础篇
  8. 虚拟机xp系统中Oracle 10g的安装
  9. matlab实现M/M/1排队系统
  10. 腾讯云CDB的AI技术实践:CDBTune