users@glassfish.java.net

Grizzly-Comet on Tomcat

From: <forums_at_java.net>
Date: Thu, 10 Nov 2011 04:47:39 -0600 (CST)

Hi, I have downloaded  the Grizzly-Comet counter examples , got here 
http://download.java.net/maven/glassfish/com/sun/grizzly/samples/grizzly-comet-counter/1.9.7/
.

Ran successfully on Glassfish 3 ,just added comet-1.6.1.jar .

Now I'd like to run the same war on tomcat 6 and here are the steps
I followed :

1) activated the NIO connector  : push in server.xml     : <Connector
port="8081" protocol="org.apache.coyote.http11.Http11NioProtocol"
connectionTimeout="60000" redirectPort="8443" />

2) resolved all Grizzly-Comet dependencies as reported in
http://grizzly.java.net/nonav/docs/docbkx1.9/html/ch01s04.html#portunif-dep_19x
,

in details I have putted this jars 

grizzly-comet-1.9.36.jar
grizzly-framework-1.9.36.jar
grizzly-http-1.9.36.jar
grizzly-lzma-1.9.36.jar
grizzly-portunif-1.9.36.jar
grizzly-rcm-1.9.36.jar
grizzly-utils-1.9.36.jar

in tomcat/lib

3) deployed the counter jar with in just only the LongPollingServlet and
html-javascript content

result : 

GRAVE: Servlet.service() for servlet [LongPollingServlet] in context with
path [/CometCounter] threw exception
java.lang.IllegalStateException: Make sure you have enabled Comet or make
sure the Thread invoking that method is the same as the Servlet.service()
Thread.

This is the same result when at the first time I runned the war on glassfish
without activating comet support from web server console.

Please help me , what other step I have to do for activating Grizzly-Comet on
tomcat ???

 


--
[Message sent by forum member 'kronos72it']
View Post: http://forums.java.net/node/862392