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

          No work has yet been logged on this issue.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: