grizzly comet hasn't been registered

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

grizzly comet hasn't been registered

nagib.cs
Hello,
i tried to clone the chat example in netbeans 6.0, and here is what i've done:
1- downloaded grizzly-comet-webserver-1.7.1.jar.
2- Added the downloaded jar to libraries in netbeans 6.0.
3- Added the <property name="cometSupport" value="true"> in domain.xml, i am using Glassfish-v2 ur1.
4- copied the code exactly as it is in the chat example also i did this with the web.xml.
concerning the context path which is registered to the cometEngine is the same used to call the servlet.
i still get "java.lang.IllegalStateException"

--
Mahmoud Mohamed Nagib
Student at Computer and Systems Engineering Department,
Faculty of Engineering,
Alexandria University
Reply | Threaded
Open this post in threaded view
|

RE: grizzly comet hasn't been registered

John C. Turnbull

I think the problem comes from the fact that you are mixing Grizzly 1.7.1 and GlassFish v2 UR1 (which includes its own earlier version of Grizzly).  Basically, you don’t need to link in any additional Grizzly JARs – just use the Grizzly that’s already part of GF.  If you wish to use features in the most recent versions of Grizzly then you cannot use them with GF (yet) and you’ll need to use the Grizzly Web Server instead.

 

I managed to get the Comet chat demo working by just using GlassFish v2 UR1 and no external Grizzly.

 

-JCT

 

From: Mahmoud Nagib [mailto:[hidden email]]
Sent: Saturday, 2 February 2008 18:11
To: [hidden email]
Subject: grizzly comet hasn't been registered

 

Hello,
i tried to clone the chat example in netbeans 6.0, and here is what i've done:
1- downloaded grizzly-comet-webserver-1.7.1.jar.
2- Added the downloaded jar to libraries in netbeans 6.0.
3- Added the <property name="cometSupport" value="true"> in domain.xml, i am using Glassfish-v2 ur1.
4- copied the code exactly as it is in the chat example also i did this with the web.xml.
concerning the context path which is registered to the cometEngine is the same used to call the servlet.
i still get "java.lang.IllegalStateException"

--
Mahmoud Mohamed Nagib
Student at Computer and Systems Engineering Department,
Faculty of Engineering,
Alexandria University