Abdul Ahad
Abdul Ahad

Reputation: 188

Tomcat 7 Websocket handshake: Unexpected response code: 404

I am following this tutorial to establish a WebSocket connection between java server and javascript client but I am facing below-mentioned error on the browser end

WebSocket connection to 'ws://localhost:8080/ws/echo' failed: Error during WebSocket handshake: Unexpected response code: 404

I am using tomcat 7.0.42 for Liferay and javax.websocket 1.1 jar

What I have tried :

PS: Some have suggested using tomcat 7.0.47 or above but I cant change the server for existing application this has to be done on tomcat 7.0.42

Upvotes: 1

Views: 1040

Answers (1)

Abdul Ahad
Abdul Ahad

Reputation: 188

As per my understanding websocket is not supported on tomcat 7.0.42

Upvotes: 0

Related Questions