安装Atmosphere 1.0.0.beta1并与Jetty一起运行。直截了当,简单有效。
然而,当运行在JBoss AS 7.1.1上时,它不喜欢websocket传输和降级。我在Chrome的控制台上看到了以下日志(如下所示)
当在Jetty上运行时,它与web套接字传输连接,一切正常。由于某些原因,Chrome不支持降级。在火狐和IE9中,jetty和jboss都能很好地工作。
那么,如何让websocket传输与JBoss一起工作呢?是的,我在谷歌上搜索了一个小时,尝试了各种东西,但都没有效果。
谢谢。
Unexpected response code: 501 null:1
Websocket closed, reason: Connection was closed abnormally (that is, with no close frame being sent). jquery.atmosphere.js:1867
Websocket closed, wasClean: false jquery.atmosphere.js:1867
Websocket failed. Downgrading to Comet and resending jquery.atmosphere.js:1867
Websocket failed. Downgrading to Comet and resending jquery.atmosphere.js:1867
TransportFailure, fall back is sse ecm-websocket.js:34
Invoking executeSSE jquery.atmosphere.js:1867
Using URL: http://srdevecm1:8080/ecm/ecm-ws/main?X-Atmosphere-tracking-id=3b38258e-89a3-33cc-60d9-684956499835&X-Atmosphere-Framework=1.0&X-Atmosphere-Transport=sse&X-Cache-Date=0&Content-Type=application/json jquery.atmosphere.js:1867
Uncaught Error: SECURITY_ERR: DOM Exception 18发布于 2012-07-10 01:16:08
websockets 7目前没有websockets实现。有一个使用JBossWeb的implementation,但到目前为止还没有提交到上游。
https://stackoverflow.com/questions/11398380
复制相似问题