Get in Touch
 Duration 21 hours

Course Outline

Tomcat Overview 

  • Brief introduction to Apache
  • Apache Software Foundation
  • Jakarta Project
  • Tomcat Licensing
  • J2EE Technologies
  • Java Web Development
  • Servlet/JSP Containers

Java Web Applications

  • Introduction to Servlets
  • Benefits of Servlets and Their Lifecycle
  • JavaServer Pages
  • JSP, JavaBeans, and JSP Tag Libraries
  • MVC frameworks

Installing Tomcat

  • Acquiring and Installing Apache Tomcat
  • Downloading and installing a JVM, Tomcat, and Ant
  • Windows installation procedure
  • Java memory management and JVM tuning for performance

Tomcat Directories

  • Tomcat installation paths, directory layout, the bin directory, and common/shared directories
  • The conf, logs, server, work, temp, and webapps directories
  • Structure of a Web Application Directory
  • Deploying HTML and JSP Pages and Web Context
  • JSP Page and the Generated Code
  • Deploying a Web App

Configuring Tomcat

  • Tomcat configuration and available techniques
  • Tomcat's Component Architecture
  • The <Server>, <Service>, <Connector>, <Engine>, <Host>, <Context>, <Realm>, <Valve>, <Listener>, <Loader>, and <Manager> Elements
  • The server.xml file
  • Modifying server.xml

Web Applications

  • Web Application Administration and Deployment
  • Directory Structure of a Web App
  • web.xml configuration file
  • Deployment Descriptors
  • The <web-app> / <web-app> Element
  • Mapping a Servlet to a URL
  • The <resource-ref> / <resource-ref> Element
  • The <env-entry> / <env-entry> Element
  • The <ejb-ref> / <ejb-ref> Element
  • Example web.xml file
  • Deploying a Web Application
  • Tomcat's default conf/web.xml file
  • Tuning default JSP and Static-content servlets

Tomcat Manager

  • Deploying and Managing Web Applications using the Tomcat Manager
  • Launching the Tomcat Manager and interface overview
  • Examining the Manager Section
  • Applications, Deploy, and Server Information
  • Creating a WAR File
  • Lab 4: Deploying a WAR File
  • Java Management Extensions (JMX) on Tomcat
  • Tomcat integration with Ant

Advanced Features

  • Utilizing Advanced Tomcat Features
  • Valves, Access Log Valve, Single Sign-on Valve
  • Remote Address Filter and Remote Host Filter
  • Request Dumper Valve
  • Configuring the JNDI Resources
  • JNDI: Java Naming and Directory Interface and Defining a JNDI Resource
  • The <environment> / <environment> Element and The <resource> / <resource> Element
  • Configuring a JavaMail Session
  • Global Resources

JDBC Connectivity

  • Configuring Tomcat to Connect to a Database
  • Overview of JDBC
  • JDBC Drivers
  • Database Connections and Connection Pools
  • Downloading and Installing MySQL
  • Configuring MySQL for Tomcat
  • Creating a Database in MySQL
  • Downloading and Deploying a JDBC Driver
  • Defining a DataSource in Tomcat and Manually Setting Up a Data Source
  • Modifying the Deployment Descriptor
  • Detecting and closing leaked database connections

Tomcat Security

  • Security configurations on Tomcat
  • Security Considerations
  • File System Security and Recommendations
  • Java Security Manager
  • Granting Permissions to Java Apps and Reviewing Java Permissions
  • Creating and Adding Custom Policies
  • Enabling the Java Security Manager
  • Security Manager Tips and Security Realms
  • Types of Realms and Configuring a Realm
  • Users and Roles (authentication and authorization)
  • Creating a Data Source Realm
  • Password protection
  • FORM-based authentication
  • Configuring Tomcat for SSL
  • Requiring SSL in applications

Connecting

  • Connecting Tomcat to Apache
  • Examining Connectors
  • HTTP Connectors
  • Advantages of Using a Web Server
  • Connector Protocols
  • Configure an AJP Connector
  • Downloading mod_jk
  • Creating the mod_jk.conf file
  • Starting Tomcat
  • Creating a Worker
  • Configuring httpd.conf
  • Testing the Setup
  • Load balancing applications across multiple Tomcat instances
  • Challenges with load balancing
  • Server affinity via sticky sessions
  • Shared session storage
  • Replicated sessions via Tomcat clustering
  • Shared Hosting
  • Tomcat Virtual Hosting
  • Configuring Tomcat to enable virtual hosting as a stand-alone server
  • Configuring Tomcat to enable virtual hosting using jk2 or webapp.
  • Configuring Tomcat as Stand-alone
  • Configuring Tomcat with AJP
  • Separate JVM for Each Host

Load Testing

  • JMeter Application
  • Load Testing with JMeter
  • Installing and running JMeter
  • Creating a Test Plan
  • Configuring the Thread Group and adding a task
  • Configuring the HTTP Request
  • Adding a Report Listener
  • Running the Test Plan
  • Reviewing the Results

Requirements

This course is tailored for web and application server administrators responsible for installing, configuring, running, and tuning the Apache Tomcat Application Server.

To maximize the value of this Tomcat training, participants should possess a solid understanding of the fundamental principles of web and application server administration.

Number of participants


Price per participant

Testimonials (6)

Upcoming Courses

Related Categories