我将Tomcat 7.0.43与websocket应用程序一起使用。我的应用程序在Tomcat 7.0.42中运行良好,但是当尝试在websockets上访问服务器时,我得到的输出为43:
Sep 16, 2013 3:08:34 AM org.apache.coyote.http11.AbstractHttp11Processor process INFO: Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.
我的浏览器控制台显示以下内容:
WebSocket connection to 'ws://www.testapp.com/socket/notification/848df2e62fcf93e1b3?X-Atmosphere-tracking-i…Date=0&Content-Type=application/json;%20charset=UTF-8&X-atmo-protocol=true' failed: Unrecognized frame opcode: 5
这是该请求的访问日志:
"GET /socket/notification/848df2e62fcf93e1b3?X-Atmosphere-tracking-id=0&X-Atmosphere-Framework=2.0.2-javascript&X-Atmosphere-Transport=websocket&X-Atmosphere-TrackMessageSize=true&X-Cache-Date=0&Content-Type=application/json;%20charset=UTF-8&X-atmo-protocol=true HTTP/1.1"
Tomcat 7.0.43中发生了什么变化? 我必须改变什么?
如果您有此侦听器:
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on"/>
在server.xml上,将其删除并尝试。如果您使用的是APR连接器,则不能使用密钥库