File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Where is the default error folder in a linux Tomcat 7 installation? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Where is the default error folder in a linux Tomcat 7 installation?" Watch "Where is the default error folder in a linux Tomcat 7 installation?" New topic
Author

Where is the default error folder in a linux Tomcat 7 installation?

John Golap
Greenhorn

Joined: Feb 26, 2013
Posts: 7
Hello

I want to manually change the 404 page in a default linux Tomcat 7 installation but I cannot find the errors folder. Where is it?
Saif Asif
Ranch Hand

Joined: Aug 11, 2011
Posts: 440

Hello John Golap,

There is no errors folder in any tomcat directory . You can however specify a default error page for the tomcat server. You specify it in the $CATALINA_HOME/conf/web.xml file as follows



Muhammad Saif Asif Mirza
OCJA(5/6) OCJP(6) OCJWCD(6)
John Golap
Greenhorn

Joined: Feb 26, 2013
Posts: 7
Saif Asif wrote:Hello John Golap,

There is no errors folder in any tomcat directory . You can however specify a default error page for the tomcat server. You specify it in the $CATALINA_HOME/conf/web.xml file as follows


Where is the page that is shown by default when a 404 occurs in Tomcat? That code has to be somewhere...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Where is the default error folder in a linux Tomcat 7 installation?