Reputation: 27994
I'm trying to get the chat sample running from atmosphere-samples
But I'm getting the following error in the console
GET http://localhost:8080/javascript/atmosphere.js 404 (Not Found)
When I look at the source for samples/chat
I can't see atmosphere.js in the code. I'm guessing this file should be coming from one of the atmosphere jars? I was expecting to see it in src/main/webapp/javascript
but it's not.
I've done the following steps
git checkout https://github.com/Atmosphere/atmosphere-samples.git
)git checkout atmosphere-samples-project-2.0.5
)samples/chat
as an "existing maven project" in eclipse (using m2e plugin)http://localhost:8080/<context>
in a browser.Note, I see the webapp running, it's just causing javascript errors because of the 404.
Upvotes: 1
Views: 955
Reputation: 27994
It seems like there's some magic going on in the maven build that's not being replicated in eclipse. I didn't take the time to track down the exact cause but I fixed my problem by copying an appropriate version of atmosphere.js
from
to src/main/webapp/javascript
.
Upvotes: 3