Changes to Tomcat Instructions

Since publication of XML and Java From Scratch, new versions of Tomcat have been released.

Tomcat version 3.*

For version 3.*, follow the instructions in the book, and don't forget to make the changes to tomcat.bat!

Make sure that tomcat.bat contains the line

set CLASSPATH=%CLASSPATH%;%cp%;
and not
set CLASSPATH=%cp%;%CLASSPATH%;

as in the original files.

Tomcat version 4.*

For version 4.* of Tomcat, CLASSPATH information for the server itself is taken care of, but you will still need to make a change to bin/catalina.bat or bin/catalina.sh to make sure the external classpath information is used by the installation.

For catalina.bat, change line 75 to read:

set CLASSPATH=%CLASSPATH%;%CP%

For catalina.sh, change line 85 to read:

CP=$CLASSPATH:"$CATALINA_HOME/bin/bootstrap.jar"

Tomcat 4.* doesn't always recognize that you have a JDK installed, which prevents the installer from working. If you have this problem, simply use the jakarta-tomcat-4.0.1.zip version and unzip the files into the appropriate directory.