ITeye博客

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

ethan163 · 2014-10-14 09:03 · webservice · 移动开发 · Markdown

原因是因为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下

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。