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>