我正在尝试从大气样本中运行聊天样本
但我在控制台中收到以下错误
GET http://localhost:8080/javascript/atmosphere.js 404 (Not Found)
当我查看源代码时,samples/chat
我在代码中看不到大气.js。我猜这个文件应该来自一个大气罐?我期待看到它,src/main/webapp/javascript
但事实并非如此。
我已经完成了以下步骤
git checkout https://github.com/Atmosphere/atmosphere-samples.git
从 git ( )结帐- 切换到最新的稳定分支 (
git checkout atmosphere-samples-project-2.0.5
) - 在 Eclipse 中导入
samples/chat
为“现有的 maven 项目”(使用 m2e 插件) - 设置码头运行目标(RunJettyRun)
- 在浏览器中访问
http://localhost:8080/<context>
。
注意,我看到 webapp 正在运行,它只是因为 404 导致了 javascript 错误。