我正在使用Jboss6来部署使用CXF开发的web服务。
由于Jboss6已与CXF捆绑在一起,我在我的应用程序中没有使用任何cxf jar文件。
当我尝试在部署后访问我的wsdl文件时,我收到以下异常
javax.servlet.ServletException: Cannot obtain destination for: /UPCServiceLayer/upcLineOfBusinessService
org.jboss.wsf.stack.cxf.ServletControllerExt.findDestination(ServletControllerExt.java:111)
org.jboss.wsf.stack.cxf.ServletControllerExt.invoke(ServletControllerExt.java:165)
以下是我的jbossws-cxf.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws"
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://cxf.apache.org/bindings/soap http://cxf.apache.org/schemas/configuration/soap.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.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" />
<import resource="classpath:../upc-spring-dao.xml"/>
<jaxws:endpoint id="UpcLineOfBusinessServiceImpl"
address="/upcLineOfBusinessService">
<jaxws:implementor>
<ref bean="upcLineOfBusinessService"></ref>
</jaxws:implementor>
<jaxws:invoker>
<bean class="org.jboss.wsf.stack.cxf.InvokerJSE" />
</jaxws:invoker>
</jaxws:endpoint>
</beans>
请帮帮我
答案 0 :(得分:0)
您是否尝试将address="/upcLineOfBusinessService"
替换为address="/UPCServiceLayer/upcLineOfBusinessService
?