Apache Tomcat Multiple Instances
Multiple instances of the Apache Tomcat can be patched using Discovery and the patching Fixlets.
Discovery Process
-
- Default installation folders:
-
- Linux, Solaris, and AIX:
/opt/tomcat - Windows:
C:\Program Files\Apache Software Foundation
- Linux, Solaris, and AIX:
- Running instances
-
- Configured locations:
-
- Custom installations can be specified in the
/etc/environmentfile using theBF_TOMCAT_HOMEkey (Linux, Solaris, AIX). - In Windows, environment variables can be set using the
BF_TOMCAT_HOMEkey. - Multiple paths should be separated by
:in Linux/Solaris/AIX and;in Windows.
- Custom installations can be specified in the
The same Discovery task can be used to identify the Tomcat versions 9, 10, and 11.
Patching Process
- All the lower versions are updated to the patch version specified in the task in a single execution.
- If the installed version is the same or greater, then the patching is skipped.
Note:
- Services must be stopped before starting the patching process and should be restarted once the patching is complete.
- The
startup.batorstartup.shscripts are executed during patching but do not explicitly start the services. Refer to the Tomcat official documentation for more details on these scripts.
- Registry keys are not updated as part of the patching process. Only the
binandlibfolders are copied during patching.
Exit codes and their meanings
When performing tasks such as patching or extracting files in Apache Tomcat,
certain exit codes may be returned to indicate the outcome of the operation. These
codes help to find the issues during the installation or update process. Below is a
list of common exit codes, along with their meanings and suggested actions to
resolve the issues.
| Exit code | Action |
|---|---|
| Exit Code 11: Patching of one or more instances failed |
|
| Exit Code 12: Archive file not found |
|
| Exit Code 13: Extraction of the archive failed |
|
| Exit Code 14: Extracted folder missing required files |
|