Error Page Configuration

2003-10-21 Thread N.B.Bopanna
Hi all,
Is there a way to configure an error page for the full application using 
the deployment descriptor?
Thanks
Bopanna



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Error Page Configuration

2003-10-21 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/misc.html#error

N.B.Bopanna wrote:

Hi all,
Is there a way to configure an error page for the full application using 
the deployment descriptor?
Thanks
Bopanna
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Error-Page configuration problem

2003-05-30 Thread Joel Lawhead
I am using Tomcat 4.1.18 behind Apache 2.0.44 with mod_jk on a Win XP Pro machine.
 
I have been developing a JSP application for several months. The application is close 
to initial release and I decided to add an error-page directive to web.xml to 
temporarily mask and notify us of any unexpected lingering exceptions.
 
Whenever I add the following to web.xml I get a Parse Error from Tomcat with a list 
of valid tags for web.xml:
 
 error-page
  exception-typeorg.apache.jasper.JasperException/exception-type
  location/error.jsp/location
 /error-page  
The location reference error.jsp is a very simple valid jsp error page.
 
Strangely enough if I remove the exception-type tag and the location tag Tomcat 
notifies me that the error-page tag is incomplete and tells me the valid contents of 
an error-page tag. But when I try to use it properly Tomcat acts as if its never heard 
of the error-page tag.
 
I have also tried using error-code500/error-code instead of exception-type but 
that causes the same problem.
 
I've searched the bug database and mailing list and haven't found any mention of this 
problem.
 
I also tried using a page directive defining an error page but I still received the 
default exceptions I had planted in a test page. I'd rather use the web.xml way if 
possible anyway.
 
Any ideas?
 
Thanks,
Joel



-
Do you Yahoo!?
Yahoo! News - Today's headlines

RE: Error-Page configuration problem

2003-05-30 Thread Wendy Smoak
Joel wrote:
 Strangely enough if I remove the exception-type tag and the location tag 
 Tomcat notifies me that the error-page tag is incomplete and tells me the 
 valid contents of an error-page tag. But when I try to use it properly
Tomcat 
 acts as if its never heard of the error-page tag.

Check the DTD, are you sure you're putting it in the right place?  It goes
right after welcome-file-list, which is towards the bottom.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management


Re: Error-Page configuration problem

2003-05-30 Thread Chong Yu Meng


error-page
exception-typeorg.apache.jasper.JasperException/exception-type
location/error.jsp/location
/error-page  
   

The exception-type tag did not work for me either, and I'm using 
servlets (no jsp). Is it disabled ?

Regards,
pascal chong
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE : Tomcat ignores the error-page configuration

2003-03-07 Thread sylvain fernandes
I try to make a error redirection and it doesn t work if you have the
solution to configure serveur.xml (tomcat 4.1.18) can you help me
Thank's


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat ignores the error-page configuration

2003-03-06 Thread Armand Larregoity
Rosdi,

Thanks for the tip, but it doesn't work.

Armand

Rosdi bin Kasim a écrit :

 I am guessing here, but try to remove the leading and trailing space. See if
 it work.

 Instead of:

 location /jsp/error.jsp /location

 Why not:

 location/jsp/error.jsp/location

 Rosdi bin Kasim.

 - Original Message -
 From: Armand Larregoity [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, March 05, 2003 11:42 PM
 Subject: Tomcat ignores the error-page configuration

 
  Hello,
 
  I'm using Tomcat 4.1.12.
  I'm trying to configure an error-page in the web.xml file  :
 
  web-app
  ...
error-page
   exception-typejava.lang.Throwable/exception-type
   location /jsp/error.jsp /location
 /error-page
  ...
  /web-app
 
  but when an exception occurs, the request isn't forwarded to
  error.jsp. I simply get  a org.apache.jasper.JasperException in the
  catalina.out file.
  When I put a 'errorPage=/jsp/error.jsp' directive in my
  jsp pages, it works ...
 
  Is the problem known ? Is there a problem in my web.xml file ?
 
  Armand
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat ignores the error-page configuration

2003-03-06 Thread Rosdi bin Kasim
Now I remember one thing.. the order of tag is important.. ie taglib
cannot precede error-page  etc.. etc..

Here is a sample of mine, which I got it working.. note that I put taglib
last. Had I put it at the top, Tomcat will throw some exception..

Probably you can do some googleing on this...

-

?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;

web-app

  error-page
 exception-typejava.lang.Throwable/exception-type
 location/error/exception.jsp/location
  /error-page

 error-page
 error-code404/error-code
location/error/404.jsp/location
  /error-page

  error-page
error-code500/error-code
location/error/500.jsp/location
  /error-page

 taglib
  taglib-urihttp://jakarta.apache.org/taglibs/session-1.0/taglib-uri
   taglib-location/WEB-INF/session.tld/taglib-location
 /taglib

/web-app

---





- Original Message -
From: Armand Larregoity [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 6:44 PM
Subject: Re: Tomcat ignores the error-page configuration


 Rosdi,

 Thanks for the tip, but it doesn't work.

 Armand

 Rosdi bin Kasim a écrit :

  I am guessing here, but try to remove the leading and trailing space.
See if
  it work.
 
  Instead of:
 
  location /jsp/error.jsp /location
 
  Why not:
 
  location/jsp/error.jsp/location
 
  Rosdi bin Kasim.
 
  - Original Message -
  From: Armand Larregoity [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Wednesday, March 05, 2003 11:42 PM
  Subject: Tomcat ignores the error-page configuration
 
  
   Hello,
  
   I'm using Tomcat 4.1.12.
   I'm trying to configure an error-page in the web.xml file  :
  
   web-app
   ...
 error-page
exception-typejava.lang.Throwable/exception-type
location /jsp/error.jsp /location
  /error-page
   ...
   /web-app
  
   but when an exception occurs, the request isn't forwarded to
   error.jsp. I simply get  a org.apache.jasper.JasperException in the
   catalina.out file.
   When I put a 'errorPage=/jsp/error.jsp' directive in my
   jsp pages, it works ...
  
   Is the problem known ? Is there a problem in my web.xml file ?
  
   Armand
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat ignores the error-page configuration

2003-03-05 Thread Armand Larregoity

Hello,

I'm using Tomcat 4.1.12.
I'm trying to configure an error-page in the web.xml file  :

web-app
...
  error-page
 exception-typejava.lang.Throwable/exception-type
 location /jsp/error.jsp /location
   /error-page
...
/web-app

but when an exception occurs, the request isn't forwarded to
error.jsp. I simply get  a org.apache.jasper.JasperException in the
catalina.out file.
When I put a 'errorPage=/jsp/error.jsp' directive in my
jsp pages, it works ...

Is the problem known ? Is there a problem in my web.xml file ?

Armand


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat ignores the error-page configuration

2003-03-05 Thread Daniel Williams
I have the some problem, but I'm trying to handle 404 and 500 errors.

   error-page
   error-code404/error-code
   location/error/tomcat404.jsp/location
   /error-page
  
   error-page
   error-code500/error-code
   location/error/tomcat500.jsp/location
   /error-page
The 404 works but 500s do not. Is a exception under Tomcat consider a 
error 500?



Armand Larregoity wrote:

   Hello,

   I'm using Tomcat 4.1.12.
   I'm trying to configure an error-page in the web.xml file  :
web-app
   ...
 error-page
exception-typejava.lang.Throwable/exception-type
location /jsp/error.jsp /location
  /error-page
   ...
/web-app
   but when an exception occurs, the request isn't forwarded to
error.jsp. I simply get  a org.apache.jasper.JasperException in the
catalina.out file.
   When I put a 'errorPage=/jsp/error.jsp' directive in my
jsp pages, it works ...
   Is the problem known ? Is there a problem in my web.xml file ?

Armand

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat ignores the error-page configuration

2003-03-05 Thread Rosdi bin Kasim
I am guessing here, but try to remove the leading and trailing space. See if
it work.

Instead of:

location /jsp/error.jsp /location

Why not:

location/jsp/error.jsp/location


Rosdi bin Kasim.


- Original Message -
From: Armand Larregoity [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 05, 2003 11:42 PM
Subject: Tomcat ignores the error-page configuration



 Hello,

 I'm using Tomcat 4.1.12.
 I'm trying to configure an error-page in the web.xml file  :

 web-app
 ...
   error-page
  exception-typejava.lang.Throwable/exception-type
  location /jsp/error.jsp /location
/error-page
 ...
 /web-app

 but when an exception occurs, the request isn't forwarded to
 error.jsp. I simply get  a org.apache.jasper.JasperException in the
 catalina.out file.
 When I put a 'errorPage=/jsp/error.jsp' directive in my
 jsp pages, it works ...

 Is the problem known ? Is there a problem in my web.xml file ?

 Armand


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Error Page Configuration

2002-08-17 Thread Kurtz, Todd

Has anyone configured tomcat error pages through $CATALINA_HOME/conf/web.xml
and been able to access the implicit exception object from within the error
page?

Regards,
Todd Kurtz 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]