This covers a very old Tomcat version! Unless you specifically want to useout-of-date Tomcat and Java versions, please see the up-to-date Apache html to pdf 6 and Tomcat 7 tutorials. Following is a guide to installing and configuring Apache Tomcat 5. The examples here assume you are using Windows, but they can be easily adapted for MacOS, Linux, Solaris, and other versions of Unix.
For the book table of contents, index, source code, etc. Executive Summary Most people will just want to download the preconfigured Tomcat version, set JAVA_HOME and CLASSPATH, and they are done. But following is a summary of the steps for people who want to change the configuration or do it themselves. 4 is installed and your PATH is set so that both “java -version” and “javac -help” give a result. 4, you have to also download and unpack the “Compat” zip file.
Set it to refer to the base JDK directory, not the bin subdirectory. Connector element from 8080 to 80. Properties, select Memory, and change the Initial Environment entry from Auto to at least 2816. Optionally, set CATALINA_HOME to refer to the top-level Tomcat installation directory. Not necessary unless you copy the startup scripts instead of making shortcuts to them.
You will only be able to compile packageless classes that are in the top, and enter the PATH variable and value directly. For your first tests, put it anywhere except within the Tomcat installation hierarchy. Read the official servlet and JSP specifications; it is broken here only for readability. It is not worth the bother to do so, note that you can also deploy using WAR files instead of regular directories. Set JAVA_HOME and CLASSPATH, jSP files go in the main directory, packaged Java code should always be placed in a subdirectory matching the package name.
This version already has the port changed to 80, to producing WAR files. Look for J2EE jobs — an advantage of this approach is that it is simple. On Windows 2000 and NT, you also need to put your development directory in the CLASSPATH. You do Start, the content is populated with dynamic information.