Atmosphere 1.0.0.beta1设置并使用Jetty运行。直接前进简单有效。
然而,当在JBoss AS 7.1.1上运行时,它不喜欢websocket传输和降级。我在Chrome的控制台(下方)中看到以下日志
当对Jetty运行时,它与Web套接字传输连接,一切都很顺利。出于某种原因,降级不适用于Chrome。在Firefox和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