使用服务器推送的Vaadin Web应用程序无法在OpenShift上运行

时间:2014-03-01 17:56:57

标签: asynchronous tomcat7 openshift server-push vaadin7

我使用服务器推送创建了一个简单的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上配置某些异步支持?

1 个答案:

答案 0 :(得分:0)

我的申请遇到了同样的问题。使用端口8000似乎现在可以工作,直到它们支持默认代理上的websockets。

更多信息: Vaadin cannot establish Websocket connection on OpenShift