You are on page 1of 15

INDEX

1. INSTALLING TOMCAT 2. INSTALL ADMIN PACKAGE(add-in) 3.

Prerequisites

Tomcat 5.0 requires JRE 5.0 or higher. OS: Win 7, JDK: jdk1.6.0_21 (Older Tutorial - Date: 05/25/08, OS: Win XPro, JDK: jdk1.6.0_03)

INSTALLING TOMCAT Install Java. Make sure you have Java 5 or 6 installed. Unzip Tomcat. Unzip tomcat-6.0.28-preconfigured.zip into the top level of the C drive. Set JAVA_HOME. Set this environment variable to point at the top-level of your Java installation directory (e.g., C:\Program Files\Java\jdk1.6.0_21). Use the Control Set CLASSPATH. Set this environment variable to include ".", C:\Servlets+JSP, and the servlet/JSP JAR files Test the server. Make sure you can start/stop the server. .

2. INSTALL ADMIN PACKAGE(add-in) from http://apache.opensourceresources.org//tomcat/tomcat-5/v5.5.34/bin/

3. ERROR AFTER INSTALLING TOMCAT(that we faced) Could not open Tomcat Administration TOOL Fixed by making changes in Server.xml file And Imparting roles to USER:tushar

3. OPEN Tomcat Administration TOOL The Administration Tool web application is the GUI tool for administering Tomcat. Before we can use it, or any of the GUI tools, we will first need to create a Tomcat administrator account, a Tomcat manager account and two roles: "admin" and "manager". To access Tomcat Administration tool go to Path: http://localhost:8080/admin

OVERVIEW OF THE ADMIN TOOL

Tomcat Administration Tool

4. ADDING A NEW USER To create a new User in Tomcat Open ADMINISTRATION TOOL Click User Actions

Select Create new user

5. ASSIGNING CREDENTIALS AND PREVILIGES

6. USER CREATED SUCCESSFULLY

7. OPENING TOMCAT APPLICATION MANAGER You can access the Manager Web Application by clicking the "Tomcat Manager" link in the left sidebar of the default Tomcat page. This will display a GUI that allows you to view the status of your installed web applications and even deploy new web applications. There is also a link to the "HTML Manager Help" which can give you more information on using the Manager Web Application.

Tomcat 5 includes a web application (installed by default on context path /manager) that supports the following functions:

Deploy a new web application from the uploaded contents of a WAR file. Deploy a new web application, on a specified context path, from the server file system. List the currently deployed web applications, as well as the sessions that are currently active for those web apps. Reload an existing web application, to reflect changes in the contents of /WEBINF/classes or /WEB-INF/lib. List the available security roles defined in the user database. Start a stopped application (thus making it available again). Stop an existing application (so that it becomes unavailable), but do not undeploy it. Undeploy a deployed web application and delete its document base directory (unless it was deployed from file system).

8. DEPLOYMENT MENU Deploy your custom WAR files using this menu

Tushar.war(or any custom war file) is uploaded using Deployment menu

9. Tushar.war successfully deployed

10.Status Web Application Finally, we have the Status web application, which displays the status of the Tomcat server, such as the memory utilization of the JVM, the version of JVM being run and the number and status of threads, among other parameters. This tool is new in Tomcat 5 and can be used to check if your Tomcat server is running low on system resources.

11. CHANGING PORT NUMBER OF THE TOMCAT FROM 8080 TO 90(ANY) Edit server.xml file in the directory "C:\Program Files (x86)\Apache Software Foundation\Tomcat 5.5\conf" as follows

<Connector port="90" (changed port from 8080 to 90) ..... </Connector>

11. PORT CHANGED SUCCESSFULLY

You might also like