first websocket program and am getting "WebSocket handshake: Unexpected response code: 404", error while loading the webpage on resin server

window.onload = init;
var socket = new WebSocket("ws://localhost:8080/WebsocketHome/actions"); 
socket.onmessage = onMessage; 

I have copied this code from and working fine with glassfish server but when i tried with Resin 4.0.47 got handshake error.
Tried many basic websocket programs which runs on tomcat and glassfish but not with resin server.Is there any specific configuration for Resin server?