Global Default Error Page
How can I create a custom 404 error page for the case where the URL maps to a non-existent webapp? I know how to do this for an individual webapp, but can't figure put where the global default error page comes from. -- Jonathan Rosenberg Founder Executive Director Tabby's Place, a Cat Sanctuary - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Global Default Error Page
Just a guess, but maybe by adding it to $CATALINA_HOME/webapps/ROOT/WEB-INF/web.xml and putting the error page in $CATALINA_HOME/webapps/ROOT On Tue, Mar 22, 2011 at 10:54 AM, Jonathan Rosenberg shmol...@gmail.comwrote: How can I create a custom 404 error page for the case where the URL maps to a non-existent webapp? I know how to do this for an individual webapp, but can't figure put where the global default error page comes from. -- Hell hath no limits, nor is circumscrib'd In one self-place; but where we are is hell, And where hell is, there must we ever be --Christopher Marlowe, *Doctor Faustus* (v, 121-24)
RE: Global Default Error Page
From: Jonathan Rosenberg [mailto:shmol...@gmail.com] Subject: Global Default Error Page How can I create a custom 404 error page for the case where the URL maps to a non-existent webapp? *All* URLs map to a webapp, even if it's the default (ROOT) one. Put your custom error page in ROOT. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Global Default Error Page
On 22/03/2011 15:07, Caldarale, Charles R wrote: From: Jonathan Rosenberg [mailto:shmol...@gmail.com] Subject: Global Default Error Page How can I create a custom 404 error page for the case where the URL maps to a non-existent webapp? *All* URLs map to a webapp, even if it's the default (ROOT) one. Put your custom error page in ROOT. That is the simple option. You can also use a custom error reporting valve ( see errorReportValveClass in http://tomcat.apache.org/tomcat-7.0-doc/config/host.html). It has the advantage of applying to all web applications deployed in a host but is more complicated to set up. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Global Default Error Page
Excellent. Thanks. I configured this error page in conf/web.xml. Seemed like this made the most sense. -- Jonathan Rosenberg Founder Executive Director Tabby's Place, a Cat Sanctuary On Tue, Mar 22, 2011 at 11:10 AM, Mark Thomas ma...@apache.org wrote: On 22/03/2011 15:07, Caldarale, Charles R wrote: From: Jonathan Rosenberg [mailto:shmol...@gmail.com] Subject: Global Default Error Page How can I create a custom 404 error page for the case where the URL maps to a non-existent webapp? *All* URLs map to a webapp, even if it's the default (ROOT) one. Put your custom error page in ROOT. That is the simple option. You can also use a custom error reporting valve ( see errorReportValveClass in http://tomcat.apache.org/tomcat-7.0-doc/config/host.html). It has the advantage of applying to all web applications deployed in a host but is more complicated to set up. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Global Default Error Page
From: shmol...@gmail.com [mailto:shmol...@gmail.com] On Behalf Of Jonathan Rosenberg Subject: Re: Global Default Error Page I configured this error page in conf/web.xml. Seemed like this made the most sense. Not sure about that. Whatever you put in conf/web.xml applies to *all* webapps, so paths to error pages and the like must be meaningful in each context - which isn't likely. Better to put it in ROOT/WEB-INF/web.xml. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org