glassfish
  1. glassfish
  2. GLASSFISH-18068

JAX-WS WebService not deployed at correct endpoint uri

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.1
    • Fix Version/s: 4.0_b73
    • Component/s: web_services
    • Labels:
      None
    • Environment:

      OS X 10.7

      Description

      Hi,

      when I create a WebService in a WAR file and try to let it listen on a self-defined endpoint uri it fails to do so. It will say in the log file that is listening on the self-defined uri but in relaity it is not. I define the endpoint-uri in the sun-web.xml file like this:

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 Servlet 2.5//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_5-0.dtd">
      <sun-web-app error-url="">
      	<context-root>/BugTest</context-root>
      	<servlet>
      		<servlet-name>HelloService</servlet-name>
      		<webservice-endpoint>
      			<port-component-name>HelloService</port-component-name>
      			<endpoint-address-uri>HelloService/Hello</endpoint-address-uri>
      			<transport-guarantee>CONFIDENTIAL</transport-guarantee>
      		</webservice-endpoint>
      	</servlet>
      
      	<class-loader delegate="true" />
      	<jsp-config>
      		<property name="keepgenerated" value="true">
      			<description>Keep a copy of the generated servlet class java code.</description>
      		</property>
      	</jsp-config>
      </sun-web-app>
      

      The logging says:

      {{
      INFO: WS00018: Webservice Endpoint deployed
      HelloService listening at address at https://phosphorus.service2media.com:8181/BugTest/HelloService/Hello
      INFO: Metro monitoring rootname successfully set to: amx:pp=/mon/server-mon[server],type=WSEndpoint,name=/BugTest-HelloService-Hello
      INFO: WEB0671: Loading application [BugTest] at [/BugTest]
      INFO: BugTest was successfully deployed in 195 milliseconds.
      }}

      So it claims to listen at https://phosphorus.service2media.com:8181/BugTest/HelloService/Hello when in reality it listens at https://phosphorus.service2media.com:8181/BugTest/HelloService. So the endpoint-address-uri seems to have no effect here.

      I have attached a sample project for this bug.

        Activity

        Show
        Lukas Jungmann added a comment - - edited http://java.net/projects/glassfish/sources/svn/revision/59184 http://java.net/projects/glassfish/sources/svn/revision/59188

          People

          • Assignee:
            Lukas Jungmann
            Reporter:
            hmeerlo
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: