tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From murthy gandikota <>
Subject Re: Apache 2.2.4 + Tomcat 5.5 + Mod_jk 1.2 causing login loop
Date Thu, 17 Apr 2008 11:27:01 GMT
The problem was traced to duplicate jvmRoute in the Tomcat's server.xml

murthy gandikota <> wrote:  We have 2 tomcat servers being
load-balanced by a front-end apache 
server using mod-jk. Whenever we open a new browser and point the url 
to the and submit the 
form, we get back the same form again with sessionid. Effectively, we 
end up logging in twice. In other words, the form is fetched twice and 
submitted twice. 
Can anyone please guess what's going on ? 
Here are the 
This is mod-jk.conf 
# Load mod_jk module 
# Specify the filename of the mod_jk lib 
LoadModule jk_module modules/ 
# Where to find 
JkWorkersFile conf/ 
# Where to put jk logs 
JkLogFile logs/mod_jk.log 
# Set the jk log level [debug/error/info] 
JkLogLevel debug 
# Select the log format 
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]" 
# JkOptions indicates to send SSK KEY SIZE 
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories 
# JkRequestLogFormat 
JkRequestLogFormat "%w %V %T" 
# Mount your applications 
JkMount /nva/* loadbalancer 
JkMount /dwr/* loadbalancer 
#JkMount /es/* es 
JkMount /es/* loadbalancer 
# You can use external file for mount points. 
# It will be checked for updates each 60 seconds. 
# The format of the file is: /url=worker 
# /examples/*=loadbalancer 
JkMountFile conf/ 
# Add shared memory. 
# This directive is present with 1.2.10 and 
# later versions of mod_jk, and is needed for 
# for load balancing to work properly 
JkShmFile logs/jk.shm 
# Add jkstatus for managing runtime data 

JkMount status 
Order deny,allow 
Deny from all 
Allow from 

Finally in httpd.conf we have this line 
Include conf/mod-jk.conf 
If don't see any errors. What should I be looking in the debug output? 

Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.

Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message