Hi <snip> >I've embedded tomcat 8.0.20 and using that. I build the tomcat websocket example and when I'm trying to run it in my server for all 4 examples (Echo, chat, etc..) >I'm getting
> Info: WebSocket connection closed, Code: 1006 >In the console it prints WebSocket connection to 'ws:// > 10.100.7.26:9763/examples/websocket/echoProgrammatic' failed: Error > during WebSocket handshake: Unexpected response code: 302 >This same war file is running perfectly on Tomcat distribution. >Can someone tell me what could be the reason for this? </snip> I'm able to connect to "ws://echo.websocket.org" But not to the "ws:// localhost:9763/examples/websocket/echoProgrammatic <http://10.100.7.26:9763/examples/websocket/echoProgrammatic>" (My server is running 9763) 2015-04-23 10:21 GMT+05:30 Thusitha Thilina Dayaratne < thusithathil...@gmail.com>: > Hi, > > I've embedded tomcat 8.0.20 and using that. I build the tomcat websocket > example and when I'm trying to run it in my server for all 4 examples > (Echo, chat, etc..) > I'm getting > >> Info: WebSocket connection closed, Code: 1006 > > > In the console it prints > > WebSocket connection to 'ws:// >> 10.100.7.26:9763/examples/websocket/echoProgrammatic' failed: Error >> during WebSocket handshake: Unexpected response code: 302 > > > This same war file is running perfectly on Tomcat distribution. > > Can someone tell me what could be the reason for this? > > In the pom, my dependency is as follows > <dependency> > <groupId>org.apache.tomcat</groupId> > <artifactId>tomcat-websocket</artifactId> > <version>8.0.20</version> > </dependency> > > > Thanks > Best Regards > -- > > --