<br>So what are you running on port 8080? tomcat or the websocket example app?<div><br></div><div>I am assuming that you are running the same app: <a href="https://github.com/netty/netty/tree/master/src/main/java/org/jboss/netty/example/http/websocketx/server" target="_blank" style="color: rgb(51, 102, 51); font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">https://github.com/netty/netty/tree/master/src/main/java/org/jboss/netty/example/http/websocketx/server</a>.</div>
<div><br></div><div>If this is the case, you need to append websocket to your url as previously mentioned:</div><div><span style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); "><br>
</span></div><div><span style="background-color: rgb(255, 255, 255); ">      </span><span style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">socket = new WebSocket(&quot;ws://localhost:</span><span style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">8080/<b style="background-color: rgb(255, 255, 0); ">websocket</b>&quot;);</span><br>
<div><br></div><div>If you just have <span style="font-size: 13px; font-family: arial, sans-serif; background-color: rgb(255, 255, 255); ">ws://localhost:</span><span style="font-size: 13px; font-family: arial, sans-serif; background-color: rgb(255, 255, 255); ">8080/, the code will assume that you are requesting an HTML demo page and hence get the HTTP Version error.  </span></div>
<div><br></div><div>Vibul</div><div><br></div><div><br><div class="gmail_quote">On 31 October 2011 23:04, Tamirk <span dir="ltr">&lt;<a href="mailto:tamirklein@hotmail.com">tamirklein@hotmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<br>
Unfortunately this doesn&#39;t shade light on the issue :(<br>
since I I created a static html page and for sure I reach the correct place<br>
on the server side (As you can see from the log print) I don&#39;t need to use<br>
the /websocket when initing the socket var on the Web page.<br>
<br>
I invested over 2 days trying to get the Web page work with the Netty<br>
SecureChat server example but it simply refuse to work.<br>
<br>
I&#39;m sure it should be possible and I&#39;m just missing something in the way I<br>
set this up.<br>
So the question is what.<br>
<br>
If you can think of ant thing else or you can provide some code which works<br>
it will be great.<br>
<br>
Cheers,<br>
<br>
Tamir<br>
<br>
Note: Currently my web page are working on top of Apache and Tomcat.<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://netty-forums-and-mailing-lists.685743.n2.nabble.com/WSS-with-Draft10-Support-tp6945374p6947937.html" target="_blank">http://netty-forums-and-mailing-lists.685743.n2.nabble.com/WSS-with-Draft10-Support-tp6945374p6947937.html</a><br>

</font><div><div></div><div class="h5">Sent from the Netty User Group mailing list archive at Nabble.com.<br>
_______________________________________________<br>
netty-users mailing list<br>
<a href="mailto:netty-users@lists.jboss.org">netty-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/netty-users" target="_blank">https://lists.jboss.org/mailman/listinfo/netty-users</a><br>
</div></div></blockquote></div><br></div></div>