Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 63939 invoked from network); 1 Mar 2005 14:39:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Mar 2005 14:39:57 -0000 Received: (qmail 16717 invoked by uid 500); 1 Mar 2005 14:39:36 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 16697 invoked by uid 500); 1 Mar 2005 14:39:35 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 16683 invoked by uid 99); 1 Mar 2005 14:39:35 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from postoffice9.mail.cornell.edu (HELO postoffice9.mail.cornell.edu) (132.236.56.39) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 01 Mar 2005 06:39:34 -0800 Received: from [128.253.38.244] (defiant.ento.cornell.edu [128.253.38.244]) by postoffice9.mail.cornell.edu (8.12.10/8.12.6) with ESMTP id j21EdVtW018116 for ; Tue, 1 Mar 2005 09:39:31 -0500 (EST) Message-ID: <42247EA2.4080602@cornell.edu> Date: Tue, 01 Mar 2005 09:39:30 -0500 From: David Smith User-Agent: Mozilla Thunderbird 1.0 (Macintosh/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: error-page directive References: <5DA47C36E7C8004A994D19FC6E77DBE117F562@snowdrop.shu.ac.uk> In-Reply-To: <5DA47C36E7C8004A994D19FC6E77DBE117F562@snowdrop.shu.ac.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N For good docs, I've found the servlet spec an excellent place to start. As a foot note though, Tomcat seems switches between servlet spec 2.3 and 2.4 depending on how the web-app node is defined in web.xml. If you declare it against the 2.3 DTD, the 2.3 spec is used. If you use the 2.4 schema, 2.4 spec is adhered to. See the spec for how each is declared in web.xml. Servlet spec 2.3: http://www.jcp.org/en/jsr/detail?id=53 Servlet spec 2.4: http://www.jcp.org/en/jsr/detail?id=154 --David Graba, Jan wrote: >Hi, again. > >I don't really think it makes any difference to this application, but I'm using J2SE, not J2EE. Though I am, of course, using a >web.xml file for my web application, nothing in this file need reference the error page. At least, that was the case with version >2.3 of the servlet API under Tomcat 4.1, since the error page worked faultlessly under that. Is 2.4 more restrictive? Is an >error-page tag now mandatory? Is this change documented? Since I currently have only servlet and servlet-mapping tags in my >web.xml, can I simply place the tag where I wish? > >Sorry for the proliferation of fairly trivial questions. > >Thanks in anticipation. > >Cheers. >Jan > >-----Original Message----- >From: David Smith [mailto:dns4@cornell.edu] >Sent: 01 March 2005 13:27 >To: Tomcat Users List >Subject: Re: error-page directive > > >The order matters. It's a requirement that comes from validating the >web.xml against a DTD -- not anything that Tomcat itself requires. In >the servlet 2.4 spec, they moved to valdating against a schema so order >no longer matters. > >--David > >Ian van der Neut wrote: > > > >>On Tue, 1 Mar 2005 10:41:36 +0100, Ian van der Neut >>wrote: >> >> >> >> >>>On Tue, 01 Mar 2005 10:32:42 +0100, Trond G. Ziarkowski >>> wrote: >>> >>> >>> >>> >>>>Hi, >>>> >>>>Have you tried to move your the error-page directive to between the >>>> and directives. Seem to remember this >>>>happening to me some time ago as well. >>>> >>>> >>>> >>>> >>>That seems to get rid of the message, but it doesn't seem to honour >>>the directive, because I still get tomcats default exception >>>stacktrace page. >>> >>> >>> >>> >>The fact that it is not honoured seems to be because of a problem in >>the apperror.jsp file. Moving the error-page directive before the >>taglib directive solves the problem indeed. >> >>Just curious, does order matter in web.xml? If so, where is this >>documented? Or is this just a bug? >> >>Thank you very much, >> >>Ian. >> >>--------------------------------------------------------------------- >>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 > > > --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org