apache tomcat installation manual

Upload: girish-kumar-nistala

Post on 04-Apr-2018

240 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/30/2019 Apache Tomcat Installation Manual

    1/10

    T om cat Insta lla t ion Guide

    SRIKANT H & PRAVEEN Page 1

    Sett ing Up the Apache Tomcat Server:

    INTRODUCTION:

    Tomcat is a fully functional implementation of servlets and Java

    Server Pages (JSP). It in clu des 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 servers such as th e Apache Software Foundations

    Apache HTTP server or Microsoft s In ternet In formation Services

    (IIS). Tomcat is also in tegrated in to th e Java 2 Ent erpri se Edit ion

    reference im plement ation fr om Sun Microsystems.

    Following the steps below to inst all Tomcat:

    This section will acquaint you with th e basic informati on u sed durin g th e

    configuration of th e cont ainer. All of t he information in th e configuration

    files is read at startup, meaning th at 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

    simi lar t o oth er wi zard based in stallers, with only a few it ems of int erest.

    1. Download apache-tomcat-6.0.18.zip or Jakarta-tomcat-6.0.18.zip(or th e Version appropr iate for your system) to your h ard d isk .

    2. Use a file extractor tool (such as WinZip) to extract the content ofapache-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 Jakarta-

    tomcat-6.0.25.

  • 7/30/2019 Apache Tomcat Installation Manual

    2/10

    T om cat Insta lla t ion Guide

    SRIKANT H & PRAVEEN Page 2

    Step 1:

    Step 2:

  • 7/30/2019 Apache Tomcat Installation Manual

    3/10

    T om cat Insta lla t ion Guide

    SRIKANT H & PRAVEEN Page 3

    Step 3:

    Step 4:

  • 7/30/2019 Apache Tomcat Installation Manual

    4/10

    T om cat Insta lla t ion Guide

    SRIKANT H & PRAVEEN Page 4

    Step 5:

    Step 6:

  • 7/30/2019 Apache Tomcat Installation Manual

    5/10

    T om cat Insta lla t ion Guide

    SRIKANT H & PRAVEEN Page 5

    Step 7:

    Step: 8

  • 7/30/2019 Apache Tomcat Installation Manual

    6/10

    T om cat Insta lla t ion Guide

    SRIKANT H & PRAVEEN Page 6

    For Tomcat to work correctly, you must define environmentvariables JAVA_HOME and CATALINA_HOME shou ld poin t todirectory cont ainin g your java installation (ours is C:\ ProgramFiles\ Java\ jdk 1.5.0), and CATALINA_HOME shou ld point to th edirectory th at cont ain Tomcat (ou rs is C:\ Program Files\ ApacheSoftware Foundati on\ Tomcat 5.5).

    To defin e these variables on win dows,

    1. Right click on the My Computer iconon your desktop and select Propertiesfrom the menu. The SystemProper t ies dialog appears.

    2. Select the Advanced tab at the top of the System Properties dialog.Click t he Environment Variables but ton t o display th e Environm ent

    Variables dialog.

  • 7/30/2019 Apache Tomcat Installation Manual

    7/10

    T om cat Insta lla t ion Guide

    SRIKANT H & PRAVEEN Page 7

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

    4. Ent er JAVA_HOME for variable name and C:\ ProgramFiles\ Java\ jdk 1.6.0 for Variable valu e. Click the OK bu tt on tocomplete the setting of the JAVA_HOME variable. This will returnto th e Envir onment Variable dialog.

  • 7/30/2019 Apache Tomcat Installation Manual

    8/10

    T om cat Insta lla t ion Guide

    SRIKANT H & PRAVEEN Page 8

    5. Click the New button under the User Variable box. This will causeth e Edit User variable dialog to appear.

    6. Ent er CATALINA_HOME for var iable name and C:\ ProgramFiles\ Apache Software Foundation\ Tomcat 6.0 for Variable value.Click the OK button to complete the setting of theCATALINA_HOME variable. This will return to the EnvironmentVariables dialog.

  • 7/30/2019 Apache Tomcat Installation Manual

    9/10

    T om cat Insta lla t ion Guide

    SRIKANT H & PRAVEEN Page 9

    7. Click the OK buttons to close the Environment Variables and SystemProper t ies dialogue.

    After sett ing the envir onment variables, you can star t th e Tomcat Server.In this directory are the file tomcat6 service runner copy intodesktop. 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.

  • 7/30/2019 Apache Tomcat Installation Manual

    10/10

    T om cat Insta lla t ion Guide

    SRIKANT H & PRAVEEN Page 1 0

    When using Oracle 9i (or) 10g, give the port number other than 8080,when apache is being installed. Apache Tomcat Server should beinstalled after Oracle is installed in the system. This is because Oraclehas defau lt port nu mber 8080.