1 Reply Latest reply on Jul 9, 2016 9:28 AM by Vatsan Madabushi

    Cannot get WSDL to publish in JBoss 7.1.1 Final.

    Vatsan Madabushi Novice

      The exact same service is able to publish the WSDL in Jboss 6.1.0.Final.  The exception stacetrace is below when I rquest teh WSDL via a browser.  In both environments, I have Apache fronting JBoss (and JBoss runs on local host)

       

      09:23:03,493 INFO  [stdout] (ajp--127.0.0.1-9991-1) 09:23:03,493 INFO  [e.Filter]: BSLProcessLog|ajp--127.0.0.1-9991-1|doFilter|Environment is = uat|

      09:23:03,518 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/myservice].[OasService]] (ajp--127.0.0.1-9991-1) Servlet.service() for servlet OasService threw exception: javax.servlet.ServletException: Cannot obtain destination for: //myservice/service/oas

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

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

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

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

              at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:185) [cxf-rt-transports-http-2.4.6.jar:2.4.6]

              at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:113) [cxf-rt-transports-http-2.4.6.jar:2.4.6]

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

              at org.jboss.wsf.stack.cxf.CXFServletExt.service(CXFServletExt.java:135)

              at org.jboss.wsf.spi.deployment.WSFServlet.service(WSFServlet.java:140) [jbossws-spi-2.0.3.GA.jar:2.0.3.GA]

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

              at com.vzw.etm.ws.filter.WsdlAccessFilter.doFilter(WsdlAccessFilter.java:48) [classes:]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:397) [jbossweb-7.0.13.Final.jar:]

              at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]

              at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:505) [jbossweb-7.0.13.Final.jar:]

              at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:445) [jbossweb-7.0.13.Final.jar:]

              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]

              at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_80]

       

       

      My web and web service settings from standalone.xml:

      <subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false">

                  <connector name="ajp" protocol="AJP/1.3" scheme="ajp" socket-binding="ajp"/>

                  <virtual-server name="default-host" enable-welcome-root="false">

                      <alias name="localhost"/>

                      <alias name="mytest..com"/>

                  </virtual-server>

              </subsystem>

              <subsystem xmlns="urn:jboss:domain:webservices:1.1">

                  <modify-wsdl-address>true</modify-wsdl-address>

                 <wsdl-host>jbossws.undefined.host</wsdl-host>

                  <endpoint-config name="Standard-Endpoint-Config"/>

                  <endpoint-config name="Recording-Endpoint-Config">

                      <pre-handler-chain name="recording-handlers" protocol-bindings="##SOAP11_HTTP ##SOAP11_HTTP_MTOM ##SOAP12_HTTP ##SOAP12_HTTP_ MTOM">

                          <handler name="RecordingHandler" class="org.jboss.ws.common.invocation.RecordingServerHandler"/>

                      </pre-handler-chain>

                  </endpoint-config>

              </subsystem>

      .........

      <interfaces>       
              <interface name="public">
                  <inet-address value="${jboss.bind.address:127.0.0.1}"/>
              </interface>
          </interfaces>

          <socket-binding-group name="standard-sockets" default-interface="public">
              <socket-binding name="ajp" port="9991"/>
              <socket-binding name="jndi" port="18500"/>
              <socket-binding name="remoting" port="4447"/>
              <socket-binding name="classServer" port="18501"/>
              <socket-binding name="jrmp" port="18502"/>
          </socket-binding-group>

        

       

      From console logs:

      09:12:01,144 INFO  [org.jboss.wsf.stack.cxf.metadata.MetadataBuilder] (MSC service thread 1-1) Add Service

      id=OasService

      address=https://jbossws.undefined.host:8443/myservice/service/oas

      implementor=my.service.ws.oas.OasService

      invoker=org.jboss.wsf.stack.cxf.JBossWSInvoker

      serviceName={http://my.service.ws.vzw.com/}OasServiceService

      portName={http://my.service.ws.vzw.com/}OasServicePort

      wsdlLocation=null

      mtomEnabled=false

       

      It needs to be myserver.com:port/myservices/service/oas.

       

      Can you tell me what is wrong and how to fix it?