> 技术文档 > 泛微E9 引入高版本spring导致webservices接口报错

泛微E9 引入高版本spring导致webservices接口报错

OA引入了版本的spring依赖,导致webservice功能无法使用
[2024.06.13 10:22:28.472]2024-06-13 10:22:28,468 ERROR org.codehaus.xfire.transport.http.XFireServlet - Error initializing XFireServlet. org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unexpected failure during bean definition parsing Offending resource: class path resource [org/codehaus/xfire/spring/xfire.xml] Bean \'xfire.serviceRegistry\'; nested exception is org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Old 1.x \'singleton\' attribute in use - upgrade to \'scope\' declaration Offending resource: class path resource [org/codehaus/xfire/spring/xfire.xml] Bean \'xfire.serviceRegistry\'
 

OA引入了高版本的spring依赖,导致webservice功能无法使用

解决方案(二选一):

1、删除引入的高版本的spring依赖(确保OA其他代码没有依赖要删除的jar),重启OA服务

2、参考附件中的方案处理

哈雷摩托