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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to