Free Jobs

Java Forums: Core Java (15) J2EE (3) EJB (5) Servlet (3) JDBC (6) Hibernate (2) Struts (1) Swing (1) Oracle (7) JSP (4) Other (10)

Topic: Installing Tom Cat Apache Server on Windows when IIS is already there

To get the Posted Questions details daily in your mail Click Here

Share this Post on Facebook/Twitter/Orkut Bookmark and Share

User: dhiraj5079 Post Date: 08 Sep 2010 08:23

In this article I will be discussing how to install Tom Cat Apache server on Windows Environment where IIS is already installed and run your first Hello World JSP page.This article is tested on Windows XP machine with IIS 5.1 Already Intalled.

Main Content:
You need to have JDK 1.6 installed on your system in order for Tomcat 6.0 to work properly.
you can get it from

Below are the steps to install Tom Cat Apache server:

a)Download the windows version of Tom Cat Apache server from the URL below:
On the above URL select 6.0.29--Binary Distributions--Core--32 Bit Windows Zip

b)Unzip the downloaded zip file and move folder "apache-tomcat-6.0.29" with all its content to C: drive.

c)To run your apache server go to

Start -- Run -- C:\apache-tomcat-6.0.29\bin\startup.bat

d)To stop your apache server go to
Start -- Run -- C:\apache-tomcat-6.0.29\bin\shutdown.bat

e)Now start preparing to run your first JSP page :
type http://localhost:8080/ in the browser if nothing opens.
type http://localhost/ this will open IIS pages.
This means port 8080 is already captured by IIS so we need to set a different port for Apache Server.

Go to C:\apache-tomcat-6.0.29\conf\server.xml and change 8080 to 1979(or any port greater than 1024)

Save the file server.xml and restart the computer.

f)Now again restart the apache by
Start -- Run -- C:\apache-tomcat-6.0.29\bin\startup.bat

then browse http://localhost:1979/

Apache pages should come.

g)Now for first jsp page:

Browse to C:\apache-tomcat-6.0.29\webapps
Create a folder say MyJsp

Inside that MyJsp folder create a .txt File and rename it to index.jsp

open the index.jsp file in notepad and put the following text into that

Hello World!

Save the file .

h)Now browse the below URL to see your first JSP file.


In Case you are having any issue or for your further convenience you can create two environment variables, CATALINA_HOME and JAVA_HOME
as described below:

CATALINA_HOME : C:\apache-tomcat-6.0.19 (Exactly not this,Depends on your installed version)
JAVA_HOME : C:\Program Files\Java\jdk1.6.0_03 (Exactly not this,Depends on your installed version)

To create a environment variables in Windows XP, go to Start -> Settings -> Control Panel -> System -> Advanced -> Environment Variables ->

System variables -> New. Enter the name and value for both the variables if it is not there.

Thus we can run a JSP page which is first step towards creating a web application in java technology.

About Writer:
Hi,I am IT Professional From Mumbai

Writer's Link: http://

Writer's Email:

Post Comment

Similar Articles Top ArticlesLatest Articles Other Articles by this Author Copyright © 2009-2011 | All Rights Reserved
All content of this website is protected by copyright laws and should not be reproduced in any form or by any means without written permission
(Best viewed in IE 8.0+ or Firefox 3.0+ at resolution of 1024 * 768 or higher)