网上配置xfire的例子很多,如:http://www.javaeye.com/topic/319340 ,比较详细。
但是有一点要注意,xfire不单是需要xfire-all-1.2.6.jar,xfire-distribution-1.2.6.zip里面lib下的jar都需要,不然会报如下错误:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xfire.typeMappingRegistry' defined in class path resource [org/codehaus/xfire/spring/xfire.xml]: Initialization of bean failed;
...
因为是spring方式的create bean,提示信息无法提示具体缺少哪个包,几乎让你无法寻找到错误的根源。
本文介绍了使用XFire与Spring框架集成时常见的配置问题及解决方法。特别指出仅依赖xfire-all-1.2.6.jar文件是不够的,还需要包含xfire-distribution-1.2.6.zip中lib目录下的所有jar文件。文章通过实例说明了缺少必要jar包时可能出现的错误及排查技巧。
6846

被折叠的 条评论
为什么被折叠?



