Home Accessibility Courses Twitter The Mouth Facebook Resources Site Map About Us Contact
 
Python, Lua, Tcl, C and C++ training - public course schedule [here]
Private courses on your site - see [here]
Please ask about maintenance training for Perl, PHP, Java, Ruby, MySQL and Linux / Tomcat systems
 
Changing the 404 - file not found - page in Tomcat

If you're running an Apache Tomcat web server, how do you customise your error documents? Add an <error-page> tag set into your web.xml file

To change this:

Error page 404 / standard / Tomcat


into this:

Error page 404 / changed / Tomcat



I added the following to by web.xml:

<error-page>
<error-code>404</error-code>
<location>/broken.html</location>
</error-page>


and put the following broken.html file into my web application:

<head>
<title>Sorry - no such page</title>
</head>
<body>
<h1>Oops - I don't have that page</h1>
This is our "error 404" page. Please
visit <a href=http://www.wellho.net>our
home page</a> to learn about our courses.
</body>


Do you want to know how to increase the amount of memory that the JVM gets given in Tomcat? That's in another post - here - which I promised today's delegates I would mention for them!
(written 2009-03-18, updated 2009-03-17)

 
Associated topics are indexed as below, or enter http://melksh.am/nnnn for individual articles
A652 - Web Application Deployment - Tomcat -Sourcing, Installing and Initial Testing
  [3819] Packing a tar, jar or war file - best practise - (2012-07-26)
  [1550] Java (JSP and Servlet examples) live on our server - (2008-02-23)
  [1049] Java 6, Apache Tomcat 6. - (2007-01-21)
  [837] Tomcat - Shutdown port - (2006-08-18)

A653 - Web Application Deployment - Tomcat - Configuring Web Applications
  [3996] Tips on Tomcat - moving applications around - (2013-02-05)
  [3044] Changing a Servlet - more that just editing and compiling - (2010-11-12)
  [1909] javax.servlet cannot be resolved - how to solve - (2008-11-26)
  [1564] Default file (MiMe types) for Apache httpd and Apache Tomcat - (2008-03-04)
  [1552] Extra public classes in deploying Apache httpd and Tomcat - (2008-02-24)
  [1192] What are WEB-INF and META-INF directories? - (2007-05-18)
  [1082] Straight from the .jar - (2007-02-16)
  [1074] Java beans and classes, .war and .jar files - (2007-02-10)
  [1006] Apache httpd and Apache Tomcat together tips - (2006-12-24)
  [754] tar, jar, war, ear, sar files - (2006-06-10)
  [479] New servlet from old - (2005-10-28)
  [465] Changing Tomcat's web.xml and reloading a web application - (2005-10-15)


Back to
Comparing Java Courses - what can we do?
Previous and next
or
Horse's mouth home
Forward to
The Longest Day - Wednesday, 28th September
Some other Articles
Tracking difficult bugs, the programmer / customer relationship
C, C++ and C# ... Java and JavaScript
Melksham to Georgia
The Longest Day - Wednesday, 28th September
Changing the 404 - file not found - page in Tomcat
Comparing Java Courses - what can we do?
C Programming v Learning to Program in C. Which course?
MySQL - licensing issues, even with using the name
Books and distance learning from Well House Consultants?
Do you support a decent train service? Please sign up!
4755 posts, page by page
Link to page ... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96 at 50 posts per page


This is a page archived from The Horse's Mouth at http://www.wellho.net/horse/ - the diary and writings of Graham Ellis. Every attempt was made to provide current information at the time the page was written, but things do move forward in our business - new software releases, price changes, new techniques. Please check back via our main site for current courses, prices, versions, etc - any mention of a price in "The Horse's Mouth" cannot be taken as an offer to supply at that price.

Link to Ezine home page (for reading).
Link to Blogging home page (to add comments).

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2017: 404 The Spa • Melksham, Wiltshire • United Kingdom • SN12 6QL
PH: 01144 1225 708225 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho

PAGE: http://www.wellho.net/mouth/2088_Cha ... omcat.html • PAGE BUILT: Sat May 27 16:49:10 2017 • BUILD SYSTEM: WomanWithCat