Exercises, examples and other material relating to training module A652. This topic is presented on public courses Deploying Apache and Tomcat
, Deploying Java Applications on Linux / Unix
Tomcat is a container in which you can run Servlets and JSPs on a Web Server. This module covers the sourcing, installation and initial testing of Tomcat.
Related technical and longer articlesRunning CGI scripts in Apache TomcatRunning SSI (Server Side Include) scripts in Apache Tomcat
|Articles and tips on this subject||updated|
|3819||Packing a tar, jar or war file - best practise|
Scenario - a contact emails you a [tjw]ar file containing - let's say - 20 files within it. You unpack it in a directory that already has 15 files in it ... and you end up with 30 file. Hmm - not what you might have expected; you were expecting 35 files in total.
What went wrong? Five of the files ...
|2088||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:
I added the following to by web.xml:
|1550||Java (JSP and Servlet examples) live on our server|
On our Java Programming for the Web and Deploying Apache httpd and Tomcat courses, we provide a ready-written demonstration that includes simple web pages, a basic JSP, JSPs with tag libraries, and a couple of Servlets - with some calling up data from a MySQL database.
I have uploaded the examples so ...
|1049||Java 6, Apache Tomcat 6.|
I greet new releases of software that we teach with a joy that the software is moving forward, but with an element of trepidation - "what's changed" I wonder. Although programming languages rarely change in that they render the old code incompatible, thre are often changes in default configuration ...
|837||Tomcat - Shutdown port|
On a new installation of Tomcat (default config files), you'll notice that your server.xml file is set up with a shutdown port of 8005, and shutdown="SHUTDOWN". What does this mean?
It means that anyone who contacts the server locally on port 8005 and send it the words SHUTDOWN can cause Tomcat to ...
Examples from our training material
PicturesIntegration of Tomcat into Linux
Some modules are available for download
as a sample of our material or under an Open Training Notes License
for free download from [here]
Topics covered in this module
Sources of Tomcat.
Prerequisite - Java Software Development Kit.
Download and install (of Tomcat) from jakarta.apache.org, binary.
Download and install from jakarta.apache.org, source.
Pre-requisite - Ant.
Starting and initial testing of Tomcat from jakarta.apache.org.
Under Linux and Unix.
Using SunŐs Web Server DeveloperŐs Pack.
Installing Tomcat when downloaded from java.sun.com.
Initial testing of Tomcat.
If you are looking for a complete course and not just a information on a single subject, visit our Listing and schedule
Well House Consultants specialise in training courses in
Linux and LAMP
. We run
throughout the UK (and beyond for longer courses), and
at our training centre in Melksham, Wiltshire, England.
It's surprisingly cost effective to come on our public courses -
even if you live in a different
country or continent to us
We have a technical library of over 700 books on the subjects on which we teach.
These books are available for reference at our training centre.