问题一、报异常:java.lang.ClassNotFoundException :org.codehaus.xfire.transport.http.XFireConfigurableServlet
解决办法:导入xfire-all-1.2.6.jar
问题二:报异常:java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
解决办法:导入commons-logging-1.0.4.jar
问题三:tomcat启动时报错:java.io.FileNotFoundException: class path resource [META-INF/xfire/services.xml] cannot be opened because it does not exist
而实际上,META-INF/xfire/services.xml的目录下是有services.xml文件的。
解决办法:将META-INF/xfire/services.xml这个目录拷贝一份到WEB-INF下
问题四:tomcat启动时报错:org.springframework.beans.factory.BeanDefinitionStoreException: Unrecognized xbean element mapping: beans in namespace http://xfire.codehaus.org/config/1.0
解决办法:
修改services.xml,将原来的:
<beans xmlns="http://xfire.codehaus.org/config/1.0">
<service>
</service>
</beans>
改为:
<beans>
<service xmlns="http://xfire.codehaus.org/config/1.0">
</service>
</beans>
该问题参考:http://blog.csdn.net/liuxiaogangqq/article/details/12836213