Task - Install and Configure Tomcat Server

Hello.

I would like to know why I failed this tank. Here are my steps:

1 - Installed Tomcat through yum
2 - Change Connector port in server.xml file to 8089
3 - Copied ROOT.war file to CATALINA_HOME/webapps
4 - Restarted Tomcat and accessed like the instructions said
5 - The website showed a site with “Welcome to xFusionCorp Industries!”

I could see the website, what did I get wrong?

I have completed below steps and its worked.

Copy from jump host to server

scp /tmp/ROOT.war banner@stapp03:/tmp

sudo yum install tomcat

Move war file to webapps directory after install

cp /tmp/ROOT.war /usr/share/tomcat/webapps

Edit file : change port in below part

vi /usr/share/tomcat/conf/server.xml


<!-- A "Connector" represents an endpoint by which requests are received

         and responses are returned. Documentation at :

         Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)

         Java AJP  Connector: /docs/config/ajp.html

         APR (HTTP/AJP) Connector: /docs/apr.html

         Define a non-SSL HTTP/1.1 Connector on port 8080

    -->

    <Connector port="5003" protocol="HTTP/1.1"

               connectionTimeout="20000"

               redirectPort="8443" />

    <!-- A "Connector" using the shared thread pool-->

    <!--

    <Connector executor="tomcatThreadPool"

               port="5003" protocol="HTTP/1.1"

               connectionTimeout="20000"

               redirectPort="8443" />

    -->

sudo systemctl start tomcat

sudo systemctl status tomcat

sudo systemctl enable tomcat


One way to verify it was deployed successfully is to curl -i 172.16.238.12:5003