custom error pages

2004-08-05 Thread Maurice Marrink
Hi, I,m using tomcat 5.0.27 and am trying to show custom error pages. I added a couple of errorpage tags to my webapps web.xml and the /conf/web.xml in the tomcat installation dir. error-page error-code500/error-code location/error/error.html/location /error-page

RE: custom error pages

2004-08-05 Thread Mike Curwen
? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, August 05, 2004 8:11 AM To: Tomcat Users List Subject: RE: custom error pages Hi, The stuff in conf/web.xml is virtually appended to your web.xml. If your web.xml is inactive or non-existent

RE: custom error pages

2004-08-05 Thread Shapira, Yoav
Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Thursday, August 05, 2004 2:44 PM To: 'Tomcat Users List' Subject: RE: custom error pages I think the essence of the request is to get Tomcat to not show a tomcat error page under any circumstances. For those using Tomcat stand-alone, (ie

Re: custom error pages?

2003-06-21 Thread Yoav Shapira
Howdy, Define an exception, e.g. MyException. Define an error-page (in web.xml) for that exception. Throw that exception from your servlet. Yoav Shapira --- seera naveen [EMAIL PROTECTED] wrote: Hi, I am using FORM based authentication and JNDIRealm. Is it possible to have custom error

custom error pages?

2003-06-20 Thread seera naveen
Hi, I am using FORM based authentication and JNDIRealm. Is it possible to have custom error pages in Tomcat? Apart from Invalid username and password, I want to check for another attribute and if that attribute is not set, I want to throw another message. Thanks Naveen SMS using the Yahoo

Custom Error Pages

2003-06-19 Thread Thomas, Kevin
Hi all, I have setup some custom error pages and have updated $CATALINA_HOME/conf/web.xml to direct to these pages should an error occur. However, when a error is raised the app automatically looks within /webapp/Errors for the pages instead of /ROOT/Errors where I would like it to look. Errors

RE: Custom Error Pages

2003-06-19 Thread Shapira, Yoav
Howdy, The url-pattern for error pages in web.xml is relative to your docBase. C'est tout. Yoav Shapira Millennium ChemInformatics -Original Message- From: Thomas, Kevin [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 10:25 AM To: 'Tomcat Users List' Subject: Custom Error Pages

RE: Custom Error Pages

2003-06-19 Thread Thomas, Kevin
Merci :O) -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 19 June 2003 15:28 To: Tomcat Users List Subject: RE: Custom Error Pages Howdy, The url-pattern for error pages in web.xml is relative to your docBase. C'est tout. Yoav Shapira Millennium ChemInformatics

Custom error pages Internet Explorer

2003-06-11 Thread Lee W
Hi, I have just started learning JSP Tomcat so please be gentle. I am currently designing a webapp and was trying to get some custom error pages working (currently just to handle 404, page cannot be found). However they don't seem to work in Internet Explorer. All of the default Tomcat

RE: Custom error pages Internet Explorer

2003-06-11 Thread Tim Robinson
it on the server. --- Tim -Original Message- From: Lee W [mailto:[EMAIL PROTECTED] Sent: 11 June 2003 14:29 To: [EMAIL PROTECTED] Subject: Custom error pages Internet Explorer Hi, I have just started learning JSP Tomcat so please be gentle. I am currently designing a webapp

Re: Custom error pages Internet Explorer

2003-06-11 Thread Michael Duffy
custom message in not-found.jsp. HTH - MOD --- Lee W [EMAIL PROTECTED] wrote: Hi, I have just started learning JSP Tomcat so please be gentle. I am currently designing a webapp and was trying to get some custom error pages working (currently just to handle 404, page cannot be found

Re: Custom error pages Internet Explorer

2003-06-11 Thread Lee W
Michael Duffy wrote: Hi Lee, Do you have error-page tags in your web.xml? You can tell Tomcat to send 404 errors to a JSP of your choosing by adding something like this to web.xml, after welcome-file-list and before taglib: error-page error-code404/error-code location/not-found.jsp/location

Re: Custom error pages Internet Explorer

2003-06-11 Thread Lee W
What is going on with my typing today :- Do you think to is any OK was to have done it or could it cause problems ? Should have read as: Do you think is was OK to have done it like this or could it cause problems ? - To

Re: Custom error pages Internet Explorer

2003-06-11 Thread Michael Duffy
Nope, perfectly okay. One other thing you might want to know: if your JSPs use an error page, your servlet will have to set the request attribute javax.servlet.jsp.jspException in your doPost(), like this: try { // useful stuff here } catch (Exception e) { servletContext.log(e.getMessage(), e);

Custom error pages and BASIC authorization

2002-08-09 Thread Joe Tomcat
Hello fellow Tomcat users. I am trying to set up a very simple web app that has only static html pages. I want it to use BASIC authorization for just a few users. Simple stuff, right? I added the user and role that I wanted in the tomcat-users.xml file, and then I put this in the web.xml file

custom error-pages

2002-07-10 Thread Daniel Collins
I was playing around with creating some custom error pages for a web application (servlets and JSPs) and I'm not sure if what I am seeing is correct or not. I've had a look around the archives but can't see anything about this particular problem, but apologies if someone's already asked

RE: custom error-pages

2002-07-10 Thread Ricky Leung
formatted page. -Original Message- From: Daniel Collins [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 10:36 AM To: [EMAIL PROTECTED] Subject: custom error-pages I was playing around with creating some custom error pages for a web application (servlets and JSPs

Error on startup when using custom error pages

2002-07-02 Thread Sefton, Adam
Hi, I'm trying to pick up error codes and display custom error pages. The one I'm working with currently is the 401 error in the case of failed logins. I've added the following in my /conf/web.xml: error-page error-code401/error-code locationerror.html/location /error-page

RE: Error on startup when using custom error pages

2002-07-02 Thread Sefton, Adam
Users List' Subject: Error on startup when using custom error pages Hi, I'm trying to pick up error codes and display custom error pages. The one I'm working with currently is the 401 error in the case of failed logins. I've added the following in my /conf/web.xml: error-page error

Custom error Pages

2001-02-12 Thread Yogesh Agarwal
Hi All: I have set up tomcat/apache to host my web application. Now I want to throw custom error pages for 404/500 errors. I read in the archives that error-code tag in web.xml will work. I tried the same but it doesn't work. If somebody has faced the similar situation and come up

Re: Custom error pages from servlets?

2001-02-08 Thread Kief Morris
Les Hartzman typed the following on 04:36 PM 2/7/2001 -0800 Using Tomcat 3.2.1, is it possible to define/display custom error pages based on errors that occur within a servlet? No JSPs are used; this is a servlet/EJB environment. I've seen in the spec for web.xml that there is an error-page

Custom Error Pages ... URGENT... Frustrated!!

2001-02-08 Thread Dan Sojka
Title: Custom Error Pages ... URGENT... Frustrated!! I have posted this problem a few times. I want to simply catch a 404 in tomcat and have and bring up a custom jsp page. I have tried in web xml - error-page error-code404/error-code location/404.jsp/location /error-page I have tried

Custom Error Pages ... URGENT... Frustrated!!

2001-02-08 Thread Dan Sojka
Title: Custom Error Pages ... URGENT... Frustrated!! I have posted this problem a few times. I want to simply catch a 404 in tomcat and have and bring up a custom jsp page. I have tried in web xml - error-page error-code404/error-code location/404.jsp/location /error-page I have tried

Custom Error Pages ... URGENT... Frustrated!

2001-02-08 Thread Dan Sojka
Title: Custom Error Pages ... URGENT... Frustrated! I have posted this problem a few times. I want to simply catch a 404 in tomcat and have and bring up a custom jsp page. I have tried in web xml - error-page error-code404/error-code location/404.jsp/location /error-page I have tried

RE: Custom Error Pages ... URGENT... Frustrated!

2001-02-08 Thread Ignacio J. Ortega
PROTECTED]] Enviado el: jueves 8 de febrero de 2001 23:52 Para: '[EMAIL PROTECTED]' Asunto: Custom Error Pages ... URGENT... Frustrated! I have posted this problem a few times. I want to simply catch a 404 in tomcat and have and bring up a custom jsp page. I have tried in web xml - error-page error

RE: Custom Error Pages ... URGENT... Frustrated!

2001-02-08 Thread Ignacio J. Ortega
Error Pages ... URGENT... Frustrated! I have posted this problem a few times. I want to simply catch a 404 in tomcat and have and bring up a custom jsp page. I have tried in web xml - error-page error-code404/error-code location/404.jsp/location /error-page I have tried pointing the location

Custom error pages from servlets?

2001-02-07 Thread Les Hartzman
Using Tomcat 3.2.1, is it possible to define/display custom error pages based on errors that occur within a servlet? No JSPs are used; this is a servlet/EJB environment. I've seen in the spec for web.xml that there is an error-page element for either a general error code or an exception type

Re: Custom error pages from servlets?

2001-02-07 Thread Pete Ehli
catch try blocks - out.println(Your custom error message!); -- Pete -- - Original Message - From: "Les Hartzman" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 07, 2001 4:36 PM Subject: Custom error pages from servlets? Using Tomcat 3.2.1, is it possible

Re: AW: Custom error pages!!

2000-12-15 Thread Kief Morris
Scott Jones typed the following on 12:33 14/12/2000 -0800 error-page error-code500/error-code location/errors/error.jsp/location /error-page However, this doesn't seem to work at all -- an error in a Cocoon page will just give me a plain-ol' stack dump like I normally get

Re: AW: Custom error pages!!

2000-12-15 Thread Pankaj Bhagat
has solved my problem as the deadline is near but feel its not a good solution. cheers Pankaj - Original Message - From: "Kief Morris" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, December 15, 2000 12:31 PM Subject: Re: AW: Custom error pages!! Scott Jones typed the foll

RE: AW: Custom error pages!!

2000-12-15 Thread Alexander Telnikoff
Has anybody sucessfuly configured Tomcat with Apache/mod_jk to use different instances of Tomcat for different virtual domains? I do everything as per documentation, i.e. start two versions of Tomcat specifying different server.xml files, but get error "address already in use" when it comes to

Re: AW: Custom error pages!!

2000-12-14 Thread Scott Jones
code to be completely robust, so no errors will ever occur (this is just for completeness)... ;) Thanks! -Scott - Original Message - From: "Catherine Jung" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 12, 2000 8:04 AM Subject: Re: AW: Custom error pages!!

Custom error pages!!

2000-12-12 Thread Pankaj Bhagat
Hi ppl: I had posted a very simple query..but had not received any comments. So am i the only unlucky person who's stuck on this simple problem. Any suggestions are welcome plz. I want Custom error pages, in my application, the two solutions i have is to use the "ErrorDoc

Re: Custom error pages!!

2000-12-12 Thread Kief Morris
Pankaj Bhagat typed the following on 11:17 12/12/2000 +0100 I want Custom error pages, in my application, the two solutions i have is to use the "ErrorDocument" directive in Apache or to use the "error-pages" xml element while deploying my servlet in Tomcat (please note th

Re: Custom error pages!!

2000-12-12 Thread Kief Morris
Pankaj Bhagat typed the following on 11:58 12/12/2000 +0100 So now what i can understand is that it should be Tomcat's problem to intercept any errors occuring in the servlet and then passing me onto the specified url in the deployment descriptor. I believe this only applies to JSP pages. For

AW: Custom error pages!!

2000-12-12 Thread Amrhein, Thomas
, Thomas -Ursprüngliche Nachricht- Von: Pankaj Bhagat [mailto:[EMAIL PROTECTED]] Gesendet am: Dienstag, 12. Dezember 2000 12:59 An: [EMAIL PROTECTED] Betreff: Re: Custom error pages!! Thanks for your response. The solution really sounds good. But just for information, can you comment

Re: Custom error pages!!

2000-12-12 Thread Kief Morris
Pankaj Bhagat typed the following on 12:58 12/12/2000 +0100 But just for information, can you comment on the error-pages tag not working in the deployment descriptor of Tomcat 3.2 I just tried it, it works fine for me. Are you specifying the full names of the exceptions? e.g.

Re: Custom error pages!!

2000-12-12 Thread Pankaj Bhagat
PM Subject: Re: Custom error pages!! Pankaj Bhagat typed the following on 12:58 12/12/2000 +0100 But just for information, can you comment on the error-pages tag not working in the deployment descriptor of Tomcat 3.2 I just tried it, it works fine for me. Are you specifying the

Re: Custom error pages!!

2000-12-12 Thread Kief Morris
Pankaj Bhagat typed the following on 14:58 12/12/2000 +0100 The only difference in what i was trying previously and this one is that for an error page i was going to an html file whereas now its working if i redirect to a jsp. Aha, someone else just pointed this out. Dont know

Re: Custom error pages!!

2000-12-12 Thread Pankaj Bhagat
ot; [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 12, 2000 3:41 PM Subject: Re: Custom error pages!! Pankaj Bhagat typed the following on 14:58 12/12/2000 +0100 The only difference in what i was trying previously and this one is that for an error page i was going to an html fi

Re: Custom error pages!!

2000-12-12 Thread Shahed Ali
I dont know about the specs, but I think all errorpages need the iserrorpage = true page directive. So that could mean that they should be .jsp (?) Shahed

Re: Custom error pages!!

2000-12-12 Thread Kief Morris
Shahed Ali typed the following on 08:49 12/12/2000 -0600 I dont know about the specs, but I think all errorpages need the iserrorpage = true page directive. So that could mean that they should be .jsp (?) The spec doesn't seem to say this ... I believe that's just needed if you want the

Re: Custom error pages!!

2000-12-12 Thread Catherine Jung
Hiya, n cheers. v have found a bug..hahahaha Boy mailing lists have a short memory!, I'd been having trouble with this last week and posted about it, on tomcat-dev too, but to no avail. so guess a lot of ppl. like us wont have to waste their time on it grin If my

Re: Custom error pages!!

2000-12-12 Thread Alexandre Simonin
Catherine, I'm new to this mailing-list and reviewing the WELCOME notice, I found no trace related to the database you're refering to. Can you please provide me with the directions? Thanks in advance, Alexandre Catherine Jung wrote: Hiya, n cheers. v have found a

Re: Custom error pages!!

2000-12-12 Thread Catherine Jung
Hiya, No problem, if you go to the Tomcat site: jakarta.apache.org/tomcat/index.html it has links to both the bug report/search site: http://znutar.cortexity.com/BugRatViewer/ and the searchable mailing list archives: http://mikal.org/interests/java/tomcat/index.html Hope it helps,

Re: Custom error pages!!

2000-12-12 Thread Kief Morris
Catherine Jung typed the following on 16:18 12/12/2000 + Boy mailing lists have a short memory!, I'd been having trouble with this last week and posted about it, on tomcat-dev too, but to no avail. No-one seems to check the archives/bug database these days :) Actually I did look, but I