XFire配置的问题
web.xml配置
<!-- webservice 相关配置2,这种配置方式xfire在启动时候根据spring配置文件关于xfire配置内容来启动 -->
<servlet>
<servlet-name>xfireServlet</servlet-name>
<servlet-class>
org.codehaus.xfire.spring.XFireSpringServlet
</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/config/xfire-servlet.xml</param-value>
</init-param>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>xfireServlet</servlet-name>
<url-pattern>/services/*</url-pattern>
</servlet-mapping>
xfire-servlet.xml配置
<!--?xml version=1.0 encoding=UTF-8? -->
<beans aop="" beans="" context="" http:="" schema=""
spring-aop-2.5.xsd=""
spring-beans-2.5.xsd=""
spring-context-2.5.xsd=""
spring-tx-2.5.xsd="" tx=""
www.springframework.org=""
xmlns="http://www.springframework.org/schema/beans"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemalocation="http://www.springframework.org/schema/beans">
<context:component-scan base-package="com.halis.souhuo.xfire">
<tx:annotation-driven transaction-manager="transactionManager">
<context:property-placeholder location="classpath:jdbc.properties">
<import resource="classpath:org/codehaus/xfire/spring/xfire.xml">
<bean class="org.codehaus.xfire.annotations.jsr181.Jsr181WebAnnotations" id="webAnnotations">
<bean class="org.codehaus.xfire.spring.remoting.Jsr181HandlerMapping" id="jsr181HandlerMapping">
<property name="xfire" ref="xfire">
<property name="webAnnotations" ref="webAnnotations">
</property>
</property>
</bean>
</bean>
</import>
</context:property-placeholder>
</tx:annotation-driven>
</context:component-scan>
</aop:aspectj-autoproxy>
</beans>
启动时报错No bean named 'xfire' is defined