Uninstall the WAR Files in Tomcat

To uninstall a previously deployed application from Tomcat server, follow these steps:
  1. Comment out the Context path section from the server.xml file in the $CATALINA_HOME/conf directory to avoid conflict during undeploying and re-deploying the WAR file.
    Place comment <!	> in between the context path section. For example:
    <!--
    <Context path ="/pr2test" docBase="/home/perfuser/tomcat-7.0.19/webapps/ pr2test" debug="0" reloadable="true" crossContext="true">
    <Resource auth="Container" name="jdbc/PR2ATM" type="javax.sql.DataSource"
    driverClassName="oracle.jdbc.driver.OracleDriver" username="pr2atm"
    password="pr2atm" url="jdbc:oracle:thin:@<HOST_NAME>:1521:PERFTEST" maxTotal="100"
    maxIdle="30" maxWaitMillis="10000"/>
    </Context>
    -->
  2. To restart the Tomcat service, follow these steps:
    1. Log in to the "UNIX server" through a terminal emulator.
    2. Navigate to the $catalina_home/bin directory.
    3. Stop the Tomcat services using the following command:
      ./shutdown.sh
    4. Start the Tomcat services using the following command:
      ./startup.sh
  3. Open the URL in a browser window:
    http://<IP address>:<Tomcat server port> (https if SSL is enabled)
    The Tomcat home window is displayed.
  4. Click Manager App to display the Connect to window.
  5. Log in with the user credentials having admin rights. The Tomcat Web Application Manager window is displayed with the list of all applications deployed in Tomcat.

    Figure 10-6 Tomcat Web Application Manager Window


    Log in with the user credentials having admin rights. The Tomcat Web Application Manager window is displayed with the list of all applications deployed in Tomcat.

  6. Click the Undeploy link corresponding to the deployed Infrastructure application. A confirmation message is displayed.