1 Reply Latest reply on Aug 12, 2014 5:53 AM by Alessio Soldano

    javax.servlet.ServletException: JBWS024029: Cannot obtain destination

    Rizwana Ibrahim Newbie

      I am testing simple HelloWS, My web.xml has entry

      servlet>

      <display-name>HelloService</display-name>

      <servlet-name>HelloService</servlet-name>

      <servlet-class>org.jboss.samples.webservices.HelloService</servlet-class>

      </servlet>

      <servlet-mapping>

      <servlet-name>HelloService</servlet-name>

      <url-pattern>/HelloService</url-pattern>

      </servlet-mapping>

      and jbossws-cxf.xml has

      <jaxws:endpoint id="Hello"  address="http://localhost:8080/app/HAYServer/Hello" implementor="org.jboss.samples.webservices.HelloService">

      <jaxws:invoker>

           <ean class="org.jboss.wsf.stack.cxf.JBossWSInvoker" />

      </jaxws:invoker>

      When i access http://localhost:8080/app/HAYServer/Hello, i get 404 exception and when i try to acces

      address=http://localhost:8080/CFXProject/HelloService i get below exception -

       

      ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/CFXProject].[HelloService]]

      (http-localhost/127.0.0.1:8080-1) JBWEB000236:

      Servlet.service() for servlet HelloService

      threw exception: javax.servlet.ServletException: JBWS024029: Cannot obtain destination for /CFXProject/HelloService

      at org.jboss.wsf.stack.cxf.RequestHandlerImpl.findDestination(RequestHandlerImpl.java:165)

      at org.jboss.wsf.stack.cxf.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:82)

      at org.jboss.wsf.stack.cxf.transport.ServletHelper.callRequestHandler(ServletHelper.java:143)

      at org.jboss.wsf.stack.cxf.CXFServletExt.invoke(CXFServletExt.java:87)

      at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)

      at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:211)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-1.jar:1.0.2.Final-redhat-1]

       

      Cant we have multiple url's like these. I am runing this on Jboss EAP 6.2.0.

      Please help, its urgent