Exercises, examples and other material relating to training module A654. This topic is presented on public courses
Deploying Apache and Tomcat,
Deploying Java Applications on Linux / Unix
In this module, you'll learn how to automate the start-up and shutdown of Tomcat, how the configurations files work, and how to use the Admin and Manager applications to control users, roles, resources and individual web applications.
Articles and tips on this subject | updated |
3043 | Gathering information - logging - with log4j. First steps. Generating information about processes as they run - who has visited a server, where orders have been received from, noting which requests have been slow - are all vital elements of debugging and monitoring processes. And this information gathering all comes under the title of "logging".
Anyone who's ... | 2010-11-12 |
2652 | Reading and writing cookies in Java Servlets and JSPs Do you want to check (and perhaps set) cookies within a Java Servlet? I was looking around for good, straightforward examples today but found that most of the published code is only snippets rather than complete examples, or is over-complex for what should be a simple demo.
First - do you really want ... | 2010-02-26 |
2163 | CATALINA_OPTS v JAVA_OPTS - What is the difference? There are two environment variables - CATALINA_OPTS and JAVA_OPTS - which are both used in the catalina.sh startup and shutdown script for Tomcat. They are described in comments within that file as:
(optional) Java runtime options used when the "start", "stop" or "run" command is executed [JAVA_OPTS]
and
(optional) ... | 2009-05-09 |
2061 | Tomcat 6 - Annotated Sample Configuration Files When you download Tomcat, it's pretty much "plug and play" ... once you've got your PATH and JRE_HOME environment variables set correctly. However, it's very unlikely that the default configuration is what you want, or is secure in the way you would like it to be. So you'll require to change the ... | 2009-03-01 |
2039 | The Invoker Who, what or where is the Invoker? There are web sites that have a lot of pages on them, none of which is served up all that often, and there are other web sites which only host a few web applications,each of which is run in a container service such as Catalina within Tomcat. In the first case, the web ... | 2009-02-15 |
1994 | tomcat-users.xml; what a difference a space made Product: Apache Tomcat release 6.0.something
Symptom: After some fine tuning of the configuration files, a working installation was no longer working ... requests for web pages resulted in the browser hanging and waiting, in perpituity it seemed, for a response. In other words, the connection was being ... | 2009-01-16 |
914 | A practical example of roles As I drove south from Scotland this morning, I was listening to the radio; an increasingly rare chance to catch up with the in depth news and review programs on Radio 4 that provide a more thorough background to history and events than I feel I get from the snippets of TV that I watch. A program of ... | 2009-01-01 |
907 | Browser -> httpd -> Tomcat -> MySQL. Restarting. I've just completed a course covering the installation and configuration of Apache httpd, Apache Tomcat and MySQL. Complete with a demonstration that has the newly installed systems visited from various browsers, talking to httpd, which talks on to Tomcat, which talks on in turn to MySQL. The MySQL ... | 2009-01-01 |
1943 | Port and Glasses I don't expect you've seen my picture with TCP port numbers coming out of my head very often, have you? In fact this may be the first picture of me in glasses that I've published here. That's not a vanity thing - just that it's only been over the course of this year that I've had to join the majority ... | 2008-12-14 |
1762 | WEB-INF (Tomcat) and .htaccess (httpd) Apache Tomcat's WEB-INF directory is rather like Apache httpd's ".htxxxxx" files - they both contain data which is within the document directories, but is configuration data that's not directly visible to the web.
WEB-INF/web.xml (Tomcat) contains the extra configuration information for the current ... | 2008-08-20 |
1553 | Automatic startup and shutdown of Tomcat Setting up Tomcat to shutdown and startup automatically when the Linux / Unix server restarts. The following is for Fedora Linux, with Tomcat installed at /usr/local/tomcat (probably via a symlink as taught on our deployment course). Server configuration - assuming a default run state of 3.
1. Copy ... | 2008-02-24 |
1503 | Web page (http) error status 405 Running his first Java Servlet today, one of my delegates reported an HTTP status 405 from his code when he tried to browse to it. A new one on me ... I am used to a good number of other return codes, but hadn't seen this before.
It turns out that the cause was the lack of an appropriate doGet method ... | 2008-01-14 |
1370 | Apache Tomcat Performance Tuning Have you noticed what a lack of information there is in the printed material (or on the web too, come to that!) on performance tuning Apache Tomcat? The subject came up briefly during the course that I completed yesterday, when we looked at the changing the heap sizes and number of threads, and selecting ... | 2007-10-02 |
1351 | Compressing web pages sent out from server. Is it worth it? Web servers can compress .html and similar files before they send them out - a great way to keep traffic volume down where bandwidth is more of a consideration than processor power. But what proportion of browsers can accept compressed data? That's a darned good question which I was asked on today's ... | 2007-09-14 |
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 ... | 2006-08-18 |
Examples from our training material
Pictures
Private course - deploying Java applications with Tomcat
Background information
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
Switching Tomcat to another (OS) user account.
Automatic start-up and shutdown.
On Windows.
The server.xml configuration file.
Running Tomcat as your only (or main) web server.
The Manager and Admin application.
The Manager Application.
The Admin Application.
Admin Groups.
Changing TomcatÕs home page.
Tomcat documentation.
Other sources.
Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our
Listing and schedule page.
Well House Consultants specialise in training courses in
Linux and LAMP,
Ruby,
Lua,
Python,
Perl,
PHP, and
MySQL. We run
Private Courses throughout the UK (and beyond for longer courses), and
Public Courses 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.