tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Nelson-Smith" <>
Subject Re: mod_ajp and Load-Balancing Issue
Date Sun, 21 Sep 2008 06:08:49 GMT
Good morning,

> By "error", I just meant that I'd get redirected to the login page
> instead of the expected page. Sorry to confuse. There are no error
> pages, logs or messages. Just that I got switched to a different node.


>> If you want to debug a little more: In Tomcat you can add a
>> %S to your log pattern, which will log the session id. In
>> httpd you can log the Set-Cookie outgoing header
>> "%{Set-Cookie}o" and the JSESSIONID cookie "%{JSESSIONID}C".
>> If you are not using cookies, you can of course see the
>> jsessionid path parameter dircetly in the logged URL.
> Thanks. I'll do that. (First time apache troubleshooter here). I'll get
> back on the results.

Did you get this to work?  I have exactly the same problem.  Apache
2.2 using mod_proxy_ajp with 3 x tomcat 6 instances behind it.  If I
remove two of the tomcats from the balancer pool, the application
works.  When I put them back in, I can log into one of the servers,
but as soon as I change screens on the application, I'm logged out.
This is because if the application detects a session change, it logs
the user out.  I need the load-balancer to direct traffic to the same
tomcat server on which the session began unless that server is down.


To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message