Hello everybody, I am using an embedded Tomcat version 8.0.0-RC1 and trying to setup the WebSocket connection to it. >From my browser application using SockJS and Spring 4 MVC on the server I am initiating a websocket session. When establishing connection I see in the server logs the following exception:
2013-08-15 00:48:07,561 303759 ERROR [http-nio-8080-exec-4] org.apache.coyote.http11.Http11NioProtocol - Error reading request, ignored java.lang.IllegalStateException: The preInit() method must be called to configure the WebSocket HttpUpgradeHandler before the container calls init(). Usually, this means the Servlet that created the WsHttpUpgradeHandler instance should also call preInit() at org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.init( WsHttpUpgradeHandler.java:88) ~[tomcat-embed-core-8.0.0-RC1.jar:8.0.0-RC1] at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process( AbstractProtocol.java:658) ~[tomcat-embed-core-8.0.0-RC1.jar:8.0.0-RC1] at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process( Http11NioProtocol.java:223) [tomcat-embed-core-8.0.0-RC1.jar:8.0.0-RC1] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun( NioEndpoint.java:1592) [tomcat-embed-core-8.0.0-RC1.jar:8.0.0-RC1] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run( NioEndpoint.java:1550) [tomcat-embed-core-8.0.0-RC1.jar:8.0.0-RC1] at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1145) [na:1.7.0_17] at java.util.concurrent.ThreadPoolExecutor$Worker.run( ThreadPoolExecutor.java:615) [na:1.7.0_17] at java.lang.Thread.run(Thread.java:722) [na:1.7.0_17] It looks like I am missing some bit of the Tomcat configuration (to call preInit()?). Has anybody seen the issue, what could be the reason? Thank you! Best Regards, Sergey