users@grizzly.java.net

Getting cometd Bayeux sample to work

From: Bjarki Bjorgulfsson <bb72_at_kent.ac.uk>
Date: Sun, 22 Jun 2008 18:01:07 +0100

I’m having trouble getting the
http://download.java.net/maven/2/com/sun/grizzly/samples/grizzly-cometd-chat
/ to work. I have tried on 2 different Windows machine but nothing happens
at all in either case. Here is what I did:

 

1. Downloaded the chat example war from the above url,
grizzly-cometd-chat-1.8.0-rc1.war
2. Downloaded
http://download.java.net/maven/2/com/sun/grizzly/grizzly-cometd-webserver/1.
8.0/grizzly-cometd-webserver-1.8.0.jar
3. Ran java -jar grizzly-cometd-webserver-1.8.0.jar -p 8080 -a
grizzly-cometd-chat-1.8.0-rc1.war
4. Opened http://localhost:8080/

 

Both machines are have jdk1.6.0_06 and jre1.6.0_06 with Windows XP
professional SP2. Is there anything special I’m doing wrong? I tried IE 7.0,
Firefox 3.0, Safari and Opera. I get the Cometd Chat form in all cases and
I’m able to enter my username and some text but nothing is displayed in the
chat div. Is there a tutorial on how to debug the cometd Bayeux grizzly
server?

 

- Bjarki B