2011-05-23 28 views
0

我刚刚从Github下载了Atmosphere Samples。当我跑码头时:在聊天示例中运行目标,我遇到了一些问题。如何运行Atmosphere Sample?

我可以通过浏览器访问页面(http:// localhost:9090),但是当我开始聊天时,没有任何附加内容,因为服务器为每个AJAX请求返回一个404错误页面。

我在做什么错?

+0

你能告诉我你正在使用哪种气氛版本吗? – 2011-06-21 15:32:28

回答

0

好吧,最近我发生了类似的事情。除了没有发送消息,还有所有JS文件的404错误。那是当我意识到在http://localhost:9090/斜杠是重要的:)

2

我有同样的问题,并能够通过不通过行家,但与JETT亚军运行码头来解决它。您必须下载2罐:

wget http://repo1.maven.org/maven2/org/eclipse/jetty/jetty-websocket/8.1.4.v20120524/jetty-websocket-8.1.4.v20120524.jar 
wget http://repo1.maven.org/maven2/org/mortbay/jetty/jetty-runner/8.1.4.v20120524/jetty-runner-8.1.4.v20120524.jar 

构建与战争:

mvn package 

,比你可以运行它:

java -jar jetty-runner-8.1.4.v20120524.jar --jar jetty-websocket-8.1.4.v20120524.jar --path /atmosphere target/atmosphere-chat.war 

现在你可以打开你的浏览器:

http://localhost:8080/atmosphere/