1 Reply Latest reply on Jan 14, 2009 4:36 AM by Alessio Soldano

    Servlet Exception

    Kevin Richards Newbie

      Hi,

      I managed to get CXF to kick in.

      However, when I query the wsdl via an internet browser, I get the following exception

      16:27:01,453 ERROR [[EntryPoint]] Servlet.service() for servlet EntryPoint threw exception
      javax.servlet.ServletException: Cannot obtain destination for: /camel-ws/EntryPoint
       at org.jboss.wsf.stack.cxf.ServletControllerExt.findDestination(ServletControllerExt.java:103)
       at org.jboss.wsf.stack.cxf.ServletControllerExt.invoke(ServletControllerExt.java:152)
       at org.jboss.wsf.stack.cxf.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:61)
       at org.jboss.wsf.stack.cxf.CXFServletExt.service(CXFServletExt.java:152)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
       at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
       at java.lang.Thread.run(Unknown Source)
      
      


      web.xml
      <?xml version="1.0" encoding="UTF-8"?>
      
      
      <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
       version="2.4">
      
       <servlet>
       <servlet-name>EntryPoint</servlet-name>
       <servlet-class>za.co.santam.pe.comm.EsbEntryPointWs</servlet-class>
       <!-- <servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class> -->
      
       </servlet>
      
       <servlet-mapping>
       <servlet-name>EntryPoint</servlet-name>
       <url-pattern>/EntryPoint</url-pattern>
       </servlet-mapping>
      


      jbossws-cxf.xml
      <?xml version="1.0" encoding="UTF-8"?>
      <beans
       xmlns='http://www.springframework.org/schema/beans'
       xmlns:jaxws='http://cxf.apache.org/jaxws'
       xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
       xmlns:wsa="http://cxf.apache.org/ws/addressing"
       xsi:schemaLocation='
       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
       http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
       '>
      
       <!-- Load CXF modules from cxf.jar -->
       <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" />
      
       <jaxws:endpoint
       id='ServiceImpl'
       address='http://@jboss.bind.address@:8080/cxf'
       implementor='za.co.santam.pe.comm.EsbEntryPointWs'>
      
       <jaxws:invoker>
       <bean class='org.jboss.wsf.stack.cxf.InvokerJSE'/>
       </jaxws:invoker>
      
       </jaxws:endpoint>
      </beans>
      


      Any ideas ?