Tried many solutions from stackoverflow as well but nothing work yet.
CodePudding user response:
You are missing web application context path in the URL.
ws://localhost:8080/[CONTEXT_NAME]/websocket
Sometimes context name and project name are the same.
EXAMPLE:
ws://localhost:8080/web_socket_struts2_test/websocket