Tomcatのデフォルトのエラー画面を差し替えるには、TOMCAT_HOME/conf/web.xmlにタグを書くのが簡単。 <error-page> <error-code>404</error-code> <location>/error/404.html</location> </error-page> ここで注意すべきは、locationの値は存在するコンテキストについてはそのコンテキスト相対パス、存在しないコンテキストについてはROOTコンテキスト相対パスであるということ。つまり/error/404.htmlと書いた場合でhttp://localhost:8080/exist/notFoundURLにアクセスした場合はTOMCAT_HOME/webapps/exist/error/404.htmlがエラー画面として表示され、http://localhost:8080/notExi