Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
Pipelining Problem after Form Authentication with Firefox and Status Code 408

Pipelining Problem after Form Authentication with Firefox and Status Code 408

2007-08-09       - By Derek

 Back
Hello,

I have some troubles with firefox and form authentication running on  
Tomcat 5.0.28.
It happens as followed:

User requests restricted Page and is redirected to a LoginServlet  
which forwards the request to a Login.jsp. Nothing special here.
Instead of logging in, the user waits, for  as long as the configured  
session timeout e.g. 5 Minutes.
After 5 Minutes he try to log in. The session is already expired an  
Tomcat answers with Status Code 408.
Status Code 408 should be handled by an error-page configured in the  
web.xml.
<error-page>
  <error-code>408</error-code>
  <location>Error.jsp</location>
<error-page>

With IE7 ore Safari i see ONE Request in my Tomcat Access Logfile,  
answered with a 408, and then the Error Page is displayed.
In Firefox 2.0.5 however, not ONE but TEN requests are made. All are  
answered with 408, but not the Error Page is displayed, but a default  
file not found status code 404  (j_security_check not found) is  
displayed.

If I then configure an error-page for status code 404 it gets even  
stranger, and after all request were made, firefox displays its  
standard "The connection was reset" page.

As far as i understand the problem, firefox with enabled pipelining  
sends multiple requests after the session expired and tomcat can not  
handle those requests.

What i don't understand is, why firefox sends so many requests?
Can i control this behavior by setting some response headers? I  
already tried Pragma: no-cache and
Cache-Control: no-cache,no-store,must-revalidate?
Or meta-tags in the html of the Login.jsp?

Another interesting side effect is, that even so the server answer  
with a 408, the JDBC Realm successfully authenticates the user. And  
if you click the back button in the Browser you get to the actual  
requested page without further Logins.
But i guess, thats another question ....

Any help is appreciated,

Derek


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.