Sun Java Solaris Communities My SDN Account Join SDN
 
Tutorials & Code Camps

jGuru: Installing and Configuring Tomcat

 


[Help | API Docs | Short Course| Exercises]

This exercise steps you through the process of downloading and installing Tomcat--the JSP 1.1 Reference Implementation (RI). The exercises are specific to Tomcat--if you want to use a different server for the remainder of these exercises, you should ensure that it is JSP 1.1 compliant and install it now.

Prerequisites

None

Tasks

  1. Check your system requirements to make sure you have an adequate hardware and software for installing and running Tomcat.

  2. Download the appropriate version of Tomcat 3.1 from the Apache website.

  3. Uncompress the file.

  4. Set the environment variable JAVA_HOME to point to the root directory of your JDK hierarchy. Be sure the Java interpreter is in your PATH environment variable.

  5. Change to the bin directory and start Tomcat using the command-line command startup.

  6. Tomcat is now installed and running on port 8080 by default. Explore the Tomcat documentation within the documentation site to familiarize yourself more with Tomcat.

Where help exists, the task numbers above are linked to the step-by-step help page.

Solution Source

There is no solution to this exercise. When the tasks in this exercise have been completed, Tomcat will be installed, running, and available for the subsequent exercises.

Demonstration

When you complete the tasks in this exercise, Tomcat is installed and running and available for the subsequent exercises.

Running Tomcat using the command-line command startup should produce output similar to the following:

  
myhost> startup  
  
Tomcat Web Server Version 3.0  
Loaded configuration from: file:E:/tomcat/server.xml  
Configuring web service using "default"  
Configuring web service using   
  "file:E:/tomcat/examples/WEB-INF/web.xml"  
default: init  
jsp: init  
Configuring web service using "default"  
Configuring web service using   
  "file:E:/tomcat/webpages/WEB-INF/web.xml"  
default: init  
jsp: init  
Starting tcp endpoint on 8080 with   
 org.apache.tomcat.service.http.HttpConnectionHandler  
Starting tcp endpoint on 8007 with   
 org.apache.tomcat.service.connector.Ajp12ConnectionHandler  

Next Exercise

Exercises

Short Course

Copyright 1996-2000 jGuru.com. All Rights Reserved.