Verify that Tomcat is up and running by visiting its URL and checking the JSP example for Date.
Procedure
- Open an Internet browser and access the URL http://HOSTNAME:PORT where HOSTNAME is the host name of the machine on which you installed Tomcat and PORT is the Tomcat port number (defaults to 8080).
Verify that you see a Web page with the Tomcat logo.
- Click JSP Examples.
- On the Web page that opens, click Execute next to the Date example.
Verify that the date displays correctly.
- If any of these steps fail, troubleshoot your Tomcat installation. Otherwise, close your browser.
- Stop the Tomcat service by doing one of the following:
On a Windows system, access the Windows Control Panel, then , select Apache Tomcat and stop the service.
On a Unix system, open a command prompt and enter the following:
cd $CATALINA_HOME/bin
source tomcat.cshrc
shutdown.sh
- Remove the contents of the directory $CATALINA_HOME/work.
- Restart the Apache Tomcat service.