tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: Websocket on tomcat 7.0.50 not working
Date Tue, 18 Feb 2014 12:03:49 GMT
On 18/02/2014 11:42, J Java wrote:
> I am trying to implement a websocket on tomcat 7.0.50 using annotated
> endpoints as specified in Java Websocket API (1.0)- JSR 356. Following are
> the brief steps how I have coded it 1) Write a websocket endpoint using
> @ServerEndpoint annotation 2) implement @onOpen and @onMessage methods 3)
> open a websocket using javascript on google chrome.

I don't see anything immediately wrong.

<snip/>

> However I am getting following error and connection is closed with 1066
> error code in chrome's console:
> 
>       WebSocket connection to
> 'ws://localhost:8080/jkweb/websocket/fileuploadtracker' failed: Error
> during WebSocket handshake: Unexpected response code: 404

How have you deployed your web application?

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message