WSDLPublisher not configured, unable to publish contract!
dilipmathi Jan 25, 2012 7:16 AMHi to all,
I tried to deploy cxf webservices in Jboss 6. Since Jboss6 comes with cxf i didn't include any cxf jar files inside my application.
When i try to access the wsdl file after the deployment i am getting following exception
javax.servlet.ServletException: Cannot obtain destination for: /UPCServiceLayer/upcLineOfBusinessService
This my jboss-ws-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:endpoint> </beans>
The following is my web.xml
<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"> <display-name>UPCServiceLayer</display-name> <context-param> <param-name>contextConfigLocation</param-name> <param-value>WEB-INF/jbossws-cxf.xml</param-value> </context-param> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <servlet> <servlet-name>UPCLineOfBusinessService</servlet-name> <servlet-class>com.tecnotree.upc.services.impl.UpcLineOfBusinessServiceImpl</servlet-class> </servlet> <servlet-mapping> <servlet-name>UPCLineOfBusinessService</servlet-name> <url-pattern>/upcLineOfBusinessService</url-pattern> </servlet-mapping> <session-config> <session-timeout>60</session-timeout> </session-config> <session-config> <session-timeout>60</session-timeout> </session-config> </web-app>
I already checked this question community.jboss.org/thread/161037 . If i remove my cxf import files i am getting following exception
java.net.MalformedURLException: no protocol: /upcLineOfBusinessService
The webservice protocol jboss using here is CXF Server 3.4.1.GA
Please help me . Thanks in advance.