users@glassfish.java.net

Re: Comet servlet can not work through a mod_jk connection

From: Xu Erdong <xuerdong_at_gmail.com>
Date: Thu, 22 May 2008 10:35:49 +0800

Hi,

  Thanks Jeanfrancois Arcand!
  I use mod_proxy instead of mod_jk, followed the instruction
http://www.manorrock.com/documents/glassfish/proxy.html, and this time the
exception "java.lang.IllegalStateException: Grizzly Comet hasn't been
registered" is gone, but new problem occured.
  The problem is the message window doesn't display anything, no matter how
many words I inputed in below window, just like the picture I captured in
attachment. And after timeout, all the words I inputed appeared at once.

2008/5/21 Jeanfrancois Arcand <Jeanfrancois.Arcand_at_sun.com>:

> Hi,
>
> mod_jk fronting GlassFish bypass the Grizzly Connector so Comet application
> cannot work. You need to use mod_proxy instead.
>
> Thanks
>
> -- Jeanfrancois
>
> Xu Erdong wrote:
>
>> Hello,
>> I have configured my glassfish with Apache httpd following the
>> instruction by Jean-Francois Arcand's Blog
>> http://weblogs.java.net/blog/jfarcand/archive/2006/03/running_glassfi_1.html,
>> and after that I can access my servlet through Apache, but comet servlet can
>> not work, it throw exception :
>> java.lang.IllegalStateException
>> : Grizzly Comet hasn't been registered
>> at
>> com.sun.enterprise.web.connector.grizzly.comet.CometContext.addCometHandler(CometContext.java:220)
>> at
>> com.sun.enterprise.web.connector.grizzly.comet.CometContext.addCometHandler(CometContext.java:266)
>> at comet.CometServlet.doPost(CometServlet.java:104)
>> at comet.CometServlet.doGet(CometServlet.java:60)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:718)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
>> ......
>> I enabled the AJP connector by setting the jvm option
>> -Dcom.sun.enterprise.web.connector.enableJK=8009, and I have enabled comet
>> support for HTTP listener by adding <property name="cometSupport"
>> value="true"/> in domain.xml, but nowhere to add Comet support to AJP
>> connector.
>> My question is: how can I configure the comet support for AJP connector?
>> Because my web application will use JK for load balancing.
>> By the way, the comet servlet works fine through HTTP connector.
>> --
>> Best regards,
>> Xu mailto:xuerdong_at_gmail.com <mailto:xuerdong_at_gmail.com>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>


-- 
Best regards,
Xu mailto:xuerdong_at_gmail.com




message1.JPG
(image/jpeg attachment: message1.JPG)