cfx发布webservice报错:org.apache.cxf.service.factory.ServiceConstructionException 10
RTorg.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'w...
RT
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'workservices': Invocation of init method failed; nested exception is org.apache.cxf.service.factory.ServiceConstructionException
Caused by: org.apache.cxf.service.factory.ServiceConstructionException
有朋友知道这是什么错么?
谢谢朋友啦。。。
spring配置文件如下:
<?xml version="1.0" encoding="UTF-8"?>
<beans default-autowire="autodetect"
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xmlns:cxf="http://cxf.apache.org/core"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://cxf.apache.org/jaxws
http://cxf.apache.org/schemas/jaxws.xsd">
<import resource="classpath:META-INF/cxf/cxf.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
<!-- Add new Managers here -->
<!--作业管理-START-->
<bean id="wrkWorksDao" class="com.itsoft.wrk.dao.WrkWorksDao"/>
<bean id="wrkWorkService" class="com.itsoft.wrk.service.WrkWorkService">
<property name="wrkWorksDao" ref="wrkWorksDao"/>
</bean>
<bean id="wrkWorksAction" class="com.itsoft.wrk.web.action.WrkWorksAction" scope="prototype"/>
<!--作业管理-END-->
<jaxws:server id="workservices" serviceClass="com.itsoft.wrk.service.WrkWorkService" address="/services">
<jaxws:serviceBean>
<ref bean="wrkWorkService"/>
</jaxws:serviceBean>
</jaxws:server>
</beans>
web.xml也配置了。
然后com.itsoft.wrk.service.WrkWorkService这个类也加了标识:@WebService
我是初次用webservice。按照网上朋友的步骤来的。但是不知道为啥报这个错! 展开
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'workservices': Invocation of init method failed; nested exception is org.apache.cxf.service.factory.ServiceConstructionException
Caused by: org.apache.cxf.service.factory.ServiceConstructionException
有朋友知道这是什么错么?
谢谢朋友啦。。。
spring配置文件如下:
<?xml version="1.0" encoding="UTF-8"?>
<beans default-autowire="autodetect"
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xmlns:cxf="http://cxf.apache.org/core"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://cxf.apache.org/jaxws
http://cxf.apache.org/schemas/jaxws.xsd">
<import resource="classpath:META-INF/cxf/cxf.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
<!-- Add new Managers here -->
<!--作业管理-START-->
<bean id="wrkWorksDao" class="com.itsoft.wrk.dao.WrkWorksDao"/>
<bean id="wrkWorkService" class="com.itsoft.wrk.service.WrkWorkService">
<property name="wrkWorksDao" ref="wrkWorksDao"/>
</bean>
<bean id="wrkWorksAction" class="com.itsoft.wrk.web.action.WrkWorksAction" scope="prototype"/>
<!--作业管理-END-->
<jaxws:server id="workservices" serviceClass="com.itsoft.wrk.service.WrkWorkService" address="/services">
<jaxws:serviceBean>
<ref bean="wrkWorkService"/>
</jaxws:serviceBean>
</jaxws:server>
</beans>
web.xml也配置了。
然后com.itsoft.wrk.service.WrkWorkService这个类也加了标识:@WebService
我是初次用webservice。按照网上朋友的步骤来的。但是不知道为啥报这个错! 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询