Skip to main content

Instructor-led training

Tomcat Administration for Linux Training in Spokane Valley, Washington

This Tomcat Administration for Linux course provides a comprehensive overview of the essential aspects of administering Tomcat on Linux systems.

What you'll learn

This Tomcat Administration for Linux course provides a comprehensive overview of the essential aspects of administering Tomcat on Linux systems. The course covers the history of Tomcat, its components, and the Java Enterprise Edition (JEE) technologies it supports. Students will learn how to install and configure Tomcat, manage web applications, and understand the directory structure. The course also delves into advanced topics such as JNDI data sources, JDBC, security, logging, monitoring, performance tuning, and clustering. Throughout the course, students will engage with practical examples and hands-on exercises to reinforce their learning

Private Training for Teams

This course is offered as private, instructor-led training for organizations, onsite in Spokane Valley, Washington or live online. Dates, delivery format, and course content are arranged around your team's requirements.

This course is not currently scheduled as a public class for individual enrollment.

Request Group Training

Prerequisites

None

Course Outline

  1. Tomcat Introduction
    1. History of Tomcat
    2. Version Number and Features
    3. Tomcat Components
      1. Catalina
      2. Jasper
      3. Coyote
    4. JEE Overview
      1. MVC Design Pattern
      2. Servlets/JSP
      3. Directory Structure
      4. JNDI
  2. Installing Tomcat
    1. Download
    2. Installation
    3. Environment Variables
    4. Starting the Server
    5. Verifying Server Operation
    6. Stopping the Server
  3. Tomcat Directory Structure
    1. Batch files in /bin
      1. .exe files
    2. /conf
      1. server.xml
      2. context.xml
      3. web.xml
    3. /logs
    4. /webapps
    5. /lib
    6. /work
    7. /temp
  4. Configuring Tomcat
    1. Role of serverxml
    2. Instance Layout
      1. Server
      2. Service
      3. Virtual Host
      4. Context
    3. serverxml elements
      1. <Server>
      2. <Service>
      3. <Connector>
      4. <Engine>
      5. <Host>
      6. <Context>
      7. <Realm>
      8. <Valve>
  5. Deploying Web Applications
    1. JEE Specification for Web Applications
      1. Servlets and JSP
      2. Model View Controller (MVC) Design Pattern
      3. Directory Structure
      4. web.xml
    2. Document Base
    3. Context and the Document Base
    4. Default Context Descriptor
    5. Placing the Web Application Folders and Files under the Application Base
    6. Deploying a WAR file
    7. AutoDeploy
  6. The Tomcat Manager
    1. /manager Web Application
    2. Managing Web Applications
      1. Deploying
      2. Listing Deployed Applications
      3. Reload Existing Applications
      4. Starting/Stopping
      5. Undeploying
    3. Listing Server Status
    4. Listing Security Roles in the User Database
  7. JNDI Data Sources and JDBC
    1. JNDI
    2. JDBC
      1. Drivers
      2. Data Sources in JDBC 20 and Later
      3. Connection Pooling
    3. Commons Database Connection Pooling
      1. Installation
      2. Guarding against Application Program Failure
      3. Configuration
    4. Data Source Definition
      1. Web Application contextxml
      2. contextxml in /conf
      3. GlobalNamingResources in serverxml
    5. Troubleshooting
  8. Security
    1. Web Application Security
    2. Java SecurityManager
      1. Overview
      2. Standard Permissions
      3. Tomcat Permissions
      4. Starting Tomcat with a Security Manager Using the Default Policy File
    3. Secure Socket Layer (SSL)
      1. Generating a keystore File
      2. Modifications to serverxml for SSL Support in Tomcat
    4. tomcat-usersxml
  9. Logging
    1. Logging Overview
    2. Web Application Logging Techniques
      1. javautillogging
      2. javaxservletServletContext
      3. log4j
  10. Monitoring and Performance Tuning Tomcat
    1. Tomcat
    2. JVM
    3. JMX (Java Management Extensions)
    4. JMX MBeans in Tomcat
      1. Engine
      2. JKMain
      3. String Cache
      4. Server
      5. Users
    5. Configuring Tomcat to use MBeans
    6. Accessing MBeans
      1. jconsole
      2. jVisualVM
      3. PSI Probe
  11. Clustering
    1. Using Clustering for Replication and Load Balancing
    2. Running Multiple Instances of Tomcat
      1. Directory Setup
      2. Port Number Modifications
      3. All to All with DeltaManager
      4. Backup to One Cluster with BackupManager
    3. Enabling Session Replication
      1. Session Persistence Using Shared File System
      2. Session Persistence Using Shared Database
      3. Session Persistence using Shared Database: Database Table
      4. In-memory Replication Using SimpleTcpCluster
    4. Load Balancing Using mod_jk Connector to Apache2x Web Server

What makes Tomcat administration hard to master

Most Tomcat problems come from configuration that interacts across several layers, not from any one setting. The syllabus builds those layers in order.

  • Components and layout first. The course names Catalina (the servlet container), Jasper (JSP) and Coyote (connectors), then walks the directory structure: /conf, /logs, /webapps, /lib, /work and /temp. Knowing which directory owns which concern is what makes later troubleshooting quick.
  • The server.xml hierarchy. Server, Service, Connector, Engine, Host and Context nest, with Realm and Valve elements attached at different levels. A common misconception is that a setting applies globally when it only applies at the level where it was declared.
  • Several ways to deploy. The syllabus covers the document base, default context descriptors, WAR deployment, AutoDeploy and the Tomcat Manager. Each has different rules for where configuration lives and when changes take effect.
  • Resource scoping. JNDI data sources can be defined in an application's context.xml, in context.xml under /conf, or through GlobalNamingResources in server.xml. Choosing the wrong scope is a frequent cause of failures when connection pooling is added.
  • Security as several mechanisms. Realms and tomcat-users.xml, the Java SecurityManager with its permissions, and SSL with a generated keystore are separate controls with separate failure modes.
  • Tuning and clustering last. JMX MBeans, jconsole, jVisualVM and PSI Probe come before session replication (DeltaManager, BackupManager, SimpleTcpCluster) and mod_jk load balancing. Clustering is hard to debug unless you can already observe a single instance.

Who this course suits and what to take around it

The course lists no prerequisites and is a general-level, three-day class. It suits Linux administrators, operations staff and Java developers who are responsible for running servlet/JSP applications. Comfort with the Linux command line and basic Java web concepts will help. The syllabus includes a short JEE overview (MVC, servlets/JSP), so you do not need to be a Java developer.

If you are still building Linux fundamentals, start with the Linux Unix courses and learning guide. The clustering module ends with load balancing through the mod_jk connector to an Apache web server, so Apache Web Server Administration is a natural companion for the front-end half of that setup. Once you can configure instances by hand, ANSIBLE is a logical next step for making multi-instance layouts repeatable.

Illustrative scenarios

The scenarios below are illustrations of how the course material can be applied. They are not descriptions of specific organizations or of the course's lab exercises.

  • Moving an application's database access out of the code. A team might replace hard-coded JDBC connections with a pooled JNDI data source. The work touches the data source definition, context.xml versus GlobalNamingResources, the driver in /lib and the troubleshooting steps for a failed lookup.
  • Hardening an internal service. An operations group might enable SSL by generating a keystore and editing the Connector in server.xml, restrict the /manager application through tomcat-users.xml roles, and run Tomcat under a security manager with the default policy file.
  • Planning for load and failover. A team might run several instances on one host with adjusted port numbers and directory setup. They would compare all-to-all DeltaManager replication with BackupManager, decide between shared file system and shared database session persistence, and put mod_jk in front. They would use JMX and jconsole to see how each choice affects behavior.

AI coding assistants for Tomcat administration

Where they help. AI coding assistants can explain what a Valve or Realm element does, draft a first Resource definition for a data source, sketch a logging configuration, or outline the steps for generating a keystore. They are also useful for summarizing long catalina log output when you are looking for a pattern.

Where they fail. Tomcat configuration is sensitive to the release in use. Attribute names, defaults and connector options differ across Tomcat and connection-pool releases, and an assistant may blend them into a configuration that loads but does not behave as intended. Clustering and session replication are particularly prone to plausible but untested output. Assistants may also suggest convenient but unsafe shortcuts, such as exposing the manager application, loosening permissions or disabling the security manager to clear an error.

How to verify.

  • Check every attribute against the documentation for the exact Tomcat release you run.
  • Apply changes to a scratch instance first and read the startup logs for warnings.
  • Confirm that a data source works through an actual application request, not just a clean startup.
  • Test session replication by stopping one node and checking that sessions survive.
  • Review any security-related change by hand before it goes near production.

Frequently asked questions

What level is this course and are there prerequisites?

It is a general-level, three-day course with no listed prerequisites. Familiarity with the Linux command line and basic web application concepts will make the pace easier.

What does the course cover?

Tomcat components and history, installation, directory structure, server.xml configuration, deploying web applications and using the Manager, JNDI data sources and connection pooling, security (realms, SecurityManager, SSL), logging, JMX monitoring and tuning, and clustering with session replication and mod_jk load balancing.

Do I need to be a Java developer?

No. The course includes a JEE overview covering servlets, JSP and the MVC pattern, and it focuses on administering the server rather than writing application code.

Can this be delivered privately for our team, onsite or online?

Yes. HSG provides private training for organizations, delivered onsite at the client's location or live online.

Can the content be customized to the versions we run?

Private training can be tailored to the technology versions an organization uses, including current releases. You can describe your environment through the training proposal request.

Training locations

Tomcat Administration for Linux training across the U.S. and beyond.

We provide private Tomcat Administration for Linux training for organizations, onsite at your location or live online, throughout the United States and internationally.

View all Tomcat Administration for Linux training locations

Train your team with HSG

Private, instructor-led training customized for your organization.

  • Onsite or live online delivery
  • Customized curriculum
  • For a single employee or an entire team
  • Flexible scheduling
  • Experienced instructors
Request Group Training

Questions? Call us at 303.377.6176
or email info@hartmannsoftware.com

Ready to train your team?

Let's customize this training for your organization.

Tell us about your employees, your goals, and your preferred schedule. We'll prepare a training proposal covering scope, delivery format, and pricing.