tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Frehner <>
Subject Access to error page denied in Firefox 2.0
Date Mon, 22 Jan 2007 15:11:20 GMT
I'm trying to set up form-based authentication in a JSF Application on 
Tomcat 5.5.4. I've got a login page, a welcome page and an error page. On 
entering the right username and password I get redirected to welcome.jsp. 
On entering the wrong credentials IE displays my custom error.html with a 
link back to login.html where I can try with the right password again. So 
far so good.

Firefox 2.0, however, displays "HTTP Status 403 - Access to the requested 
resource has been denied" if the wrong credentials are entered. I can't get 
back to the login page anymore, even with the back button in the browser. 
Logging in with the correct credentials works as expected.

I understand that Tomcat forwards control to the error page configured in 
web.xml if authentication fails. I can't see any browser dependency here. 
Or does it do a redirect, i.e. go back to the browser first?

When setting up the application I followed Sun's Java 5 EE Tutorial 
(Chapter 30: Securing Web Applications) leaving out the mapping of roles to 
user groups as I haven't got any server groups.

The settings in the Tomcat admin application, which works fine, seem to be 
equivalent to mine although hard to compare as it is Struts and mine is JSF.

I've got an index.jsp file which takes me into the faces context. Could 
that cause problems?

Help is appreciated very much.

<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4"
<servlet-name>Faces Servlet</servlet-name>
<servlet-name>Faces Servlet</servlet-name>


dipl. geogr. Marcel Frehner
Wissenschaftlicher Mitarbeiter
Eidgenössische Forschungsanstalt für Wald, Schnee und Landschaft WSL
Abteilung Landschaftsinventuren
Zürcherstrasse 111
8903 Birmensdorf

Tel. +41-44-739 26 83


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

View raw message