Apache Tomcat Administration ( apachetomcat | 21 hours )

Prerequisites:

This course is designed for: Web/application server administrators who need to be able to install, configure, run, and tune the Apache Tomcat Application Server.

To get the most benefit from the Tomcat Training course, you should be familiar with the basic principles of web/application server administration.

Overview:
  • An overview and explanation of how Tomcat relates to Java EE (J2EE) and compares to other application servers
  • The Installation and setting up Tomcat on both Windows and UNIX-type environments
  • Deploy, support, and troubleshoot applications on Tomcat
  • Navigate Tomcat's directory structure
  • Tomcat's architecture and configuration files: server.xml, context.xml, .properties, etc.
  • Web application structure and configuration: web.xml
  • Secure Tomcat and applications running on it and Setting up Tomcat for SSL
  • Tune Tomcat's performance
  • Exploration of different load-balancing and high-availability strategies with Tomcat
Course Outline:

Tomcat Overview 

  • Quick overview of Apache
  • Apache Software Foundation
  • Jakarta Project
  • Tomcat Licensing
  • J2EE Technologies
  • Java Web Development
  • Servlet/JSP Containers

Java Web Applications

  • An Overview of Servlets
  • The Advantages of Servlets & The Lifecycle
  • JavaServer Pages
  • JSP, JavaBeans and JSP Tag Libraries
  • MVC frameworks

Installing Tomcat

  • Downloading and Installing Apache Tomcat
  • Download and install a JVM, Download Tomcat, Download and install Ant
  • Windows installer
  • Java memory management and tweaking the JVM for performance

Tomcat Directories

  • Tomcat Installation Directories, Tomcat Directory Structure, The bin Directory, Common and shared Directories
  • The conf Directory, logs Directory. server directory, work Directory, temp Directory, webapps Directory
  • Stucture of the Web Application Directory Structure
  • Deploying HTML and JSP Pages and Web Context
  • JSP Page and the Generated Code
  • Deploying a Web App

ConfiguringTomcat

  • Configuration of Tomcat and looking at the Techniques
  • Tomcat's Component Architecture
  • The <Server> Element, <Service> Element, <Connector> Element, <Engine> Element, <Host> Element, <Context> Element, <Realm> Element, <Valve> Element, <Listener> Element, <Loader> Element, <Manager> Element
  • Server.xml File
  • Modifying server.xml

Web Applications

  • Web Application Administration & Deploying
  • 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
  • A Sample 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 Application using the Tomcat Manager
  • Starting the Tomcat Manager and looking at Tomcat Manager
  • Looking at the Manager Section
  • Applications, Deploy, Server Information
  • Creating a WAR File
  • Lab 4: Deploying a WAR File
  • Java Management Extensions (JMX) on Tomcat
  • Tomcat integration with Ant

Advanced Features

  • Using Some of the Advanced Features of Tomcat
  • 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
  • Connecting to a Database and Connection Pools
  • Download and Install MySQL
  • Configure MySQL for Tomcat
  • Create a Database in MySQL
  • Download and Deploy a JDBC Driver
  • Defining a DataSource in Tomcat and Defining a Data Source Manually
  • Modifying the Deployment Descriptor
  • Detecting and closing leaked database connections

Tomcat Security

  • Looking at Security on Tomcat and the configuration
  • Security Considerations
  • File System Security and Filesystem Recommendations
  • Java Security Manager
  • Granting Permissions to Java Apps and looking at Java Permissions
  • Creating and Adding Your Own Policies
  • Enabling the Java Security Manager
  • Security Manager Tips and Security Realms
  • Looking at the different Types of Realms and Configuring a Realm
  • Users and Roles (authentication and authorization)
  • Creating a Data Source Realm
  • The protection of passwords
  • FORM-based authentication
  • Configuring Tomcat for SSL
  • Requiring SSL in applications

Connecting

  • Connect Tomcat to Apache
  • Looking at Connectors
  • HTTP Connectors
  • Advantages of Using a Web Server
  • Connector Protocols
  • Configure an AJP Connector
  • Download mod_jk
  • Create the mod_jk.conf file
  • Start Tomcat
  • Create a Worker
  • Configure httpd.conf
  • Test the Setup
  • Load balancing applications across multiple Tomcat instances
  • Issues with load balancing
  • Server affinity via sticky sessions
  • Shared session storage
  • Replicated sessions via Tomcat clustering
  • Shared Hosting
  • Tomcat Virtual Hosting
  • Configure Tomcat to enable virtual hosting as a stand-alone server
  • Configure Tomcat to enable virtual hosting using jk2 or webapp.
  • Configure Tomcat as Stand-alone
  • Configure Tomcat with AJP
  • Separate JVM for Each Host

Load Testing

  • JMeter Application
  • Load Testing with JMeter
  • Install and run JMeter
  • Creating a Test Plan
  • Configure the Thread Group and adding a task
  • Configure the HTTP Request
  • Add a Report Listener
  • Run the Test Plan
  • Viewing the Results
Sites Published:

United Arab Emirates - Apache Tomcat Administration

Qatar - Apache Tomcat Administration

Egypt - Apache Tomcat Administration

Saudi Arabia - Apache Tomcat Administration

South Africa - Apache Tomcat Administration

Brasil - Administração do Apache Tomcat

Canada - Apache Tomcat Administration

中国 - Apache Tomcat Administration

香港 - Apache Tomcat Administration

澳門 - Apache Tomcat Administration

台灣 - Apache Tomcat Administration

USA - Apache Tomcat Administration

Österreich - Tomcat

Schweiz - Tomcat

Deutschland - Tomcat

Czech Republic - Apache Tomcat Administration

Denmark - Apache Tomcat Administration

Estonia - Apache Tomcat Administration

Finland - Apache Tomcat Administration

Greece - Apache Tomcat Administration

Magyarország - Apache Tomcat Administration

Ireland - Apache Tomcat Administration

Luxembourg - Apache Tomcat Administration

Latvia - Apache Tomcat Administration

España - Administración de Apache Tomcat

Italia - Apache Tomcat Administration

Lithuania - Apache Tomcat Administration

Nederland - Apache Tomcat Administration

Norway - Apache Tomcat Administration

Portugal - Administração do Apache Tomcat

România - Apache Tomcat Administration

Sverige - Apache Tomcat Administration

Türkiye - Apache Tomcat Administration

Malta - Apache Tomcat Administration

Belgique - Apache Tomcat Administration

France - Apache Tomcat Administration

日本 - Apache Tomcat Administration

Australia - Apache Tomcat Administration

Malaysia - Apache Tomcat Administration

New Zealand - Apache Tomcat Administration

Philippines - Apache Tomcat Administration

Singapore - Apache Tomcat Administration

Thailand - Apache Tomcat Administration

Vietnam - Apache Tomcat Administration

India - Apache Tomcat Administration

Argentina - Administración de Apache Tomcat

Chile - Administración de Apache Tomcat

Costa Rica - Administración de Apache Tomcat

Ecuador - Administración de Apache Tomcat

Guatemala - Administración de Apache Tomcat

Colombia - Administración de Apache Tomcat

México - Administración de Apache Tomcat

Panama - Administración de Apache Tomcat

Peru - Administración de Apache Tomcat

Uruguay - Administración de Apache Tomcat

Venezuela - Administración de Apache Tomcat

Polska - Administracja serwerem Apache Tomcat

United Kingdom - Apache Tomcat Administration

South Korea - Apache Tomcat Administration

Pakistan - Apache Tomcat Administration

Sri Lanka - Apache Tomcat Administration

Bulgaria - Apache Tomcat Administration

Bolivia - Administración de Apache Tomcat

Indonesia - Apache Tomcat Administration

Kazakhstan - Apache Tomcat Administration

Moldova - Apache Tomcat Administration

Morocco - Apache Tomcat Administration

Tunisia - Apache Tomcat Administration

Kuwait - Apache Tomcat Administration

Oman - Apache Tomcat Administration

Slovakia - Apache Tomcat Administration

Kenya - Apache Tomcat Administration

Nigeria - Apache Tomcat Administration

Botswana - Apache Tomcat Administration

Slovenia - Apache Tomcat Administration

Croatia - Apache Tomcat Administration

Serbia - Apache Tomcat Administration

Bhutan - Apache Tomcat Administration

Nepal - Apache Tomcat Administration