Installing Tomcat Under Windows

I l @ ve RuBoard

With JDK and Ant in place, you can install the last piece of the basic JSP architecture ”the JSP server itself. In this case, you'll be installing Apache Tomcat.

Downloading the Distribution

Point your browser to http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/bin/ and select the binary zip file. Save the file to a known location.

Unpacking the Distribution

Open the saved file using a zip unarchiver and extract all the files, preferably to C:\ (which will create a directory C:\jakarta-tomcat-4.0.1). Be sure to click Use Folder Names in the Extract dialog box, if it's offered .

Testing Tomcat

Click Program, Run, and enter c:\jakarta-tomcat-4.0.1\bin\startup.bat

You should see a window with content similar to this, indicating that Tomcat is up and running:

 Starting service Tomcat-Standalone Apache Tomcat/4.0.1 Starting service Tomcat-Apache Apache Tomcat/4.0.1 

If you open a browser and point it to http://localhost:8080/ , you should see the Web page shown in Figure A.1.

Figure A.1. The Tomcat startup window.

graphics/afig01.jpg

Assuming that your JDK is installed correctly and that you have JAVA_HOME set, there's essentially no way that Tomcat will fail to start up. If it doesn't start, though, recheck your JDK install.

I l @ ve RuBoard


MySQL and JSP Web Applications. Data-Driven Programming Using Tomcat and MySQL
MySQL and JSP Web Applications: Data-Driven Programming Using Tomcat and MySQL
ISBN: 0672323095
EAN: 2147483647
Year: 2002
Pages: 203
Authors: James Turner

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net