websockets wss:// protocol gives error...

2012-06-16 Thread Ravi


I am able to connect from browser to tomcat using non secure WS connection:
ws://127.0.0.1:8080/Myserver

If I switch the connection string to secure protocol
ws://127.0.0.1:8080/Myserver

I get following error. Can somebody confirm if this has been 
implemented/known to work? I am using tomcat 7.0.27


thanks



java.lang.IllegalArgumentException: Invalid character (CR or LF) found 
in method name
	at 
org.apache.coyote.http11.InternalInputBuffer.parseRequestLine(InternalInputBuffer.java:128)
	at 
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:926)
	at 
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
	at 
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)
	at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

at java.lang.Thread.run(Thread.java:662)

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: websockets wss:// protocol gives error...

2012-06-16 Thread Mark Thomas
On 16/06/2012 20:28, Ravi wrote:
 
 I am able to connect from browser to tomcat using non secure WS connection:
 ws://127.0.0.1:8080/Myserver
 
 If I switch the connection string to secure protocol
 ws://127.0.0.1:8080/Myserver

That is neither the correct protocol nor the correct port.

 I get following error. Can somebody confirm if this has been
 implemented/known to work? I am using tomcat 7.0.27

Yes, it has been implemented.

Yes, it works.

The current examples need a few small tweaks to get them working with
the secure protocol. I'll do that shortly.

Mark

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: websockets wss:// protocol gives error...

2012-06-16 Thread Ravi


Thank you Mark for pointing out the mistake. Following url works

wss://127.0.0.1:8443/Myserver



On 6/16/2012 2:32 PM, Mark Thomas wrote:

On 16/06/2012 20:28, Ravi wrote:


I am able to connect from browser to tomcat using non secure WS connection:
ws://127.0.0.1:8080/Myserver

If I switch the connection string to secure protocol
ws://127.0.0.1:8080/Myserver


That is neither the correct protocol nor the correct port.


I get following error. Can somebody confirm if this has been
implemented/known to work? I am using tomcat 7.0.27


Yes, it has been implemented.

Yes, it works.

The current examples need a few small tweaks to get them working with
the secure protocol. I'll do that shortly.

Mark

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org