2012-07-09 69 views
1

Got Atmosphere 1.0.0.beta1安裝並使用Jetty運行。直向前進容易和有效。大氣,JBoss AS 7.1.1,Chrome問題

但是,當運行在JBoss AS 7.1.1上時,它不喜歡websocket傳輸和降級。我在Chrome的控制檯中看到以下日誌(下圖)

當運行在Jetty上時,它與web套接字傳輸連接,一切正常。由於某些原因,降級不適用於Chrome。在Firefox和IE9中都可以使用jetty和jboss。

因此如何獲得使用JBoss的websocket傳輸。是的,我用Google搜索了一個小時,並嘗試了各種各樣的東西,但都無濟於事。

謝謝。

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 

回答

1

JBoss AS 7目前沒有websockets實現。有一個使用JBossWeb的implementation,但尚未提交到上游。

相關問題