Tomcat and ROOT context issue
nichele Aug 6, 2011 3:44 AMHi All,
i'm experiencing some strange behaviour using mod_cluster + tomcat 6 (apache and tomcat are on the same host)
In tomcat i have 3 contexts:
- ROOT
- webapp1
- webapp2
I'm trying to stop tomcat and to restart it simulating fail-over and fail-back.
ISSUE: very often, but not always, the ROOT context is not available (not listed at all in mod_cluster-manager). No issue with the other contexts that are always available and enabled.
With a graceful restart of apache, the ROOT context starts to work fine.
When it doesn't work, in the apache error.log i see:
[Tue Aug 02 20:52:33 2011] [debug] mod_manager.c(1653): manager_trans INFO (/)
[Tue Aug 02 20:52:33 2011] [debug] mod_manager.c(2296): manager_handler INFO (/) processing: ""
[Tue Aug 02 20:52:33 2011] [debug] mod_manager.c(2339): manager_handler INFO OK
[Tue Aug 02 20:52:33 2011] [debug] mod_manager.c(1653): manager_trans CONFIG (/)
[Tue Aug 02 20:52:33 2011] [debug] mod_manager.c(2296): manager_handler CONFIG (/) processing: "JVMRoute=DS01&Host=xx.xx.xx.xx&Port=8009&Type=ajp"
[Tue Aug 02 20:52:33 2011] [debug] mod_manager.c(2339): manager_handler CONFIG OK
[Tue Aug 02 20:52:33 2011] [debug] mod_manager.c(1653): manager_trans ENABLE-APP (/)
[Tue Aug 02 20:52:33 2011] [debug] mod_manager.c(2296): manager_handler ENABLE-APP (/) processing: "JVMRoute=DS01&Alias=localhost&Context=%2F"
[Tue Aug 02 20:52:33 2011] [debug] mod_manager.c(2339): manager_handler ENABLE-APP OK
[Tue Aug 02 20:52:33 2011] [debug] mod_manager.c(1653): manager_trans REMOVE-APP (/)
[Tue Aug 02 20:52:33 2011] [debug] mod_manager.c(2296): manager_handler REMOVE-APP (/) processing: "JVMRoute=DS01&Alias=localhost&Context=%2F"
[Tue Aug 02 20:52:33 2011] [debug] mod_manager.c(2339): manager_handler REMOVE-APP OK
To note "manager_trans REMOVE-APP (/)"
When it works there is :
[Tue Aug 02 20:56:06 2011] [debug] mod_manager.c(1653): manager_trans INFO (/)
[Tue Aug 02 20:56:06 2011] [debug] mod_manager.c(2296): manager_handler INFO (/) processing: ""
[Tue Aug 02 20:56:06 2011] [debug] mod_manager.c(2339): manager_handler INFO OK
[Tue Aug 02 20:56:06 2011] [debug] mod_manager.c(1653): manager_trans CONFIG (/)
[Tue Aug 02 20:56:06 2011] [debug] mod_manager.c(2296): manager_handler CONFIG (/) processing: "JVMRoute=DS01&Host=xx.xx.xx.xx&Port=8009&Type=ajp"
[Tue Aug 02 20:56:06 2011] [debug] mod_manager.c(2339): manager_handler CONFIG OK
[Tue Aug 02 20:56:06 2011] [debug] mod_manager.c(1653): manager_trans ENABLE-APP (/)
[Tue Aug 02 20:56:06 2011] [debug] mod_manager.c(2296): manager_handler ENABLE-APP (/) processing: "JVMRoute=DS01&Alias=localhost&Context=%2F"
[Tue Aug 02 20:56:06 2011] [debug] mod_manager.c(2339): manager_handler ENABLE-APP OK
[Tue Aug 02 20:56:06 2011] [debug] mod_manager.c(1653): manager_trans STATUS (/)
[Tue Aug 02 20:56:06 2011] [debug] mod_manager.c(2296): manager_handler STATUS (/) processing: "JVMRoute=DS01&Load=100"
Do you have ahy hits for helping me ?
Any suggestion ?
Thanks in advance
ste
Message was edited by: Stefano Nichele UPDATE: with Rado's help, I built a new version of 1.1.2 final jar with the fix for this issue (that was already in jira https://issues.jboss.org/browse/MODCLUSTER-220). Changed code: http://source.jboss.org/browse/mod_cluster/trunk/src/main/java/org/jboss/modcluster/mcmp/impl/ResetRequestSourceImpl.java?r2=601&r1=208 In attachment a patched jar for the ones that can be interested
-
mod_cluster-1.1.2.Final-jira-220.jar 185.6 KB