I learn about websites and follow the instructions here: http://www.oracle.com/webfolder/technetwork/tutorials/obe/java/HomeWebsocket/WebsocketHome.html
I am using tomcat v8.0.21 to deploy my webapp, but I get the following error
My JavaScript project looks great when I visit webapp: my localhost and visit WebSocketJavaScriptProject
Although in the console window you will receive an error message: WebSocket connection to 'ws: // localhost: 8080 / WebsocketHome / actions' failed: error during WebSocket handshake: unexpected response code: 404
My code lives here: https://github.com/darkcloudi/WebSocketProject
The difference between my application and the example in Oracle is that I divided it as two projects into one service and another webapp.
I cannot understand why I get 404, because the .war service file is called WebsocketHome. Any ideas that might cause this problem? Usually 404 is not found, so he realizes that he canโt find the service, I'm sure I'm doing something stupid, but I canโt understand where the problem is
thanks
source share