To uninstall a previously deployed application from Tomcat server, follow
these steps:
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>
-->
To restart the Tomcat service, follow these steps:
Log in to the "UNIX server" through a terminal emulator.
Navigate to the $catalina_home/bin directory.
Stop the Tomcat services using the following command:
./shutdown.sh
Start the Tomcat services using the following command:
./startup.sh
Open the URL in a browser window:
http://<IP address>:<Tomcat server port> (https if SSL is
enabled)
The Tomcat home window is displayed.
Click Manager App to display the Connect to 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.
Figure 10-6 Tomcat Web Application Manager Window
Click the Undeploy link corresponding to the deployed Infrastructure
application. A confirmation message is displayed.