You can add this to the $CATALINA_HOME/conf/web.xml
<error-page>
<error-code>404</error-code>
<location>/error/404.html</location>
</error-page>
And add a webapp that has the page and will answer to the URL under <location>
More Related Contents:
- How to set the context path of a web application in Tomcat 7.0
- How should I connect to JDBC database / datasource in a servlet based application?
- How to change the ROOT application?
- How to deploy EJB based application on Tomcat
- java.lang.IllegalArgumentException: Invalid in servlet mapping
- How to run different apps on single Tomcat instance behind different ports?
- Adding an external directory to Tomcat classpath
- How can I specify system properties in Tomcat configuration on startup?
- IntelliJ and Tomcat….changed files are not automatically recognized by Tomcat
- Absolute path & Relative Path
- Get ServletContext in JAX-RS resource
- Add JVM options in Tomcat
- Tomcat Server/Client Self-Signed SSL Certificate
- Tomcat 8 Maven Plugin for Java 8
- org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 15 – Tomcat 7, JDK incompatibilty? [duplicate]
- Increase Tomcat memory settings [duplicate]
- Tomcat manager remote deploy script
- Custom java.util.logging Handler in tomcat
- Is Tomcat running?
- 403 Access Denied on Tomcat 8 Manager App without prompting for user/password
- Is security-constraint configuration for Tomcat mandatory?
- How do I update a Tomcat webapp without restarting the entire service?
- Retrieve current Windows user in Java EE web application for Single Sign On purposes
- Environment/system variables in server.xml
- Is there a way to enforce a deployment order in tomcat6?
- Tomcat logging confusion
- How to set the max size of upload file
- What is the difference between Tomcat’s BIO Connector and NIO Connector?
- How can I map multiple contexts to the same war file in Tomcat?
- how to enable hot deploy in tomcat