You are on page 1of 10

Tomcat Installation Guide Setting Up the Apache Tomcat Server:

INTRODUCTION: Tomcat is a fully functional implementation of servlets and Java Server Pages (JSP). It includes a Web Server, so it can be used

as a standalone test container for servlets and JSPs. Tomcat can also be specified as the a handler for JSP and Servlet requests received by popular Web Apache (IIS). HTTP servers server such or as the Apache Software Internet Foundations

Microsofts

Information Services

Tomcat is also integrated into the Java 2 Enterprise Edition

reference implementation from Sun Microsystems.

Following the steps below to install Tomcat:


This section will acquaint you with the basic information used during the configuration of the container. All of the information in the configuration files is read at startup, meaning that any change to the files necessitates a restart of the container. Installing Tomcat on Windows can be done easily using the Windows installer. Its interface and functionality is similar to other wizard based installers, with only a few items of interest. 1. Download apache-tomcat-6.0.18.zip or Jakarta-tomcat-6.0.18.zip (or the Version appropriate for your system) to your hard disk. 2. Use a file extractor tool (such as WinZip) to extract the content of apache-tomcat-6.0.18.zip or Jakarta-tomcat-6.0.25.zip to the c:\ drive. This will create a directory named Tomcat 6.0 or Jakartatomcat-6.0.25.

SRIKANTH & PRAVEEN

Page 1

Tomcat Installation Guide


Step 1:

Step 2:

SRIKANTH & PRAVEEN

Page 2

Tomcat Installation Guide


Step 3:

Step 4:

SRIKANTH & PRAVEEN

Page 3

Tomcat Installation Guide


Step 5:

Step 6:

SRIKANTH & PRAVEEN

Page 4

Tomcat Installation Guide


Step 7:

Step: 8

SRIKANTH & PRAVEEN

Page 5

Tomcat Installation Guide


For Tomcat to work correctly, you must define environment variables JAVA_HOME and CATALINA_HOME should point to directory containing your java installation (ours is C:\Program Files\Java\jdk1.5.0), and CATALINA_HOME should point to the directory that contain Tomcat (ours is C:\Program Files\Apache Software Foundation\Tomcat 5.5). To define these variables on windows, 1. Right click on the My Computer icon on your desktop and select Properties from the menu. The System Properties dialog appears.

2. Select the Advanced tab at the top of the System Properties dialog. Click the Environment Variables button to display the Environment Variables dialog.

SRIKANTH & PRAVEEN

Page 6

Tomcat Installation Guide

3. Click the New button under the User variables box. This will cause the Edit User Variable dialog to appear.

4. Enter JAVA_HOME for variable name and C:\Program Files\Java\jdk1.6.0 for Variable value. Click the OK button to complete the setting of the JAVA_HOME variable. This will return to the Environment Variable dialog.

SRIKANTH & PRAVEEN

Page 7

Tomcat Installation Guide

5. Click the New button under the User Variable box. This will cause the Edit User variable dialog to appear. 6. Enter CATALINA_HOME for variable name and C:\Program Files\Apache Software Foundation\Tomcat 6.0 for Variable value. Click the OK button to complete the setting of the CATALINA_HOME variable. This will return to the Environment Variables dialog.

SRIKANTH & PRAVEEN

Page 8

Tomcat Installation Guide


7. Click the OK buttons to close the Environment Variables and System Properties dialogue. After setting the environment variables, you can start the Tomcat Server. In this directory are the file tomcat6 service runner copy into desktop. Run the tomcat6 service runner.

To verify that Tomcat is executing and can respond to requests, open your Web browser and enter the URL http://localhost:9000/. This should display the Tomcat documentation home page.

SRIKANTH & PRAVEEN

Page 9

Tomcat Installation Guide


When using Oracle 9i (or) 10g, give the port number other than 8080, when apache is being installed. Apache Tomcat Server should be installed after Oracle is installed in the system. This is because Oracle has default port number 8080.

SRIKANTH & PRAVEEN

Page 10

You might also like