4.Log out of the system, and then log back in to start using the revised profile.
5.Verify the Sun JDK installation was successful by entering the following:#javajava version "1.5.0_10"
Java(TM) 2 Runtime Environment, Standard Edition (build
Installing and Configuring Tomcat
The following procedure provides the steps for installing and configuring Tomcat.
NOTE: Prior to installing Apache Tomcat, you must verify that JDK is installed and configured on your system.
1.Download the Tomcat Web Server package from the Apache Software Foundation website and follow the instructions provided to install it. See Table 1 (page 12) for the correct version and website link.
NOTE: In the following steps, it is assumed that Tomcat is installed
2.Set the CATALINA_HOME environment variable to the Tomcat directory path by editing /etc/profile and adding the following lines to the end of the file:
3.Log out of the system, and then log back in to it to start using the revised profile.
4.Start Tomcat by entering the following:#The following messages appear:
Using
Using
Using
Using JRE_HOME: /usr/local/jdk
5.Verify that the Tomcat installation once the startup is complete by opening a browser and entering the following URL:
http://<YOUR_TOMCAT_SERVER_IP>:8080The Tomcat web page is displayed as in Figure 5.Figure 5 Tomcat Successful Installation VerificationInstalling, Configuring, and Managing Web Server Middleware Stack Components 17