I read through different sites and some mention turning off IIS and setting up Apache as the web server. Other sites describe setting up IIS to work with Tomcat. I am not sure if I need to do either as the Head First Servlets and JSP book does not detail this step. I would appreciate some advice on which path to choose (intalling apache to work with tomcat or setting up iis to work with tomcat) and details on how to set up tomcat.
Neither Apache nor IIS are needed to work with Tomcat. If you're chiefly interested in Tomcat's ability to run Java web-apps, then I'd advise not to install Apache - it just complicates things. You can leave IIS running, but you need to ensure that it uses a different port than Tomcat.
If IIS is set up on port 8080, you can have Tomcat use a different one. Look through the %TOMCAT_HOME%/conf/server.xml file for mentions or "8080", and change them appropriately.
Joined: Aug 05, 2007
Hello Ulf Dittmer,
Which port should I change it to? I tried port 9090 but that did not work.
I wanted to add that I downloaded and ran the following executable to install Tomcat apache-tomcat-5.5.23.exe for Windows XP. I believe this is valid.
V ray mentioned running the following on the command line, :C:\Apache\apache-tomcat-5.5.23\bin and then type : startup"
Can I use the tomcat version that I have or do I need to download a different version? Thank You-
Joined: Mar 22, 2005
but that did not work.
What does that mean? What happens when run the "startup" script? Is the TOMCAT_HOME environment variable set correctly?
The executable you have should work fine, as should using port 9090.