Go To AppexTech

Apache Tomcat Administration

1 Hour Daily

Duration:- ... Months

Tomcat Training Overview

Apache Tomcat is the most popular platform for deploying Java-based™ Web applications. In this two days course, attendees learn how to administer the Tomcat server, how to deploy applications on the server, and how to ensure the server's security.

Tomcat Training Objective

  1. To learn how to setup and configure Apache Tomcat
  2. To master deploying Java web applications to the Tomcat server To learn how to configure Tomcat valves for access logging, single sign-on, and access control To discover how to secure applications running on the Tomcat server To explore using Ant for deploying applications to the Tomcat server To master configuring Tomcat to run behind Apache using the mod_jk module

Tomcat Training Outline

Chapter 1: Apache and Jakarta Tomcat

  1. Brief history of Apache
  2. The Apache Software Foundation
  3. The Jakarta Project
  4. Tomcat Licensing
  5. The J2EE Technologies
  6. Java Web Development
  7. Servlet/JSP Containers

Chapter 2: Java Web Applications

  1. Overview of Servlets
  2. Advantages of Servlets
  3. Lifecycle of a Servlet
  4. Overview of JavaServer Pages
  5. A Simple JavaServer Page
  6. JSP and JavaBeans
  7. JSP Tag Libraries
  8. The Struts Framework

Chapter 3: Installing Tomcat

  1. Downloading and Installing Apache Tomcat
  2. Overview of Installing Tomcat
  3. Download and install a JVM
  4. Download Tomcat
  5. Using the Windows installer
  6. Tweak the JVM for performance
  7. Download and install Ant

Chapter 4: Tomcat Directories

  1. Examining the Tomcat Installation Directories
  2. Tomcat Directory Structure
  3. The \bin Directory
  4. \common and \shared Directories
  5. The \conf Directory
  6. The \logs Directory
  7. The \server directory
  8. The \work Directory
  9. The \temp Directory
  10. The \webapps Directory
  11. Web Application Directory Structure
  12. Deploying HTML and JSP Pages
  13. Deploying a Web Context
  14. Viewing the JSP Page
  15. Viewing the Generated Code
  16. Lab 1: Deploying a Web App

Chapter 5: Configuring Tomcat

  1. Tomcat Configuration Techniques
  2. Tomcat’s Component Architecture
  3. The Element
  4. The Element
  5. The Element
  6. The Element
  7. The Element
  8. The Element
  9. The Element
  10. The Element
  11. The Element
  12. The Element
  13. The Element
  14. The Element
  15. The server.xml File
  16. Modifying server.xml

Chapter 6: Deploying Web Applications

  1. Web Application Administration
  2. Deploying Web Applications
  3. The Directory Structure of a Web App
  4. Web.xml configuration file
  5. Deployment Descriptors
  6. The Element
  7. Mapping a Servlet to a URL
  8. The Element
  9. The Element
  10. The Element
  11. A Sample web.xml file
  12. Lab 3: Deploying a Web Application

Chapter 7: The Tomcat Manager

  1. Deploying and Managing Web Application using the Tomcat Manager
  2. Starting the Tomcat Manager
  3. Tomcat Manager
  4. The Manager Section
  5. Applications
  6. Deploy
  7. Server Information
  8. Creating a WAR File
  9. Lab 4: Deploying a WAR File

Chapter 8: Advanced Features

  1. Using Some of the Advanced Features of Tomcat
  2. Valves
  3. Access Log Valve
  4. Single Sign-on Valve
  5. Remote Address Filter
  6. Remote Host Filter
  7. Request Dumper Valve
  8. Configuring JNDI Resources
  9. JNDI: Java Naming and Directory Interface
  10. Defining a JNDI Resource
  11. The Element
  12. The Element
  13. Configuring a JavaMail Session
  14. Global Resources
  15. Lab 5: Using Valves

Chapter 9: JDBC Connectivity

  1. Configuring Tomcat to Connect to a Database
  2. Overview of JDBC
  3. JDBC Drivers
  4. Connecting to a Database
  5. Connection Pools
  6. Download and Install MySQL
  7. Configure MySQL for Tomcat
  8. Create a Database in MySQL
  9. Download and Deploy a JDBC Driver
  10. Defining a DataSource in Tomcat
  11. Defining a Data Source Manually
  12. Modifying the Deployment Descriptor
  13. Lab 6: JDBC Connections

Chapter 10: Tomcat Security

  1. Configuring Security on Tomcat
  2. Security Considerations
  3. File System Security
  4. Filesystem Recommendations
  5. The Java Security Manager
  6. Granting Permissions to Java Apps
  7. Java Permissions
  8. Adding Your Own Policies
  9. Enabling the Java Security Manager
  10. Security Manager Tips
  11. Security Realms
  12. Different Types of Realms
  13. Configuring a Realm
  14. Users and Roles
  15. Creating a Data Source Realm
  16. Configuring Tomcat for SSL
  17. Lab 7: Create a Data Source Realm

Chapter 11: Connectors

  1. Connecting Tomcat to Apache
  2. Overview of Connectors
  3. HTTP Connectors
  4. Advantages of Using a Web Server
  5. Connector Protocols
  6. Step 1: Configure an AJP Connector
  7. Step 2: Download mod_jk
  8. Step 3: Create the mod_jk.conf file
  9. Step 4: Start Tomcat
  10. Step 5: Create a Worker
  11. Step 6: Configure httpd.conf
  12. Test the Setup

Chapter 12: Shared Hosting

  1. Overview of Shared Hosting
  2. Tomcat Virtual Hosting
  3. Configure Tomcat to enable virtual hosting as a stand-alone server
  4. Configure Tomcat to enable virtual hosting using jk2 or webapp
  5. Configure Tomcat as Stand-alone
  6. Configure Tomcat with AJP
  7. Separate JVM for Each Host

Chapter 13: Load Testing

  1. Using the JMeter Application
  2. Load Testing with JMeter
  3. Install JMeter
  4. Running JMeter
  5. Creating a Test Plan
  6. Configure the Thread Group
  7. Add a Task to the Thread Group
  8. Configure the HTTP Request
  9. Add a Report Listener
  10. Run the Test Plan
  11. Viewing the Results