Tomcat 10.1.x on Ubuntu 22.04
This article provides detailed steps to install and configure the OvalEdge Application on an Ubuntu 22.04 machine. It includes both single-instance and multi-instance (UI and Job) deployment options using Apache Tomcat.
Prerequisites
Ubuntu 22.04 system with internet access
A user with sudo privileges
Java 17 installed (Installation of JAVA on Ubuntu 22.04)
MySQL (local VM Installation of MySQL on Ubuntu 22.04 or AWS RDS) installed and accessible
Required configuration files and
.jarpackages provided by OvalEdge Support
Single-Instance Deployment (Single Tomcat)
Place Configuration Files
Download and place the following files into the respective folders (provided by OvalEdge Support):
oasis.properties→~/extprop/log4j.properties→~/extprop/Third-party JARs →
~/third_party_jars/

Download and Extract Tomcat
Download the required JAR file into the
third_party_jarsfolder as shown below. The JAR files will be provided by the OvalEdge team.
Now download the Tomcat using the URL below as shown.
Link: Tomcat Link
wget https://ovaledge.s3.us-west-1.amazonaws.com/scripts/hardened_tomcat/apache-tomcat-10.1.40.tar.gz tar -xvf apache-tomcat-10.1.40.tar.gz

Configure Environment Variables
Navigate to the Tomcat bin directory and create the
setenv.shfile:vi apache-tomcat-10.1.40/bin/setenv.shAdd the following (replace
<client_input>with the actual key):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"✅ Ensure the path to
oasis.propertiesandlog4j.propertiesis correct.
Deploy OvalEdge Application
Navigate to the webapps directory and copy or download the
ovaledge.warfile (provided by the OvalEdge Team):Place the
ovaledge.warfile into thewebappsdirectory.
Update Configuration Files
Edit
oasis.propertiesinextpropfolder
Database Section: Replace localhost, username, and password with your MySQL connection details.
Elasticsearch Section:
Set
elasticsearch.enabled=trueSet
es.hostandes.passwordwith actual values

Update the JARs path to point to the
third_party_jarsfolder:/home/ovaledge/third_party_jars

Save the file after making changes.
Update
log4j.propertiesConfigurationEdit the
log4j.propertiesfile in theextpropdirectory:Uncomment the 1st line
Comment the 2nd line

Save the file after editing.
Create Tomcat Service
Create a systemd service file to manage Tomcat as a Linux service:
sudo vi /etc/systemd/system/tomcat.servicePaste the following content:
[Unit] Description=Apache Tomcat for OvalEdge After=network.target [Service] Type=forking WorkingDirectory=/home/ovaledge/apache-tomcat-10.1.40/bin ExecStart=/bin/bash /home/ovaledge/apache-tomcat-10.1.40/bin/startup.sh ExecStop=/bin/bash/home/ovaledge/apache-tomcat-10.1.40/bin/shutdown.sh User=ovaledge Group=ovaledge [Install] WantedBy=multi-user.target
Save and close the file.
Start and Enable Tomcat
Run the following commands to register and start the Tomcat service:
sudo systemctl daemon-reload sudo systemctl enable tomcat sudo systemctl start tomcat
Access the Application
After a few minutes, open a browser and go to:
http://<VM-IP>:8080/ovaledge
Multi Tomcat Installation
Log in to Application VM
ssh <user>@<application_vm_ip>Create Required Directories
Create the following directories to store configuration files and external libraries:
mkdir ~/extprop ~/temp ~/third_party_jars
Download Required Files
Download the
oasis.propertiesandlog4j.propertiesfiles into the folder. These files will be shared by the OvalEdge team.
Download the JAR files provided by the OvalEdge team and place them in the third_party_jars folder.

Download Tomcat: Tomcat Link
wget https://ovaledge.s3.us-west-1.amazonaws.com/scripts/hardened_tomcat/apache-tomcat-10.1.40.tar.gz
Extract the Apache Tomcat archive with the following command:
tar -xvf apache-tomcat-10.1.40.tar.gz

Tomcat UI Instance Setup
Once the above steps are completed, rename the apache-tomcat-10.1.40 directory to tomcatui as shown below.
mv apache-tomcat-10.1.40 tomcatui
Deploy WAR File
Navigate to the tomcatui/webapps folder and download the ovaledge.war file as shown below.
cp ~/Downloads/ovaledge.war ~/tomcatui/webapps/
Configure Environment Variables
Create and edit the setenv.sh file inside tomcatui/bin:
vi ~/tomcatui/bin/setenv.shPaste the following content (replace with the actual value shared by OvalEdge):
export CATALINA_OPTS="-Duse.http=true \ --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED \ --add-opens=jdk.zipfs/jdk.nio.zipfs=ALL-UNNAMED \ --add-opens=java.base/java.net=ALL-UNNAMED \ -DOVALEDGE_SECURITY_TYPE=db \ -Dext.properties.dir=file:/home/ovaledge/extprop/ \ -DOVALEDGE_ENCRYPT_DECRYPT_KEY=<encrypt-decrypt> \ -Dpod.type=ovaledge-ui-deployment \ -Xms4g -Xmx8g"
Save and exit.
Tomcat Job Instance Setup
Duplicate the UI Tomcat Instance.
cp -R ~/tomcatui ~/tomcatjob
Update Job
setenv.sh:vi ~/tomcatjob/bin/setenv.shReplace the content with:
export CATALINA_OPTS="-Duse.http=true \ --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED \ --add-opens=jdk.zipfs/jdk.nio.zipfs=ALL-UNNAMED \ --add-opens=java.base/java.net=ALL-UNNAMED \ -DOVALEDGE_SECURITY_TYPE=db \ -Dext.properties.dir=file:/home/ovaledge/extprop/ \ -DOVALEDGE_ENCRYPT_DECRYPT_KEY=<encrypt-decrypt> \ -Dpod.type=ovaledge-job-deployment \ -Xms4g -Xmx8g"Ensure that the -Dpod.type is set to ovaledge-job-deployment.
Save and exit the file.
Update Ports in Job Instance
Edit
server.xml:vi ~/tomcatjob/conf/server.xmlChange the following ports to avoid conflicts with the UI instance:
Default Port New Port for Job
Shutdown port:
8005 → 8006HTTP connector port:
8080 → 8081
Make sure all port references are updated correctly. Save and exit.
Expose Tomcat Instances as Systemd Services
To enable Tomcat UI and Job instances to start, stop, and restart as managed services on Linux, follow the steps below:
Navigate to the Systemd Directory.
cd /etc/systemd/systemCreate the tomcatui Service File.
Create a systemd service unit for the UI instance:
sudo vim tomcatui.servicePaste the following configuration:
[Unit] Description=Apache Tomcat Web Application Container for OvalEdge UI After=syslog.target network.target [Service] Type=forking WorkingDirectory=/home/ovaledge/tomcatui/bin ExecStart=/bin/bash /home/ovaledge/tomcatui/bin/startup.sh ExecStop=/bin/bash /home/ovaledge/tomcatui/bin/shutdown.sh User=ovaledge Group=ovaledge [Install] WantedBy=multi-user.targetSave and exit the file.
Create the Tomcat Job Service File.
Create the service file for the Job instance:
sudo vim tomcatjob.serviceInsert the following content:
[Unit] Description=Apache Tomcat Web Application Container for OvalEdge Job After=syslog.target network.target [Service] Type=forking WorkingDirectory=/home/ovaledge/tomcatjob/bin ExecStart=/bin/bash /home/ovaledge/tomcatjob/bin/startup.sh ExecStop=/bin/bash /home/ovaledge/tomcatjob/bin/shutdown.sh User=ovaledge Group=ovaledge [Install] WantedBy=multi-user.targetSave and exit the file.
Reload Systemd Services
Reload the systemd daemon to apply the newly created service units:
sudo systemctl daemon-reload
Configure oasis.properties and log4j.properties Files
oasis.properties and log4j.properties FilesAfter completing the deployment steps, configure the application properties to reflect your environment.
Edit oasis.properties File
Navigate to the
extpropfolder and open the file:cd /home/ovaledge/extprop vi oasis.propertiesDatabase Configuration
Replace
localhostwith your MySQL endpoint.Replace
usernameandpasswordwith your actual MySQL credentials.
Elasticsearch Configuration
Set
elasticsearch.enabled=trueif Elasticsearch is available.
Provide your Elasticsearch host details.
Example:
elasticsearch.enabled=true es.host=<your-es-host> es.password=<your-es-password>
JARs Path Configuration
Specify the correct path for external JAR files.

Example:
external.jars.path=/home/ovaledge/third_party_jars(Insert sample reference screenshot here)
Save and close the file.
Edit log4j.properties File
Navigate to the
extpropfolder and open the file:vi log4j.propertiesAt the top of the file, locate two lines — one commented out, the other active.
Update as follows:
Uncomment the first line.
Comment out the second line.

Save and close the file.
Start Tomcat Services
Reload
systemdand enable Tomcat services to start on boot:sudo systemctl daemon-reload sudo systemctl enable tomcatui sudo systemctl enable tomcatjobStart services:
sudo systemctl start tomcatui sudo systemctl start tomcatjob
Access the Application
Wait approximately 2 minutes after starting the services.
Open a web browser and access:
http://<IP_ADDRESS>:8080/ovaledge
Replace
<IP_ADDRESS>with the actual VM IP address.
Copyright © 2025, OvalEdge LLC, Peachtree Corners, GA, USA.
Last updated
Was this helpful?

