我使用服务器推送创建了一个简单的Vaadin Web应用程序,在本地运行得很好:https://github.com/breun/lastfm-friend-ranker
我尝试使用Tomcat 7在OpenShift上运行它,但是虽然界面出现在http://lastfmfriendranker-breunnl.rhcloud.com上,但应用程序实际上并不起作用,我在日志中看到以下内容:
WARNING: Failed using comet support: org.atmosphere.container.Tomcat7AsyncSupportWithWebSocket, error: Tomcat failed to detect this is a Comet application because context.xml is missing or the Http11NioProtocol Connector is not enabled.
If that's not the case, you can also remove META-INF/context.xml and WEB-INF/lib/atmosphere-compat-tomcat.jar Is the Nio or Apr Connector enabled?
Mar 01, 2014 11:58:42 AM org.atmosphere.cpr.AtmosphereFramework doCometSupport
WARNING: Using org.atmosphere.container.Tomcat7BIOSupportWithWebSocket
Mar 01, 2014 11:58:42 AM org.atmosphere.client.TrackMessageSizeInterceptor inspect
SEVERE: IllegalStateException. AsyncWriter is null. WebSocket and org.atmosphere.client.TrackMessageSizeInterceptor won't work.
我是否需要在OpenShift上配置某些异步支持?
答案 0 :(得分:0)
我的申请遇到了同样的问题。使用端口8000似乎现在可以工作,直到它们支持默认代理上的websockets。
更多信息: Vaadin cannot establish Websocket connection on OpenShift