Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 63042 invoked from network); 16 May 2007 10:27:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 May 2007 10:27:20 -0000 Received: (qmail 37811 invoked by uid 500); 16 May 2007 10:27:12 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 37789 invoked by uid 500); 16 May 2007 10:27:12 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 37778 invoked by uid 99); 16 May 2007 10:27:12 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 May 2007 03:27:12 -0700 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=HTML_10_20,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of qayyum4@gmail.com designates 209.85.132.245 as permitted sender) Received: from [209.85.132.245] (HELO an-out-0708.google.com) (209.85.132.245) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 May 2007 03:27:05 -0700 Received: by an-out-0708.google.com with SMTP id b38so30725ana for ; Wed, 16 May 2007 03:26:44 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=nmIu5mhQT1fJN7Gy4eoNNHDTcU2GydLH0ZGfHfpV0COLm93Q7mhAWAjpNjzGjSLXNM6W7RQs4RZY2liwH/JDxBh/mKIbHQflmbWyBF5rvpv6ZcHxBEfFGYjNY89UE/IGsfp5fhldXMt+3Rv0zEoadaNymEL9V34n1X3ABnYHcxM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=ri1mbriK8ldeZ355huc8DlkNNHm9NCRo7U5eXybjAn1af/fhNdO2ixlUV87Jnjd2vwhwxBNFBnrVo1UTrd8DaMV1nNJqj5tScZmpxSRX1M6o95t8/Hf7VSpchq+c6N+B/BaCJmjK9sR8/+ZHsFmGJcThzD5awnPufWkYBd83Mdg= Received: by 10.100.141.13 with SMTP id o13mr5991699and.1179311204743; Wed, 16 May 2007 03:26:44 -0700 (PDT) Received: by 10.100.111.2 with HTTP; Wed, 16 May 2007 03:26:44 -0700 (PDT) Message-ID: <8df9f45d0705160326w13577fb4ne2b6c830c456e59e@mail.gmail.com> Date: Wed, 16 May 2007 15:56:44 +0530 From: "Abdul Qayyum" To: users@tomcat.apache.org Subject: displaying customized error page in tomcat 5.5.12 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_20103_6264563.1179311204694" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_20103_6264563.1179311204694 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all, I found that while we are updating our application, the application is not known to tomcat, untill it is completed. So tomcat sends 503 page as resource not found. I want to know is virtual hosting is the right way to deal with this issue.? Or can this be done using customised error pages. Is it possible to customise the 503 / 404 page, so that, for any resource not found issue, tomcat displays the customised page. That is if the web application is not presents in tomcats web apps directory, tomcat should display this customised error page. I found that usually custom error pages are written for a specific web application. If some error occurs in that web application, the error page is displayed using that web applications web.xml. I want to extend it to whole tomcat. I have added the following code in tomcat5.5.12/conf/web.xml after welcome file list tab 404 /error404.html Now when I try for a resource that is not available in my tomcat, the result is a blank page instead of 404/- default page or my customised error404.html. That means the code worked fine but the error404.html is not found at the right place. I have tried to paste the simple html file that many different folders like in tomcat home itself, then in webapps, server, server/webapps/, server/webapps/manager, etc. But the it always returns blank page. For simplicity I have used single line to display the error page. the code in error404.html is as follows: 404 resource not found This is 404 error page Can any one please tell where am I going wrong. ------=_Part_20103_6264563.1179311204694--