glassfish
  1. glassfish
  2. GLASSFISH-14502

WebSockets don't work in latest GlassFish

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: 3.1_b28
    • Component/s: grizzly-kernel
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: Linux

    • Issuezilla Id:
      14,502

      Description

      Following the youtube demo of websockets in glassfish
      (http://www.youtube.com/watch?v=dPPDWzzv86U), I downloaded the chat source from
      https://grizzly.dev.java.net/source/browse/grizzly/trunk/code/samples/websockets/chat/,
      built it and deployed on the latest 3.1-SNAPSHOT of GlassFish.

      But when I access localhost:8080/grizzly-websockets-chat and login as "Bhavani",
      it shows: Bhavani: has left the chat

      I also tried creating WebSocket via a simple html:

      <script>
      ws = new
      WebSocket("ws://192.168.1.100:8080/grizzly-websockets-chat/chat");
      ws.onclose = function()

      { alert("socket closed"); }

      ;
      </script>

      and I always see "socket closed"

      [Community thread
      https://glassfish.dev.java.net/servlets/BrowseList?list=dev&by=thread&from=3109513]

        Issue Links

          Activity

          Bhavanishankar created issue -
          Hide
          oleksiys added a comment -

          reassign to Justin

          Show
          oleksiys added a comment - reassign to Justin
          Hide
          Ryan Lubke added a comment -

          This was an issue with the chat application and not with websockets itself. Grizzly 1.9.22 has been pushed
          with an updated version of the application which should resolve this issue.

          Show
          Ryan Lubke added a comment - This was an issue with the chat application and not with websockets itself. Grizzly 1.9.22 has been pushed with an updated version of the application which should resolve this issue.
          kenaiadmin made changes -
          Field Original Value New Value
          issue.field.bugzillaimportkey 14502 46106
          made changes -
          Link This issue blocks GLASSFISH-13286 [ GLASSFISH-13286 ]

            People

            • Assignee:
              Justin Lee
              Reporter:
              Bhavanishankar
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: