]
Sent: Tuesday, August 09, 2005 7:29 AM
To: tomcat-user@jakarta.apache.org
Subject: error-page not working
Hi;
I am using JSF - although that should not make a difference.
In web.xml I have:
error-page
exception-typejava.lang.Throwable/exception-type
location
That's not it - the file is over 2K in size.
??? - thanks - dave
David Thielen
303-499-2544
www.windwardreports.com
-Original Message-
From: Marius Hanganu [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 09, 2005 1:47 AM
To: Tomcat Users List
Subject: RE: error-page not working
Hi;
I am using JSF - although that should not make a difference.
In web.xml I have:
error-page
exception-typejava.lang.Throwable/exception-type
location/errorpage.jsp/location
/error-page
And in my event handler I have:
throw new NullPointerException(hi
- Original Message -
From: Raymond [EMAIL PROTECTED]
To: Tomcat Users tomcat-user@jakarta.apache.org
Sent: Wednesday, May 18, 2005 9:54 PM
Subject: error-page not working for error-code 503?
Hi,
I have these in my tomcat server's global web.xml file:
error-page
error-code404/error-code
Hi,
I have these in my tomcat server's global web.xml file:
error-page
error-code404/error-code
location/http404.jsp/location
/error-page
error-page
error-code503/error-code
location/maintenance.html/location
/error-page
It works for the 404 but not the 503 error code. What's wrong with it?
I
On 5/19/05, Raymond [EMAIL PROTECTED] wrote:
Hi,
I have these in my tomcat server's global web.xml file:
error-page
error-code404/error-code
location/http404.jsp/location
/error-page
error-page
error-code503/error-code
location/maintenance.html/location
/error-page
It
Hi,
I have these in my tomcat server's global web.xml file:
error-page
error-code404/error-code
location/http404.jsp/location
/error-page
error-page
error-code503/error-code
location/maintenance.html/location
/error-page
It works for the 404 but not the 503 error code. What's wrong with it?
I
-
From: Raymond [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 18, 2005 9:54 AM
To: Tomcat Users
Subject: error-page not working for error-code 503?
Hi,
I have these in my tomcat server's global web.xml file:
error-page
error-code404/error-code
location/http404.jsp/location
/error-page
error
://www.yoavshapira.com
-Original Message-
From: Chris Cherrett [mailto:[EMAIL PROTECTED]
Sent: Sunday, December 12, 2004 8:23 AM
To: Tomcat Users List
Subject: error-page not working properly
Hello
I have searched this topic on google to find the following to be true:
catching 500 or 404
Message-
From: Chris Cherrett [mailto:[EMAIL PROTECTED]
Sent: Sunday, December 12, 2004 7:23 AM
To: Tomcat Users List
Subject: error-page not working properly
Hello
I have searched this topic on google to find the following to be true:
catching 500 or 404 error does not work in Tomcat
-Original Message-
From: Chris Cherrett [mailto:[EMAIL PROTECTED]
Is there a way to catch all exceptions that works in Tomcat 5
You can catch all Exceptions/Throwables and their subclasses by configuring
java.lang.Exception or java.lang.Throwable in the error-type tag. However
Seems that I have preformed an ID10T error!
Thanks for the help
error-code != exception-type
Thanks for the help
On December 13, 2004 01:13 pm, Steve Kirk wrote:
-Original Message-
From: Chris Cherrett [mailto:[EMAIL PROTECTED]
Is there a way to catch all exceptions that works
Hello
I have searched this topic on google to find the following to be true:
catching 500 or 404 error does not work in Tomcat 5 like this
error-page
exception-type500/exception-type
location/error.jsp/location
/error-page
error-page
exception-type404/exception-type
A while ago, Yoav Shapira wrote:
I asked if it's the nice IE error pages or the actual tomcat ones.
There's an IE setting in Internet Options along the lines of
Display Friendly Error Pages that can mask the server's error pages
if enabled, and it's enabled by default on some platforms.
I
Hi,
This is really easy with jsp. I'm doing something similar. I don't have the code here,
but
it goes something like:
in servlet.java:
HttpRequest req; // this is passed to you
HttpSession sess = req.getSession();
sess.setAttribute( errorMessage, Something terrible has happened. );
And I
Howdy,
Yoav, this is Tomcat-only, on my development box, so no Apache error
pages.
Great, but that's not what I asked ;) I asked if it's the nice IE
error pages or the actual tomcat ones. There's an IE setting in
Internet Options along the lines of Display Friendly Error Pages that
can mask
Howdy,
error-page
exception-typejavax.servlet.ServletException/exception-type
location/WEB-INF/jsp/exceptions/ServletException.jsp/location
/error-page
(in the appropriate place, at the bottom just above /web-app)
When this code executes:
if ( report == null ||
This is JSP rather than Tomcat question, but I hope
for a reply.
I have a JSP with the following jsp:plugin code:
jsp:plugin type=applet
code=com.package.Applet.class
codebase=/application1/applets/ width=50
height=50
/jsp:plugin
Web applications, which run this applet, specify
different
Wendy:
Here's your problem:
location/WEB-INF/jsp/exceptions/ServletException.jsp/location
JSPs can't be run from inside the WEB-INF directory. Try moving your
jsp/exceptions directory up one level.
Jerry
Wendy Smoak wrote:
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Try
From: Jerry Ford [mailto:[EMAIL PROTECTED]
Wendy:
Here's your problem:
location/WEB-INF/jsp/exceptions/ServletException.jsp/location
JSPs can't be run from inside the WEB-INF directory. Try moving your
jsp/exceptions directory up one level.
All of my JSP's are under WEB-INF, and they work
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Try exception-typejava.lang.RuntimeException/exception-type, as
that's the superclass for unchecked exceptions and you
probably want to
handle them all the same (if you want to handle them at all, which
apparently you do).
I don't understand.
I have configured my webapp to serve up error pages via the web.xml file:
error-page
error-code500/error-code
location/general_error.html/location
/error-page
error-page
error-code404/error-code
location/general_error.html/location
/error-page
I would speculate that the 500 status code is being set inside the default
exception handling code--which probably fall outside the error-page
forwarding mechanism.
Instead of triggering an exception, what happens when you use
HttpSessionResponse.setStatus(500) in a servlet?
I would not
Thanks Sean!
The error-page exception-type was EXACTLY what I needed.
Much appreciated.
Jay
-Original Message-
From: Sean Dockery [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 04, 2003 3:11 PM
To: Tomcat Users List
Subject: Re: web.xml error-page not working for 500 errors
Hi,
I've implemented a JSP page for handling 500 errors, but its not
working. A similar page works fine for 404 errors coming from Tomcat.
The error in question is a NullPointerException, but this shouldn't matter.
From web.xml:
error-page
error-code500/error-code
Hi,
I've implemented a JSP page for handling 500 errors, but its not
working. A similar page works fine for 404 errors coming from Tomcat.
The error in question is a NullPointerException, but this shouldn't
matter.
From web.xml:
error-page
error-code500/error-code
I'm having trouble getting TC4 to display the error page specified
in web.xml when my servlet or jsp throws an Exception.
I just get the default HTTP 500 error page A Servlet Exception Has
Occurred.
Below are the lines from web.xml. What is wrong?
error-page
Ok, I give up, what am I doing wrong?
I want to provide my own error pages for certain conditions and I can't seem
to get the error-page tag to work. Here is an example of what I put in my
web.xml file:
error-page
exception-typejava.sql.SQLException/exception-type
Ok, I give up, what am I doing wrong?
I dunno, what happens in the browser and what's output in the log?
- r
: Friday, August 24, 2001 9:39 AM
To: [EMAIL PROTECTED]
Subject: Re: error-page not working in TC 3.2
Ok, I give up, what am I doing wrong?
I dunno, what happens in the browser and what's output in the log?
- r
I have some problems to make custome error pages working. I have done my test with
TC40-b7
on Linux Redhat 7.1 Kernel 2.4.2.
1) The servlet ErrorHandlingServlet.java is in
$CATALINA_HOME/webapps/test/WEB-INF/classes:
import javax.servlet.*;
import javax.servlet.http.*;
import
See intermixed.
On Thu, 23 Aug 2001, Peiqiang Han wrote:
Date: Thu, 23 Aug 2001 19:52:11 +0500
From: Peiqiang Han [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: custom error page not working in TC40-b7
I have some problems to make custome error pages
I have
...
/welcome-file-list
error-page
error-code404/error-code
location/error404.jsp/location
/error-page
taglib
...
in my web.xml file and for some reason it is not enough to get
error404.jsp to show up when I
hello,
i'm running tomcat 4.0b1.
i have the following entries in my web.xml
error-page
error-code403/error-code
location/sorry.jsp/location
/error-page
error-page
error-code404/error-code
location/sorry.jsp/location
/error-page
i'm using form based login and that works fine.
if i
34 matches
Mail list logo