原因是因为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下
相关资源:python入门教程(PDF版)