The Nautilus
application development team recently finished the beta version of one of their Java-based applications, which they are planning to deploy on one of the app servers in Stratos DC
. After an internal team meeting, they have decided to use the tomcat
application server.
Tasks:
Install tomcat
server on `App Server 21.
Configure it to run on port 5002
.
There is a ROOT.war
file on Jump host
at location /tmp
.
Deploy it on this tomcat server and make sure the webpage works directly on base URL i.e curl http://stapp01:5002
ssh tony@172.16.238.10
which tomcat
/usr/bin/which: no tomcat in (/home/steve/.local/bin:/home/steve/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin)
sudo dnf install -y tomcat
vi /etc/tomcat/server.xml
<Connector port="5002" protocol="HTTP/1.1" <- changed to 8084
connectionTimeout="20000"
redirectPort="8443"
maxParameterCount="1000"
/>
sudo systemctl start tomcat
sudo systemctl status tomcat
● tomcat.service - Apache Tomcat Web Application Container
Loaded: loaded (/usr/lib/systemd/system/tomcat.service; disabled; preset: disabled) Active: active (running) since Wed 2025-09-03 10:05:34 UTC; 16s ago
sudo scp /tmp/ROOT.war tony@172.16.238.10:/tmp/ROOT.war <- run from the jump host
sudo cp /tmp/ROOT.war /usr/share/tomcat/webapps/ <- run from app server 1
curl http://stapp01:5002
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<title>SampleWebApp</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<h2>Welcome to xFusionCorp Industries!</h2>
<br>
</body>
</html>