【发布时间】:2014-12-03 14:43:12
【问题描述】:
我已经配置了一个 webapp 以在 tomcat7 中运行。我使用 scalatra atmoshphere 通过 websocket 连接到它。当我的客户端和服务器都在同一台机器上时,一切正常。但是,一旦我尝试在远程位置运行服务器,我就无法使 websocket 连接正常工作。在我的 Firebug 日志记录中,我看到以下消息。但是我在tomcat的访问日志中看不到任何内容。所以不知道服务器端的问题是什么以及如何纠正。
Using URL: ws://myhost:8080/myapp/path/to/atmoshphere-client?X-Atmosphere-tracking-id=0&X-Atmosphere-Framework=1.1.0&X-Atmosphere-Transport=websocket&X-Cache-Date=0&Content-Type=application/json&X-atmo-protocol=true
"NetworkError: 403 Forbidden - http://myhost:8080/myapp/path/to/atmoshphere-client?X-Atmosphere-tracking-id=0&X-Atmosphere-Framework=1.1.0&X-Atmosphere-Transport=websocket&X-Cache-Date=0&Content-Type=application/json&X-atmo-protocol=true
【问题讨论】:
标签: tomcat7 atmosphere scalatra