tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amol Upadhye <>
Subject RE: Post request to 'j_security_check' after tomcat restart or se ssio n timeout produces error 400
Date Tue, 18 Apr 2006 13:21:16 GMT
Anybody know about the problem I have as described in below email?


-----Original Message-----
From: Amol Upadhye [] 
Sent: Thursday, April 13, 2006 2:25 PM
Subject: Post request to 'j_security_check' after tomcat restart or sessio n
timeout produces error 400 


I am using Tomcat 5.0.28 and Form based authentication. 
Here are steps to produce my problem,
1. Access secured page -> tomcat forwards request to login page
2. Restart tomcat server or wait till session expires, keep login page as it
is, do not close browser window.
3. After tomcat restarts, with same login page try to login

In this case even if login information is correct tomcat throws error 400. 
This is because it looses the URL to which to forward to after
What I want is to forward the request to the desired page (may be
Is there a way to configure so that control is forwarded to the configured
page in this case?
Current I have Error 400 handler in which if requested URL is
'j_security_check' then I redirect to the desired page (secured page). But
tomcat somehow doesn't keep authenticated principal and again presents login

Any help is very much appreciated.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message