wiki@glassfish.java.net

RE: enableJK stops working until glassfish restart

From: Armien Arend <Armien.Arend_at_bytes.co.za>
Date: Mon, 17 Oct 2011 16:30:07 +0000

Hi Amy

Thanks for your reply, but my problem is that it works fine for quite a while, and then 1 day it stops working correctly. The servlet executes, but the variables are not available to the servlet. The specific variable is a cookie variable. After the restart of glassfish on the server where the servlet runs fixes the problem for a while again.

Thanks
Armien

From: Amy Roh [mailto:amy.roh_at_oracle.com]
Sent: 17 October 2011 06:22 PM
To: wiki_at_glassfish.java.net
Cc: Armien Arend
Subject: Re: enableJK stops working until glassfish restart

Armien,

Restarting GlassFish is required after setting the jvm option in order for mod_jk to work in v2.

hth,
Amy

On 10/17/11 12:41 AM, Armien Arend wrote:
Hello

We run IIS and use mod_jk to redirect calls to glassfish v2. This works quite well most of the time, but have found at times that even though glassfish is running, the querystring/form/cookie variables are not passed into the servlet. Once glassfish is restarted all works well again. Another thing, the redirect is to another server running glassfish with the following jvm option:
-Dcom.sun.enterprise.web.connector.enableJK=8009

I tried a few searches but did not find the specific problem that we have. Is there anyone that could help me with my problem?

Thanks
Armien
Tel: (+27)(21) 680 6813