找不到合适的默认RequestUpgradeStrategy [英] No suitable default RequestUpgradeStrategy found

查看:1028
本文介绍了找不到合适的默认RequestUpgradeStrategy的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Spring上运行Websocket(不是STOMP,而是常规的websocket),如图所示此处。但是,在完成本教程之后,我得到以下异常:

I'm trying to run Websocket on Spring (Not STOMP but regular websocket) as seen here. However, after following the tutorial, I get the following exception:

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

I got this on several versions of Tomcat, the newest (which I assume really should have JSR 356 support) was a Tomcat 7.0.50

我可能做错了什么?

推荐答案

我只需更新到Tomcat 7.0.52即可解决此问题。

I was able to resolve this by simply updating to Tomcat 7.0.52.

这篇关于找不到合适的默认RequestUpgradeStrategy的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆