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

jGuru: Help: Installing and Configuring Tomcat

 


[Exercise | API Docs | Short Course| Exercises]

Help is available for each task.

Tomcat has been tested under the following platforms: Windows NT 4.0 Service Pack 4, Solaris 2.6 and 2.7, Windows 98, and Red Hat Linux 6.0. You will also need to install JDK 1.1.8 or the Java 2 SDK version onto your system.

Task 1

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

Either grab the ZIP or tar.gz version. Most Windows users should just grab the ZIP version, though WinZip can read the smaller tar.gz version.

Task 2

Uncompress the file.

This should create a new subdirectory named jakarta-tomcat.

Task 3

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.

Something like the following will work for Windows, depending upon the JDK installation directory:

SET JAVA_HOME=C:\jdk1.2.2

Task 4

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

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

myhost> startup

Tomcat Web Server Version 3.1
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

Task 5

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.

There is extensive documentation on all aspects of JSP, along with example code, bundled with your Tomcat install. For additional information, please see Sun's JSP technical resource page

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