Unrecognized xbean element mapping: beans in namespace http://xfire.codehaus.org

原因是因为xfire中内嵌的是spring1.2.8,而spring的1.X与2.X之间命名空间的方式改变了...

解决方式:

将原来的文件如下

<beans xmlns="http://xfire.codehaus.org/config/1.0">
    <service>
    </service>
</beans>

 

改为

<beans>
    <service xmlns="http://xfire.codehaus.org/config/1.0">
    </service>
</beans>

即可,

如果你是在myeclipse直接创建的web项目的话,需要把META-INF(包含xfire/services.xml)的内容复制到WEB-INF下

猜你喜欢

转载自ethan163.iteye.com/blog/2137288