On 16/10/2023 23:04, Mcalexander, Jon J. wrote:
Good afternoon all!
I have a question around the error valve. It mentions that if you want you can
supply custom error pages that need to be relative to $CATALINA_BASE. My
question is, just where should this go? Do you typically create an errors
directory under $CATALINA_BASE and put those there?
You can do that. There is no fixed location for these. It is whatever
makes most sense for you.
Same with the <error-page> element you can add to the web.xml. Can this be set
in the web.xml that is in the conf folder and does the location of the error.jsp or
whatever page, have to relative to $CATALINA_BASE?
No. These are per web application so must be relative to the root of the
web application. i.e. they need to be in your WAR / exploded directory.
They could also be Servlets if the appropriate mapping is also present.
You probably don't want to put these in $CATALINA_BASE/conf/web.xml.
Mark
This is the one thing I have struggled with this afternoon, is nothing tells
you just WHERE to put the error.jsp or whatever custom file.
Thank you!!! I appreciate everyone who helps!
Dream * Excel * Explore * Inspire
Jon McAlexander
Senior Infrastructure Engineer
Asst. Vice President
He/His
Middleware Product Engineering
Enterprise CIO | EAS | Middleware | Infrastructure Solutions
8080 Cobblestone Rd | Urbandale, IA 50322
MAC: F4469-010
Tel 515-988-2508 | Cell 515-988-2508
jonmcalexan...@wellsfargo.com<mailto:jonmcalexan...@wellsfargo.com>
This message may contain confidential and/or privileged information. If you are
not the addressee or authorized to receive this for the addressee, you must not
use, copy, disclose, or take any action based on this message or any
information herein. If you have received this message in error, please advise
the sender immediately by reply e-mail and delete this message. Thank you for
your cooperation.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org