Ali
Ali

Reputation: 267187

How to install Tomcat on Windows XP?

I'm having trouble installing Tomcat on my windows XP machine. I already have Apache and JDK 6 installed, what I need to know is:

In my C:\Program Files\Java folder, I see the following folders, this should give you an idea of whether I need any additional stuff installed:

Thanks.

Upvotes: 1

Views: 25567

Answers (4)

Xonatron
Xonatron

Reputation: 16062

Not a complete answer, but an add-on (how does Stack Overflow handle this?):

For a Windows (XP, Vista, 7) install, you can choose (from the options listed at http://tomcat.apache.org/download-60.cgi):

  • .zip (pick according to your Windows version)
  • Windows Service Installer

Now the difference between the top two options:

  • .zip -- This is a manual install, where you extract the .zip and move it into whatever folder you wish. It does not install Tomcat as a service. It does not "do" anything unless you manually do something with it or have another program use it. It is a manual setup.
  • Windows Service Installer -- This is a self-installer, just run the .exe. It installs Tomcat as a Windows Service, which if you load up your Windows services (run "services.msc"), you'll see it listed as "Apache Tomcat 6.0 Tomcat6". During the install it will ask you certain setup questions like.

If you choose "Windows Service Installer", here are the default settings the install will ask you:

  • Type of install: Normal
  • Server Shutdown Port: 8005
  • HTTP/1.1 Connector Port: 8080
  • AJP/1.3 Connector Port: 8009
  • Windows Service Name: Tomcat6
  • Create shortcuts for all users: disabled (not that this matters if it's your machine)
  • Tomcat Administration Login - User Name: blank
  • Tomcat Administration Login - Password: blank
  • Tomcat Administration Login - Roles: manager-gui
  • Path of a Java SE 5.0 or later JRE installed on your system: C:\Program Files\Java\jre7 (if you are running Java SE 7)
  • Destination (install) folder: C:\Program Files\Apache Software Foundation\Tomcat 6.0

Hope this helps.

Upvotes: 0

marzagao
marzagao

Reputation: 3786

From the download page you should download the "Windows Service Installer" package.

As for the rest of the install process, follow just "Step 3: install Tomcat" described in the following page:

http://mircwiki.rsna.org/index.php?title=New_Installation_Instructions

Upvotes: 0

kdgregory
kdgregory

Reputation: 39606

I'm not sure what that URL is that you provided ("CGI" seems strange from a J2EE site), but the download links for tomcat are on its home page: http://tomcat.apache.org/

You should probably download version 6, particularly if you're using it for personal development. The older versions are available and maintained primarily to support users who don't want to migrate J2EE versions.

Finally: unless you are already using Apache, don't bother with it. Most commercial sites use Apache as a front-end because of its configurability (particularly URL rewriting). If you're just looking to develop web apps, Tomcat will act as web server in addition to servlet/JSP container.

Installation instructions (as well as all other instructions) are here:http://tomcat.apache.org/tomcat-6.0-doc/index.html

If you haven't done any J2EE development before, you'll need some docs on it. The Sun Tutorial is OK, but targeted to the Sun app-server and covers a lot of XML that isn't really necessary. Look at the intro chapters on web apps, then jump to chapter 11: http://java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html

Upvotes: 1

stian
stian

Reputation: 2894

Tomcat 6 doesn't really need the full JDK and it runs with Java 1.5 as well, so Java wise you should be well off. Just make sure that JAVA_HOME environment variable is set.

You can either get the core zip or tar.gz file, or the Windows Service installer file.

Core zip file:

http://www.apache.org/dist/tomcat/tomcat-6/v6.0.18/bin/apache-tomcat-6.0.18.zip

Just unzip it and run bin/startup.bat. If you'd like to install it as a Windows service (and get the "usual" program entry in Windows add/remove programs) you can get the Windows Service Installer file instead:

http://www.apache.org/dist/tomcat/tomcat-6/v6.0.18/bin/apache-tomcat-6.0.18.exe

By default tomcat listens to port 8080, so to check out the sample apps you need to go to http://localhost:8080/examples/. You can change the default port by editing server.xml in the conf directory.

Upvotes: 7

Related Questions