tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrea Cervellati <>
Subject How to capture authentication errors
Date Tue, 22 Jan 2002 07:36:41 GMT

I'm using JBoss and Tomcat to develop my web application.

I have a security domain and the user must authenticate itself to access the 
restricted area.

I'm using the DatabaseServer login module and I have defined the necessary 

I want to display an error page when the user is not allowed to access instead 
of the HTTP-403 error message.

The error.jsp page starts with the following:

<%@ page language="java" session="false" isThreadSafe="false" info="Error Page" 
isErrorPage="true" %>

In my jboss-web.xml I've specified that the security domain to be used is the 
same of the Jboss EJB container:

<jboss-web> <security-domain>java:/jaas/modulojdbc</security-domain> 

I've tried to add the following lines in the web.xml:


but I keep having the HTTP-403 message displaied.

I've also tried to use the <form-error-page> tag like this:


, but still have the problem

What can I do?
Should I add anything else in the jboss-web.xml?

I've posted rhis question even in the Java Forums and someone answered me that 
he had to change the Tomcat source to fix the problem.

Please help!

                   Thanks in advance 

To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message