
Basic introduction to tomcat
Install and start Tomcat on Ubuntu using OpenJDK, creating a non-root Tomcat user, extracting tar.gz binaries to /opt/tomcat, then set JAVA_HOME and verify in a browser.
Explore Tomcat's configuration file, server.xml, an XML file defining the Server, Service, connectors, Engine, Host, and Context. See how to locate conf/server.xml on a Unix system and inspect its structure.
Rotate catalina.out log file using cronolog on Ubuntu; export CATALINA_OUT_CMD in catalina.sh, restart Tomcat, and verify date-based rotation.
Undeploy the sample.war by deleting its tomcat webapps entry and folder with rm -rf, then verify removal by refreshing to see a 404 file not found.
Configure tomcat to connect to a database using JDBC connection pool, replacing DBCP, by setting a new JNDI name and referencing DataSourceFactory, then test with test2.jsp in conf/context.xml and webapps.
Explore tomcat jdbc pool settings, comparing dbcp and jdbc pool and covering 20 configuration options. Learn how maxActive, minIdle, testOnBorrow, validationQuery, and removeAbandoned and logAbandoned controls ensure reliable connections.
Learn JDBC connection pool tuning in a hands-on Tomcat lab, exploring maxTotal, maxIdle, minIdle, testWhileIdle, and eviction settings with load tests and live monitoring.
Set up Apache httpd with mod-jk to connect to Tomcat via AJP v13, configuring server.xml port 8009 and worker.properties, and route the /sample application through a vhost.
Verify APR installation for Tomcat by checking log entries, then install and configure APR using configure, make, and make install with a prefix and API-SOS and API-Target folders.
Install APR on Linux by configuring with the target prefix, then make and make install, copy libraries to APR target, compile dependencies, start Tomcat, and review logs for APR status.
Enable http2 support in tomcat 9 by updating the http2 connector for the hdp s connector, restart the server, and verify with curl to read headers, ignoring certificates if needed.
Set up a tomcat cluster, observe session persistence and replication, and enable distributable settings with the distributable tag to keep the same jsessionid across nodes.
In this course you will learn about tomcat administration. The operating system used in the course is Ubuntu but majority of the steps will work on Unix/Linux based operating systems. The course covers a number of topics from tomcat administration to configuration. Almost all of the topics are hands-on with some basic theory. The course is ideal for system admins who want to learn tomcat administration. There is absolutely no coding experience required. Some sys admin knowledge is required.
The specific version in this course is tomcat 9. While tomcat 9 has a few new features, majority of the configuration items discussed will apply to lower versions of tomcat as well.
After completing this course, you will be able to install tomcat, perform common administrative tasks and also perform advanced administrative tasks.
Version history
Nov 2024 Added an entire section on integration tomcat with LDAP !
June 2022 Added over an hour of content
Jan 2022 Added section for tomcat on Windows
June 2020 Added four videos on APR Installation series
June 2020 Added quizzes for each of the sections
Feb 2020 Added four videos on tomcat cluster series
Jan 2020 tomcat manager and host manager applications
Dec 2019 OS Startup Services for tomcat
Sep 2019 Added JDBC Settings Explained
Sep 2019 Added JDBC Settings Examples
June 2019 Added APR Introduction