---
title: "Unrecognized xbean element mapping: beans in namespace http://xfire.codehaus.org"
author: "ethan163"
date: "2014-10-14T09:03:37Z"
tags: []
categories: ["移动开发"]
slug: "unrecognized-xbean-element-mapping-beans-in-namespace-http-xfire-codehaus-org"
draft: false
lastmod: "2014-10-14T09:03:37Z"
id: 2137288
url: "https://ethan163.iteye.com/blog/2137288"
---

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

解决方式：

将原来的文件如下

&lt;beans xmlns="[http://xfire.codehaus.org/config/1.0](http://xfire.codehaus.org/config/1.0)"&gt;  
    &lt;service&gt;  
    &lt;/service&gt;  
&lt;/beans&gt;

 

改为

&lt;beans&gt;  
    &lt;service xmlns="[http://xfire.codehaus.org/config/1.0](http://xfire.codehaus.org/config/1.0)"&gt;  
    &lt;/service&gt;  
&lt;/beans&gt;

即可，

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