Verifying the Apache Tomcat Installation

Verify that Tomcat is up and running by visiting its URL and checking the JSP example for Date.

Procedure

  1. 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.
  2. Click JSP Examples.
  3. On the Web page that opens, click Execute next to the Date example.
    Verify that the date displays correctly.
  4. If any of these steps fail, troubleshoot your Tomcat installation. Otherwise, close your browser.
  5. Stop the Tomcat service by doing one of the following:
    • On a Windows system, access the Windows Control Panel, then Administrative Tools > Services, 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

  6. Remove the contents of the directory $CATALINA_HOME/work.
  7. Restart the Apache Tomcat service.