[jboss-jira] [JBoss JIRA] (WFLY-3439) Websockets not working

Veli Cris (JIRA) issues at jboss.org
Thu Jun 5 11:08:16 EDT 2014


    [ https://issues.jboss.org/browse/WFLY-3439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12973801#comment-12973801 ] 

Veli Cris commented on WFLY-3439:
---------------------------------

Not working deployed as .war file. All messages in Console seems to be OK, no errors but I cannot connect to WebSocket.
In 8.0.0 Final is working without any issue.


import javax.websocket.OnMessage;
import javax.websocket.Session;
import javax.websocket.server.ServerEndpoint;

@ServerEndpoint("/shout")
public class ShoutServerEndpoint {

    @OnMessage
    public void shout(String text, Session client) {
        client.getAsyncRemote().sendText(text.toUpperCase());
    }
}

> Websockets not working
> ----------------------
>
>                 Key: WFLY-3439
>                 URL: https://issues.jboss.org/browse/WFLY-3439
>             Project: WildFly
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Web Sockets
>    Affects Versions: 8.1.0.Final
>            Reporter: Veli Cris
>            Assignee: Stuart Douglas
>
> Hi, 
> I deployed a .war file containing a single endpoint definition (Websocket). I can see following lines in console but nothing happens when trying to open connection from a websocket client. Same .war deployed in WildFly 8.0.0 is working. Please investigate!
> The configuration is standalone.
> [org.wildfly.extension.undertow] (MSC service thread 1-2) JBAS017519: Undertow HTTP listener default listening on /0.0.0.0:8080
> [io.undertow.websockets.jsr] (MSC service thread 1-4) UT026003: Adding annotated server endpoint ...
> [org.wildfly.extension.undertow] (MSC service thread 1-4) JBAS017534: Registered web context: ...
> [org.jboss.as.server] (ServerService Thread Pool -- 28) JBAS018559: Deployed "web.war" (runtime-name : "web.war")



--
This message was sent by Atlassian JIRA
(v6.2.3#6260)


More information about the jboss-jira mailing list