Java Runtime
Full JDK not required
Tomcat 9 requires Java 8 or later
Tomcat 8 requires Java 7 or later
Tomcat 7 requires Java 6 or later
Tomcat Native for OpenSSL support
Unpack an archive
Tomcat Installer for Windows
Package from Linux distribution
Build from source
.zip for Windows
.tar.gz for Linux, OSX etc
Contents is largely the same
Line endings vary
Tomcat Native binary for Windows is included in .zip
Installing from an archive
Windows
Linux
Install from an archive
Display Tomcat home page in browser
bin/
conf/server.xml
Main configuration file
conf/web.xml
Global defaults for all web applications
Syntax defined by Servlet specification
Defines Default and JSP servlets
Can be over-ridden by web application
conf/context.xml
Global defaults for all web applications
Tomcat specific
Can be over-ridden by web application
conf/Catalina/localhost/*.xml
conf/<engine-name>/<host-name>/*.xml
Web-application specific configuration
Always over-rides context.xml in the web application
Name sets context path
conf/logging.properties
Logging configuration
Based on java.util.logging
Extended to be class loader aware
conf/tomcat-users.xml
Configures users for default Realm
Monitored for updates by default
XML schema file provided
conf/jaspic-providers.xml
Java Authentication Service Provider Interface for Containers
Plug-in authentication modules
Google OAuth most likely use
conf/catalina.properties
Sets system properties
Various Tomcat configuration options set at JVM level
Often used to change default globally but value can still be changed per web application
conf/catalina.policy
Used when running under a security manager
Only lightly tested
Few web applications work under a security manager out of the box
lib/
JAR files required by Tomcat
JARs added here will be visible to all web applications
logs/
Roll over daily except catalina.out
catalina.out - redirected console output
catalina.log - root logger (copied to console)
localhost_access_log - access log for default host
localhost.log - host log
manager.log, host-manager.log - web application log
temp/
Temporary file location used by the JVM
java.io.tmpdir
webapps/
Location of web applications
WARs or directories
Deployed automatically by default
work/
JSP compilation
Session serialization
Windows
Runs as Local Service by default
(no password)
You'll need build-essential
Expand in place, build and copy jsvc to bin
Copy daemon.sh to /etc/init.d/tomcat
Unpacks archive
Creates a service
Automates the manual steps
Provides a GUI to set some basic options
Installing with the Tomcat Installer for Windows
Installing JSVC, the Linux service wrapper
Linux distributions have 'views' on file locations
Tomcat files not all in one location
Often use multiple packages
E.g.: Ubuntu 16.04 LTS and Tomcat 8.0.x
Tend to pick a version and then back-port fixes
Installing from a Linux package
Install from the Installer for Windows
or
Install from a Linux package