Tomcat 10.x on RHEL 8/9

This article describes the procedure for installing and configuring Apache Tomcat 10.x to deploy the OvalEdge application on RHEL 8/9 systems. It outlines the required setup, configuration steps, and service enablement. The guide ensures a consistent and repeatable installation process aligned with OvalEdge deployment standards.

Prerequisites

  • User account with sudo privileges

  • Stable internet connection

  • Access to the OvalEdge application package (WAR file)

  • Required configuration files (oasis.properties, log4j.properties)

Steps Involved

  1. Create Required Directories

    • Log in to the application VM and create directories to store application configuration files.

  2. Download Apache Tomcat

    • Download the hardened Tomcat package using the following command:

      wget https://ovaledge.s3.us-west-1.amazonaws.com/scripts/hardened_tomcat/apache-tomcat-10.1.40.tar.gz

      Sample Reference Screenshot:

  3. Extract the Tomcat Archive

    • Extract the downloaded archive:

      tar -xvf apache-tomcat-10.1.40.tar.gz

      Sample Reference Screenshots:

  4. Configure Environment Settings

    • Navigate to the Tomcat bin directory and create the setenv.sh file:

      vi apache-tomcat-10.1.40/bin/setenv.sh
    • Add the following configuration:

      export CATALINA_OPTS="-Duse.http=true -DOVALEDGE_SECURITY_TYPE=db -Dlog4j.configuration=file:/home/ovaledge/extprop/log4j.properties -Dext.properties.dir=file:/home/ovaledge/extprop/ -Xms4g -Xmx7g -DOVALEDGE_ENCRYPT_DECRYPT_KEY=<client_input> --add-opens=jdk.zipfs/jdk.nio.zipfs=ALL-UNNAMED --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED"

      Sample Reference Screenshot:

Ensure the correct paths are provided for oasis.properties and log4j.properties.

  1. Deploy the OvalEdge Application

    • Navigate to the webapps directory and place the ovaledge.war file (provided by the OvalEdge team). Sample Reference Screenshot:

  2. Configure Tomcat as a System Service

    • Navigate to the systemd directory:

    • Create the service file:

    • Add the following configuration:

      Sample Reference Screenshot:

    • Save the file.

  3. Enable and Start Tomcat Service

    • Reload systemd and start the Tomcat service:

      Sample Reference Screenshot:

  4. Validate the Deployment

    • Access the application using a web browser:

    • Allow approximately 2 minutes for the application to initialize.


Copyright © 2026, OvalEdge LLC, Peachtree Corners, GA, USA.

Last updated

Was this helpful?