glassfish
  1. glassfish
  2. GLASSFISH-3745

<BT6613125>unable to enable a http listener which is in disabled state

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 9.1peur1
    • Fix Version/s: 9.1peur1_dev
    • Component/s: web_container
    • Labels:
      None
    • Environment:

      Operating System: Linux
      Platform: All

    • Issuezilla Id:
      3,745

      Description

      *********READ-ONLY Data from Bugtraq*********************
      Inside SWAN :http://swsblweb1.central.sun.com:8080/CrPrint?id=6613125
      Outside SWAN :http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6613125
      **********READ-ONLY Data from Bugtraq Ends********
      *********READ-ONLY Data from Bugtraq*********************
      Description 1. create a http listener with --enabled=false and then enable the listener, which immediatley throws Bindexception in the server.log. The listener doesn't serve any requests after enabled. Even when you delete the listener the ports are ocuupied until the instance is restarted. Which is unacceptable.
      asadmin create-http-listener --enabled=false --listeneraddress 0.0.0.0 --listenerport 48408 --defaultvs server --servername easqesf4 --target ins1 httpls1
      Command create-http-listener executed successfully.

      bash-3.00# netstat -a | grep 48408
      .48408 *. 0 0 49152 0 LISTEN

      asadmin set ins1.http-service.http-listener.httpls1.enabled=true
      ins1.http-service.http-listener.httpls1.enabled = true

      bash-3.00# netstat -a | grep 48408
      .48408 *. 0 0 49152 0 LISTEN

      /usr/sankar/ws/9.1/appserverEEB58g/jdk/bin/java -jar /usr/sankar/ws/9.1/appserver-sqe/lib/tonga-util/hreq.jar -host easqesf4 -port 48408 -ttype Get -req helloworld/HelloWorld
      ^Cbash-3.00#

      asadmin delete-http-listener --target ins1 httpls1
      Command delete-http-listener executed successfully.

      bash-3.00# netstat -a | grep 48408
      easqesf4.49721 easqesf4.48408 49152 0 49152 0 FIN_WAIT_2
      easqesf4.48408 easqesf4.49721 49152 0 49152 0 CLOSE_WAIT
      .48408 *. 0 0 49152 0 LISTEN

      bash-3.00# netstat -a | grep 48408
      easqesf4.49721 easqesf4.48408 49152 0 49152 0 FIN_WAIT_2
      easqesf4.48408 easqesf4.49721 49152 0 49152 0 CLOSE_WAIT
      .48408 *. 0 0 49152 0 LISTEN

      bash-3.00# asadmin stop-instance ins1
      Command stop-instance executed successfully.
      bash-3.00#
      bash-3.00# netstat -a | grep 48408

      **********READ-ONLY Data from Bugtraq Ends********
      *********READ-ONLY Data from Bugtraq*********************
      Evaluation Good catch. Fix is simple...
      **********READ-ONLY Data from Bugtraq Ends********
      *********READ-ONLY Data from Bugtraq*********************
      Evaluation checking in PEWebContainer.java;/cvs/glassfish/appserv-core/src/java/com/sun/enterprise/web/PEWebContainer.java,v
      <-- PEWebContainer.java
      new revision: 1.114.4.1; previous revision: 1.114
      done

      **********READ-ONLY Data from Bugtraq Ends********
      *********READ-ONLY Data from Bugtraq*********************
      Justification Priority changed from [] to [3-Medium]unless the instance is restarted we cannot get the listener to XXXXXX 2007-10-04 18:28:59 GMT

      **********READ-ONLY Data from Bugtraq Ends********

        Activity

        Hide
        jluehe added a comment -

        Fixed by jfarcand in 9.1ur1 b04.

        Show
        jluehe added a comment - Fixed by jfarcand in 9.1ur1 b04.

          People

          • Assignee:
            jluehe
            Reporter:
            gfbugbridge
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: