On 23/04/2015 05:51, Thusitha Thilina Dayaratne wrote:
> Hi,
> I've embedded tomcat 8.0.20 and using that. I build the tomcat websocket
> example and when I'm trying to run it in my server for all 4 examples
> (Echo, chat, etc..)
> I'm getting
>> Info: WebSocket connection closed, Code: 1006
> In the console it prints
> WebSocket connection to 'ws://
>>' failed: Error
>> during WebSocket handshake: Unexpected response code: 302
> This same war file is running perfectly on Tomcat distribution.
> Can someone tell me what could be the reason for this?

It looks like you haven't deployed the WebSocket examples correctly. My
guess is you are seeing the 302 redirect to
/examples/websocket/echoProgrammatic/ you'd get if this was being
handled as a static resource.


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

Reply via email to