-
Notifications
You must be signed in to change notification settings - Fork 56
Building Apache Tomcat
Below versions of Apache Tomcat are available in respective distributions at the time of creation of these build instructions:
- RHEL (8.8, 8.10, 9.2, 9.4) have
9.0.87
- SLES (15 SP5, 15 SP6) has
10.1.25
- Ubuntu 20.04 has
9.0.31
- Ubuntu 22.04 has
9.0.58
- Ubuntu 24.04 has
10.1.16
- Ubuntu 24.10 has
10.1.25
- When following the steps below please use a standard permission user unless otherwise specified.
- A directory
/<source_root>/
will be referred to in these instructions, this is a temporary writable directory anywhere you'd like to place it.
Apache Tomcat binaries are available and can be downloaded from here. To use these binaries, different Java flavors can be installed on mentioned distributions.
Note: Apache Tomcat(v11.0.0) was verified at the time of creation of these instructions
export SOURCE_ROOT=/<source_root>/
-
RHEL (8.8, 8.10, 9.2, 9.4)
-
With OpenJDK17:
sudo yum install -y java-17-openjdk
-
With OpenJDK21:
sudo yum install -y java-21-openjdk-devel
-
With IBM Semeru Runtime
- Download and install IBM Semeru Runtime (Java 17 or Java 21) from here.
-
With Eclipse Adoptium Temurin Runtime
- Download and install Eclipse Adoptium Temurin Runtime (Java 17 or Java 21) from here.
-
-
SLES (15 SP5, 15 SP6)
-
With OpenJDK17:
sudo zypper install -y java-17-openjdk
-
With OpenJDK21 (Only for SLES 15 SP6):
sudo zypper install -y java-21-openjdk-devel
-
With IBM Semeru Runtime
- Download and install IBM Semeru Runtime (Java 17 or Java 21) from here.
-
With Eclipse Adoptium Temurin Runtime
- Download and install Eclipse Adoptium Temurin Runtime (Java 17 or Java 21) from here.
-
-
Ubuntu (20.04, 22.04, 24.04, 24.10)
-
With OpenJDK17:
sudo apt-get update sudo apt-get install -y openjdk-17-jdk
-
With OpenJDK21:
sudo apt-get update sudo apt-get install -y openjdk-21-jdk
-
With IBM Semeru Runtime
- Download and install IBM Semeru Runtime (Java 17 or Java 21) from here.
-
With Eclipse Adoptium Temurin Runtime
- Download and install Eclipse Adoptium Temurin Runtime (Java 17 or Java 21) from here.
-
Note: At the time of creation of these build instructions, Apache Tomcat 11.0.0 was verified with OpenJDK 17 (build build 17.0.12+7) and OpenJDK 21 (build build 21.0.4+7)
, OpenJDK Runtime Environment Temurin-17.0.12_7 (build 17.0.12+7) and OpenJDK Runtime Environment Temurin-21.0.4_7 (build 21.0.4+7)
and IBM Semeru Runtime Open Edition 17.0.12_7 (build 17.0.12+7) and IBM Semeru Runtime Open Edition 21.0.4_7 (build 21.0.4+7)
.
export JAVA_HOME=<Path to Java>
export PATH=$JAVA_HOME/bin:$PATH
To start the server, extract the binary tar to /<source_root>/
and follow steps given below:
cd $SOURCE_ROOT/<apache_tomcat_binary_folder>/
bin/startup.sh
Open http://<ip_address>:8080/
in your browser to access Web UI.
The information provided in this article is accurate at the time of writing, but on-going development in the open-source projects involved may make the information incorrect or obsolete. Please open issue or contact us on IBM Z Community if you have any questions or feedback.