2016-02-16 15:23:49
0
You can find the all the code below,
started the tomcat server and It's perfectly working.
But While making websocket request I'm getting 404 error.
This is the error in chrome console :
WebSocket connection to 'ws://localhost:8088/websocket-example/websocket' failed: Error during WebSocket handshake: Unexpected response code: 404
and there is no server log.
Java WebSocket Code : WebSocketTest.java
package com.websockets;
import java.io.IOException;
import javax.websocket.OnClose;
import javax.websocket.OnMessage;
import javax.websocket.OnOpen;
import javax.websocket.Session;
import javax.websocket.server.ServerEndpoint;
@ServerEndpoint("/websocket")
public class WebSocketTest {
@OnMessage
public void onMessage(String mess