tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From murthy gandikota <murthy_gandik...@yahoo.com>
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 <murthy_gandikota@yahoo.com> 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 http://fakedomain.com/xyz/content/home/home.jsf 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 worker.properties: 
worker.list=loadbalancer 
worker.loadbalancer.type=lb 
worker.loadbalancer.balance_workers=worker1,worker2 
worker.worker1.type=ajp13 
worker.worker1.host=172.16.170.30 
worker.worker1.port=8009 
worker.worker1.lbfactor=1 
worker.worker1.retries=1 
worker.worker2.type=ajp13 
worker.worker2.host=172.16.170.35 
worker.worker2.port=8009 
worker.worker2.lbfactor=1 
worker.worker2.retries=1 
This is mod-jk.conf 
# Load mod_jk module 
# Specify the filename of the mod_jk lib 
LoadModule jk_module modules/mod_jk.so 
# Where to find workers.properties 
JkWorkersFile conf/worker.properties 
# 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/uriworkermap.properties 
# 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 127.0.0.1 

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? 
Thanks 




---------------------------------
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.
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message