找不到合适的默认RequestUpgradeStrategy


问题内容

我想对弹簧(未STOMP但普通的WebSocket)运行的WebSocket所看到这里。但是,在学习了本教程之后,我得到以下异常:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.socket.server.support.DefaultHandshakeHandler#0': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.web.socket.server.support.DefaultHandshakeHandler]: Constructor threw exception; nested exception is java.lang.IllegalStateException: No suitable default RequestUpgradeStrategy found

我在多个版本的Tomcat上获得了该版本,最新版本(我认为确实应该有JSR 356支持)是Tomcat 7.0.50

我可能做错了什么?


问题答案:

我能够通过简单地更新到Tomcat 7.0.52来解决此问题。