解决方案 »

  1.   

    应该是包中的类型转换失败了ServiceFactoryEditor不能转换成String类型
      

  2.   

    楼主,其实这个问题我之前已经老早就知道是因为Spring新版中去掉了一些旧的类和方法,而Xfire一直都是1.2.6版本后就不更新了,一直还在沿用旧版的Spring类和方法,自然就报错了,可以通过以下地址查看,这个问题在CXF一些老版本中一样会出现
    http://blog.circadianlabs.com/
    http://www.nabble.com/Is-CXF-(2.1.4)-compatible-with-Spring-3.0.0-(M1)–td21966646.html
    希望对你有帮助~~
    原本我还想找到Xfire的源代码,然后进行改造,结果。你知道的,还是太吃力!
      

  3.   

    楼主所反映的问题,终归是一个相同的错误:
    Error creating bean with name 'xfire.customEditorConfigurer' defined in class path resource [org/codehaus/xfire/spring/customEditors.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type "java.util.LinkedHashMap" to required type "java .util.Map" for property 'customEditors'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [org.codehaus.xfire.spring.editors.ServiceFactoryEditor] to required type
    希望对其它博友有用;目前发现spring3.2.12.RELEASE+xfire1.2.6还是能正常跑起来的,由于现在手头上的项目已经多年,不可能把xfire换掉成cxf,所以只能把spring定格在3.2.12这个版本上,不过项目中,可以同时加入cxf-3.0.2(当前最新版,xfire服务器端可正常启动和运行,但是xfire的客户端已经无法使用)