You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Søren Blidorf <so...@nolas.dk> on 2005/01/20 00:08:15 UTC
403 Forbidden
Hi.
I have setup my web.xml error page "403 Forbidden" to go to my page
"restrictedError.jsp"
I cannot get it to work!
Can it be because I use a danish browser where the error code is "403
Forbudt"
BR
Soren
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: SV: 403 Forbidden
Posted by Didier McGillis <co...@hotmail.com>.
Sorry I missed this.
>From: Sřren Blidorf <so...@nolas.dk>
>Reply-To: "Tomcat Users List" <to...@jakarta.apache.org>
>To: "'Tomcat Users List'" <to...@jakarta.apache.org>
>Subject: SV: 403 Forbidden
>Date: Thu, 20 Jan 2005 08:29:46 +0100
>
>This is the error page part of my web.xml:
>
> <error-code>500</error-code>
> <location>/internalError.jsp</location>
> </error-page>
> <error-page>
> <error-code>404</error-code>
> <location>/notFoundError.jsp</location>
> </error-page>
> <error-page>
> <error-code>403</error-code>
> <location>/restrictedError.jsp</location>
> </error-page>
> <error-page>
> <error-code>400</error-code>
> <location>/public/jada.jsp</location>
> </error-page>
> <error-page>
> <exception-type>SendFailedException</exception-type>
> <location>/mailError.jsp</location>
> </error-page>
> <error-page>
> <exception-type>java.lang.NullPointerException</exception-type>
> <location>/NullPointerException.jsp</location>
> </error-page>
> <error-page>
> <exception-type>java.net.UnknownHostException</exception-type>
> <location>/mailError.jsp</location>
> </error-page>
> <error-page>
> <exception-type>org.apache.jasper.JasperException</exception-type>
> <location>/internalError.jsp</location>
> </error-page>
>
>-----Oprindelig meddelelse-----
>Fra: Wendy Smoak [mailto:java@wendysmoak.com]
>Sendt: 20. januar 2005 03:00
>Til: Tomcat Users List
>Emne: Re: 403 Forbidden
>
>From: "Sřren Blidorf" <so...@nolas.dk>
>To: <to...@jakarta.apache.org>
>Sent: Wednesday, January 19, 2005 4:08 PM
>Subject: 403 Forbidden
>
> > I have setup my web.xml error page "403 Forbidden" to go to my page
> > "restrictedError.jsp"
> > I cannot get it to work!
>
>What have you tried? I'm having a similar problem, though I'm trying to
>trap certain types of Exceptions (rather than error codes) and send the
>user
>to a certain .jsp.
>
>Post the relevant parts of [I assume] web.xml and hopefully someone can
>help
>us both. :)
>
>--
>Wendy Smoak
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
SV: 403 Forbidden
Posted by Søren Blidorf <so...@nolas.dk>.
This is the error page part of my web.xml:
<error-code>500</error-code>
<location>/internalError.jsp</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/notFoundError.jsp</location>
</error-page>
<error-page>
<error-code>403</error-code>
<location>/restrictedError.jsp</location>
</error-page>
<error-page>
<error-code>400</error-code>
<location>/public/jada.jsp</location>
</error-page>
<error-page>
<exception-type>SendFailedException</exception-type>
<location>/mailError.jsp</location>
</error-page>
<error-page>
<exception-type>java.lang.NullPointerException</exception-type>
<location>/NullPointerException.jsp</location>
</error-page>
<error-page>
<exception-type>java.net.UnknownHostException</exception-type>
<location>/mailError.jsp</location>
</error-page>
<error-page>
<exception-type>org.apache.jasper.JasperException</exception-type>
<location>/internalError.jsp</location>
</error-page>
-----Oprindelig meddelelse-----
Fra: Wendy Smoak [mailto:java@wendysmoak.com]
Sendt: 20. januar 2005 03:00
Til: Tomcat Users List
Emne: Re: 403 Forbidden
From: "Søren Blidorf" <so...@nolas.dk>
To: <to...@jakarta.apache.org>
Sent: Wednesday, January 19, 2005 4:08 PM
Subject: 403 Forbidden
> I have setup my web.xml error page "403 Forbidden" to go to my page
> "restrictedError.jsp"
> I cannot get it to work!
What have you tried? I'm having a similar problem, though I'm trying to
trap certain types of Exceptions (rather than error codes) and send the
user
to a certain .jsp.
Post the relevant parts of [I assume] web.xml and hopefully someone can
help
us both. :)
--
Wendy Smoak
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: 403 Forbidden
Posted by Wendy Smoak <ja...@wendysmoak.com>.
From: "Søren Blidorf" <so...@nolas.dk>
To: <to...@jakarta.apache.org>
Sent: Wednesday, January 19, 2005 4:08 PM
Subject: 403 Forbidden
> I have setup my web.xml error page "403 Forbidden" to go to my page
> "restrictedError.jsp"
> I cannot get it to work!
What have you tried? I'm having a similar problem, though I'm trying to
trap certain types of Exceptions (rather than error codes) and send the user
to a certain .jsp.
Post the relevant parts of [I assume] web.xml and hopefully someone can help
us both. :)
--
Wendy Smoak
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: 403 Forbidden
Posted by Wendy Smoak <ja...@wendysmoak.com>.
From: "Didier McGillis" <co...@hotmail.com>
> Have you tried this.
> WEB_INF/web.xml
> <error-page>
> <error-code>403</error-code>
> <location>/errorpages/403.jsp</location>
> </error-page>
Based on his other post, Soren has tried that, and I have a similar problem
with <exception-type> (he's using <error-code>). I'm on Tomcat 4.1, Java
1.5, HP-UX 11.
I have this in web.xml:
<error-page>
<exception-type>javax.servlet.ServletException</exception-type>
<location>/WEB-INF/jsp/exceptionServlet.jsp</location>
</error-page>
But when I throw a Servlet Exception from my code, I see the usual error
page instead of the JSP I've specified.
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it
from fulfilling this request
exception
javax.servlet.ServletException: No data found in the HOLD file under key ...
Is anyone successfully using <error-page>? What are we doing wrong?
--
Wendy Smoak
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: 403 Forbidden
Posted by James Sys <ja...@MySpareKey.co.uk>.
Hi Soren and Wendy,
I wondered if either of you have made progress with this problem. It's so=
mething I too would like to use, so I'm keen to pick your brains.
Thanks,
James.
------
Have you tried this.
WEB_INF/web.xml
<error-page>
<error-code>403</error-code>
<location>/errorpages/403.jsp</location>
</error-page>
From: Søren Blidorf <so...@nolas.dk>
>Reply-To: "Tomcat Users List" <to...@jakarta.apache.org>
>To: <to...@jakarta.apache.org>
>Subject: 403 Forbidden
>Date: Thu, 20 Jan 2005 00:08:15 +0100
>
>Hi.
>
>I have setup my web.xml error page "403 Forbidden" to go to my page
>"restrictedError.jsp"
>
>I cannot get it to work!
>
>Can it be because I use a danish browser where the error code is "403
>Forbudt"
>
>BR
>
>Soren
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: 403 Forbidden
Posted by Didier McGillis <co...@hotmail.com>.
Have you tried this.
WEB_INF/web.xml
<error-page>
<error-code>403</error-code>
<location>/errorpages/403.jsp</location>
</error-page>
>From: Sřren Blidorf <so...@nolas.dk>
>Reply-To: "Tomcat Users List" <to...@jakarta.apache.org>
>To: <to...@jakarta.apache.org>
>Subject: 403 Forbidden
>Date: Thu, 20 Jan 2005 00:08:15 +0100
>
>Hi.
>
>I have setup my web.xml error page "403 Forbidden" to go to my page
>"restrictedError.jsp"
>
>I cannot get it to work!
>
>Can it be because I use a danish browser where the error code is "403
>Forbudt"
>
>BR
>
>Soren
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org