You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "eric@codephoto.com" <er...@codephoto.com> on 2003/01/19 15:29:17 UTC

Re: WELCOME to tomcat-user@jakarta.apache.org

I am logging into a protected area, with a username and password that is exists, but doesn't have the correct role to access the page, I am getting a 403: 
403: Apache Tomcat/4.0.1 - HTTP Status 403 - Access to the requested
resource has been denied
and the user is being logged on to the system.

I have found that this is the correct behavior of tomcat.  (see http://w6.metronet.com/~wjm/tomcat/2000/Dec/msg00463.html)  But I don't want my users seeing that error page.  I would prefer if they are brought to my standard loging error page, and are required to authenticate again.  

Are there any suggestions on how I can avoid the standard 403 error page from being seen, or better yet, how I can trap the authentication from being sucessful.

Thank You,
Eric Nissan


---------- Original Message ----------------------------------
From: tomcat-user-help@jakarta.apache.org
Date:  19 Jan 2003 14:07:45 -0000

>Hi! This is the ezmlm program. I'm managing the
>tomcat-user@jakarta.apache.org mailing list.
>
>I'm working for my owner, who can be reached
>at tomcat-user-owner@jakarta.apache.org.
>
>Acknowledgment: I have added the address
>
>   eric@codephoto.com
>
>to the tomcat-user mailing list.
>
>Welcome to tomcat-user@jakarta.apache.org!
>
>Please save this message so that you know the address you are
>subscribed under, in case you later want to unsubscribe or change your
>subscription address.
>
>
>--- Administrative commands for the tomcat-user list ---
>
>I can handle administrative requests automatically. Please
>do not send them to the list address! Instead, send
>your message to the correct command address:
>
>To subscribe to the list, send a message to:
>   <to...@jakarta.apache.org>
>
>To remove your address from the list, send a message to:
>   <to...@jakarta.apache.org>
>
>Send mail to the following for info and FAQ for this list:
>   <to...@jakarta.apache.org>
>   <to...@jakarta.apache.org>
>
>Similar addresses exist for the digest list:
>   <to...@jakarta.apache.org>
>   <to...@jakarta.apache.org>
>
>To get messages 123 through 145 (a maximum of 100 per request), mail:
>   <to...@jakarta.apache.org>
>
>To get an index with subject and author for messages 123-456 , mail:
>   <to...@jakarta.apache.org>
>
>They are always returned as sets of 100, max 2000 per request,
>so you'll actually get 100-499.
>
>To receive all messages with the same subject as message 12345,
>send an empty message to:
>   <to...@jakarta.apache.org>
>
>The messages do not really need to be empty, but I will ignore
>their content. Only the ADDRESS you send to is important.
>
>You can start a subscription for an alternate address,
>for example "john@host.domain", just add a hyphen and your
>address (with '=' instead of '@') after the command word:
><to...@jakarta.apache.org>
>
>To stop subscription for this address, mail:
><to...@jakarta.apache.org>
>
>In both cases, I'll send a confirmation message to that address. When
>you receive it, simply reply to it to complete your subscription.
>
>If despite following these instructions, you do not get the
>desired results, please contact my owner at
>tomcat-user-owner@jakarta.apache.org. Please be patient, my owner is a
>lot slower than I am ;-)
>
>--- Enclosed is a copy of the request I received.
>
>Return-Path: <er...@codephoto.com>
>Received: (qmail 14538 invoked by uid 98); 19 Jan 2003 14:07:44 -0000
>Delivered-To: qmvirus-jakarta-tomcat-user-sc.1042985127.ljmndcmcngegcimnecmi-eric=codephoto.com@nagoya.betaversion.org
>X-Antivirus: nagoya (v4218 created Aug 14 2002)
>Received: (qmail 14515 invoked from network); 19 Jan 2003 14:07:42 -0000
>Received: from daedalus.apache.org (HELO apache.org) (63.251.56.142)
>  by nagoya.betaversion.org with SMTP; 19 Jan 2003 14:07:42 -0000
>Received: (qmail 98694 invoked by uid 500); 19 Jan 2003 14:06:19 -0000
>Delivered-To: apmail-jakarta-tomcat-user-sc.1042985127.ljmndcmcngegcimnecmi-eric=codephoto.com@jakarta.apache.org
>Received: (qmail 98685 invoked from network); 19 Jan 2003 14:06:17 -0000
>Received: from unknown (HELO mail.codephoto.com) (216.66.12.196)
>  by daedalus.apache.org with SMTP; 19 Jan 2003 14:06:17 -0000
>Date: Sun, 19 Jan 2003 09:05:44 -0500
>Message-Id: <20...@mail.codephoto.com>
>Mime-Version: 1.0
>Content-Type: text/plain; charset=us-ascii
>From: "eric@codephoto.com" <er...@codephoto.com>
>Reply-To: <er...@codephoto.com>
>X-Sender: <er...@codephoto.com>
>To: <to...@jakarta.apache.org>
>Subject: Re: confirm subscribe to tomcat-user@jakarta.apache.org
>X-Mailer: <IMail v7.13>
>X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
>
>---------- Original Message ----------------------------------
>From: tomcat-user-help@jakarta.apache.org
>Reply-To: tomcat-user-sc.1042985127.ljmndcmcngegcimnecmi-eric=codephoto.com@jakarta.apache.org
>Date:  19 Jan 2003 14:05:27 -0000
>
>>Hi! This is the ezmlm program. I'm managing the
>>tomcat-user@jakarta.apache.org mailing list.
>>
>>I'm working for my owner, who can be reached
>>at tomcat-user-owner@jakarta.apache.org.
>>
>>To confirm that you would like
>>
>>   eric@codephoto.com
>>
>>added to the tomcat-user mailing list, please send
>>an empty reply to this address:
>>
>>   tomcat-user-sc.1042985127.ljmndcmcngegcimnecmi-eric=codephoto.com@jakarta.apache.org
>>
>>Usually, this happens when you just hit the "reply" button.
>>If this does not work, simply copy the address and paste it into
>>the "To:" field of a new message.
>>
>>or click here:
>>	mailto:tomcat-user-sc.1042985127.ljmndcmcngegcimnecmi-eric=codephoto.com@jakarta.apache.org
>>
>>This confirmation serves two purposes. First, it verifies that I am able
>>to get mail through to you. Second, it protects you in case someone
>>forges a subscription request in your name.
>>
>>Some mail programs are broken and cannot handle long addresses. If you
>>cannot reply to this request, instead send a message to
>><to...@jakarta.apache.org> and put the
>>entire address listed above into the "Subject:" line.
>>
>>
>>--- Administrative commands for the tomcat-user list ---
>>
>>I can handle administrative requests automatically. Please
>>do not send them to the list address! Instead, send
>>your message to the correct command address:
>>
>>To subscribe to the list, send a message to:
>>   <to...@jakarta.apache.org>
>>
>>To remove your address from the list, send a message to:
>>   <to...@jakarta.apache.org>
>>
>>Send mail to the following for info and FAQ for this list:
>>   <to...@jakarta.apache.org>
>>   <to...@jakarta.apache.org>
>>
>>Similar addresses exist for the digest list:
>>   <to...@jakarta.apache.org>
>>   <to...@jakarta.apache.org>
>>
>>To get messages 123 through 145 (a maximum of 100 per request), mail:
>>   <to...@jakarta.apache.org>
>>
>>To get an index with subject and author for messages 123-456 , mail:
>>   <to...@jakarta.apache.org>
>>
>>They are always returned as sets of 100, max 2000 per request,
>>so you'll actually get 100-499.
>>
>>To receive all messages with the same subject as message 12345,
>>send an empty message to:
>>   <to...@jakarta.apache.org>
>>
>>The messages do not really need to be empty, but I will ignore
>>their content. Only the ADDRESS you send to is important.
>>
>>You can start a subscription for an alternate address,
>>for example "john@host.domain", just add a hyphen and your
>>address (with '=' instead of '@') after the command word:
>><to...@jakarta.apache.org>
>>
>>To stop subscription for this address, mail:
>><to...@jakarta.apache.org>
>>
>>In both cases, I'll send a confirmation message to that address. When
>>you receive it, simply reply to it to complete your subscription.
>>
>>If despite following these instructions, you do not get the
>>desired results, please contact my owner at
>>tomcat-user-owner@jakarta.apache.org. Please be patient, my owner is a
>>lot slower than I am ;-)
>>
>>--- Enclosed is a copy of the request I received.
>>
>>Return-Path: <er...@codephoto.com>
>>Received: (qmail 13772 invoked by uid 98); 19 Jan 2003 14:05:26 -0000
>>Delivered-To: qmvirus-jakarta-tomcat-user-subscribe@nagoya.betaversion.org
>>X-Antivirus: nagoya (v4218 created Aug 14 2002)
>>Received: (qmail 13744 invoked from network); 19 Jan 2003 14:05:24 -0000
>>Received: from daedalus.apache.org (HELO apache.org) (63.251.56.142)
>>  by nagoya.betaversion.org with SMTP; 19 Jan 2003 14:05:24 -0000
>>Received: (qmail 97905 invoked by uid 500); 19 Jan 2003 14:04:01 -0000
>>Delivered-To: apmail-jakarta-tomcat-user-subscribe@jakarta.apache.org
>>Received: (qmail 97883 invoked from network); 19 Jan 2003 14:04:00 -0000
>>Received: from unknown (HELO mail.codephoto.com) (216.66.12.196)
>>  by daedalus.apache.org with SMTP; 19 Jan 2003 14:04:00 -0000
>>Date: Sun, 19 Jan 2003 09:03:20 -0500
>>Message-Id: <20...@mail.codephoto.com>
>>Mime-Version: 1.0
>>Content-Type: text/plain; charset=us-ascii
>>From: "eric@codephoto.com" <er...@codephoto.com>
>>Reply-To: <er...@codephoto.com>
>>X-Sender: <er...@codephoto.com>
>>To: <to...@jakarta.apache.org>
>>Subject: subscribe
>>X-Mailer: <IMail v7.13>
>>X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
>>
>>
>>
>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: WELCOME to tomcat-user@jakarta.apache.org

Posted by Dan Tran <da...@hotmail.com>.
You can configure your web.xml to forward error code 403 to your specific
error page

like:

<web.xml snippet>
  <error-page>
    <error-code>403</error-code>
    <location>/errors/403.jsp</location>
  </error-page>
</web.xml snippet>

----- Original Message -----
From: <er...@codephoto.com>
To: <to...@jakarta.apache.org>
Sent: Sunday, January 19, 2003 6:29 AM
Subject: Re: WELCOME to tomcat-user@jakarta.apache.org


> I am logging into a protected area, with a username and password that is
exists, but doesn't have the correct role to access the page, I am getting a
403:
> 403: Apache Tomcat/4.0.1 - HTTP Status 403 - Access to the requested
> resource has been denied
> and the user is being logged on to the system.
>
> I have found that this is the correct behavior of tomcat.  (see
http://w6.metronet.com/~wjm/tomcat/2000/Dec/msg00463.html)  But I don't want
my users seeing that error page.  I would prefer if they are brought to my
standard loging error page, and are required to authenticate again.
>
> Are there any suggestions on how I can avoid the standard 403 error page
from being seen, or better yet, how I can trap the authentication from being
sucessful.
>
> Thank You,
> Eric Nissan
>
>
> ---------- Original Message ----------------------------------
> From: tomcat-user-help@jakarta.apache.org
> Date:  19 Jan 2003 14:07:45 -0000
>
> >Hi! This is the ezmlm program. I'm managing the
> >tomcat-user@jakarta.apache.org mailing list.
> >
> >I'm working for my owner, who can be reached
> >at tomcat-user-owner@jakarta.apache.org.
> >
> >Acknowledgment: I have added the address
> >
> >   eric@codephoto.com
> >
> >to the tomcat-user mailing list.
> >
> >Welcome to tomcat-user@jakarta.apache.org!
> >
> >Please save this message so that you know the address you are
> >subscribed under, in case you later want to unsubscribe or change your
> >subscription address.
> >
> >
> >--- Administrative commands for the tomcat-user list ---
> >
> >I can handle administrative requests automatically. Please
> >do not send them to the list address! Instead, send
> >your message to the correct command address:
> >
> >To subscribe to the list, send a message to:
> >   <to...@jakarta.apache.org>
> >
> >To remove your address from the list, send a message to:
> >   <to...@jakarta.apache.org>
> >
> >Send mail to the following for info and FAQ for this list:
> >   <to...@jakarta.apache.org>
> >   <to...@jakarta.apache.org>
> >
> >Similar addresses exist for the digest list:
> >   <to...@jakarta.apache.org>
> >   <to...@jakarta.apache.org>
> >
> >To get messages 123 through 145 (a maximum of 100 per request), mail:
> >   <to...@jakarta.apache.org>
> >
> >To get an index with subject and author for messages 123-456 , mail:
> >   <to...@jakarta.apache.org>
> >
> >They are always returned as sets of 100, max 2000 per request,
> >so you'll actually get 100-499.
> >
> >To receive all messages with the same subject as message 12345,
> >send an empty message to:
> >   <to...@jakarta.apache.org>
> >
> >The messages do not really need to be empty, but I will ignore
> >their content. Only the ADDRESS you send to is important.
> >
> >You can start a subscription for an alternate address,
> >for example "john@host.domain", just add a hyphen and your
> >address (with '=' instead of '@') after the command word:
> ><to...@jakarta.apache.org>
> >
> >To stop subscription for this address, mail:
> ><to...@jakarta.apache.org>
> >
> >In both cases, I'll send a confirmation message to that address. When
> >you receive it, simply reply to it to complete your subscription.
> >
> >If despite following these instructions, you do not get the
> >desired results, please contact my owner at
> >tomcat-user-owner@jakarta.apache.org. Please be patient, my owner is a
> >lot slower than I am ;-)
> >
> >--- Enclosed is a copy of the request I received.
> >
> >Return-Path: <er...@codephoto.com>
> >Received: (qmail 14538 invoked by uid 98); 19 Jan 2003 14:07:44 -0000
> >Delivered-To:
qmvirus-jakarta-tomcat-user-sc.1042985127.ljmndcmcngegcimnecmi-eric=codephot
o.com@nagoya.betaversion.org
> >X-Antivirus: nagoya (v4218 created Aug 14 2002)
> >Received: (qmail 14515 invoked from network); 19 Jan 2003 14:07:42 -0000
> >Received: from daedalus.apache.org (HELO apache.org) (63.251.56.142)
> >  by nagoya.betaversion.org with SMTP; 19 Jan 2003 14:07:42 -0000
> >Received: (qmail 98694 invoked by uid 500); 19 Jan 2003 14:06:19 -0000
> >Delivered-To:
apmail-jakarta-tomcat-user-sc.1042985127.ljmndcmcngegcimnecmi-eric=codephoto
.com@jakarta.apache.org
> >Received: (qmail 98685 invoked from network); 19 Jan 2003 14:06:17 -0000
> >Received: from unknown (HELO mail.codephoto.com) (216.66.12.196)
> >  by daedalus.apache.org with SMTP; 19 Jan 2003 14:06:17 -0000
> >Date: Sun, 19 Jan 2003 09:05:44 -0500
> >Message-Id: <20...@mail.codephoto.com>
> >Mime-Version: 1.0
> >Content-Type: text/plain; charset=us-ascii
> >From: "eric@codephoto.com" <er...@codephoto.com>
> >Reply-To: <er...@codephoto.com>
> >X-Sender: <er...@codephoto.com>
> >To:
<tomcat-user-sc.1042985127.ljmndcmcngegcimnecmi-eric=codephoto.com@jakarta.a
pache.org>
> >Subject: Re: confirm subscribe to tomcat-user@jakarta.apache.org
> >X-Mailer: <IMail v7.13>
> >X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
> >
> >---------- Original Message ----------------------------------
> >From: tomcat-user-help@jakarta.apache.org
> >Reply-To:
tomcat-user-sc.1042985127.ljmndcmcngegcimnecmi-eric=codephoto.com@jakarta.ap
ache.org
> >Date:  19 Jan 2003 14:05:27 -0000
> >
> >>Hi! This is the ezmlm program. I'm managing the
> >>tomcat-user@jakarta.apache.org mailing list.
> >>
> >>I'm working for my owner, who can be reached
> >>at tomcat-user-owner@jakarta.apache.org.
> >>
> >>To confirm that you would like
> >>
> >>   eric@codephoto.com
> >>
> >>added to the tomcat-user mailing list, please send
> >>an empty reply to this address:
> >>
> >>
tomcat-user-sc.1042985127.ljmndcmcngegcimnecmi-eric=codephoto.com@jakarta.ap
ache.org
> >>
> >>Usually, this happens when you just hit the "reply" button.
> >>If this does not work, simply copy the address and paste it into
> >>the "To:" field of a new message.
> >>
> >>or click here:
> >>
mailto:tomcat-user-sc.1042985127.ljmndcmcngegcimnecmi-eric=codephoto.com@jak
arta.apache.org
> >>
> >>This confirmation serves two purposes. First, it verifies that I am able
> >>to get mail through to you. Second, it protects you in case someone
> >>forges a subscription request in your name.
> >>
> >>Some mail programs are broken and cannot handle long addresses. If you
> >>cannot reply to this request, instead send a message to
> >><to...@jakarta.apache.org> and put the
> >>entire address listed above into the "Subject:" line.
> >>
> >>
> >>--- Administrative commands for the tomcat-user list ---
> >>
> >>I can handle administrative requests automatically. Please
> >>do not send them to the list address! Instead, send
> >>your message to the correct command address:
> >>
> >>To subscribe to the list, send a message to:
> >>   <to...@jakarta.apache.org>
> >>
> >>To remove your address from the list, send a message to:
> >>   <to...@jakarta.apache.org>
> >>
> >>Send mail to the following for info and FAQ for this list:
> >>   <to...@jakarta.apache.org>
> >>   <to...@jakarta.apache.org>
> >>
> >>Similar addresses exist for the digest list:
> >>   <to...@jakarta.apache.org>
> >>   <to...@jakarta.apache.org>
> >>
> >>To get messages 123 through 145 (a maximum of 100 per request), mail:
> >>   <to...@jakarta.apache.org>
> >>
> >>To get an index with subject and author for messages 123-456 , mail:
> >>   <to...@jakarta.apache.org>
> >>
> >>They are always returned as sets of 100, max 2000 per request,
> >>so you'll actually get 100-499.
> >>
> >>To receive all messages with the same subject as message 12345,
> >>send an empty message to:
> >>   <to...@jakarta.apache.org>
> >>
> >>The messages do not really need to be empty, but I will ignore
> >>their content. Only the ADDRESS you send to is important.
> >>
> >>You can start a subscription for an alternate address,
> >>for example "john@host.domain", just add a hyphen and your
> >>address (with '=' instead of '@') after the command word:
> >><to...@jakarta.apache.org>
> >>
> >>To stop subscription for this address, mail:
> >><to...@jakarta.apache.org>
> >>
> >>In both cases, I'll send a confirmation message to that address. When
> >>you receive it, simply reply to it to complete your subscription.
> >>
> >>If despite following these instructions, you do not get the
> >>desired results, please contact my owner at
> >>tomcat-user-owner@jakarta.apache.org. Please be patient, my owner is a
> >>lot slower than I am ;-)
> >>
> >>--- Enclosed is a copy of the request I received.
> >>
> >>Return-Path: <er...@codephoto.com>
> >>Received: (qmail 13772 invoked by uid 98); 19 Jan 2003 14:05:26 -0000
> >>Delivered-To:
qmvirus-jakarta-tomcat-user-subscribe@nagoya.betaversion.org
> >>X-Antivirus: nagoya (v4218 created Aug 14 2002)
> >>Received: (qmail 13744 invoked from network); 19 Jan 2003 14:05:24 -0000
> >>Received: from daedalus.apache.org (HELO apache.org) (63.251.56.142)
> >>  by nagoya.betaversion.org with SMTP; 19 Jan 2003 14:05:24 -0000
> >>Received: (qmail 97905 invoked by uid 500); 19 Jan 2003 14:04:01 -0000
> >>Delivered-To: apmail-jakarta-tomcat-user-subscribe@jakarta.apache.org
> >>Received: (qmail 97883 invoked from network); 19 Jan 2003 14:04:00 -0000
> >>Received: from unknown (HELO mail.codephoto.com) (216.66.12.196)
> >>  by daedalus.apache.org with SMTP; 19 Jan 2003 14:04:00 -0000
> >>Date: Sun, 19 Jan 2003 09:03:20 -0500
> >>Message-Id: <20...@mail.codephoto.com>
> >>Mime-Version: 1.0
> >>Content-Type: text/plain; charset=us-ascii
> >>From: "eric@codephoto.com" <er...@codephoto.com>
> >>Reply-To: <er...@codephoto.com>
> >>X-Sender: <er...@codephoto.com>
> >>To: <to...@jakarta.apache.org>
> >>Subject: subscribe
> >>X-Mailer: <IMail v7.13>
> >>X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
> >>
> >>
> >>
> >
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>