|
|
Welcome to Lecture Notes Twenty-Four. Here are the highlights:
32xxx and
33xxx) as described below.
The xxx stands for the last three digits in your current port.
Information about the Jakarta project can be found here. We now get started.
1. Download a latest Tomcat.
Download
fromjakarta-tomcat-3.2.3.tar.gz 17-Jul-2001 10:33 2.7M GZIP compressed file
into yourhttp://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.3/bin/
directory (which is where your/u/username/apache
apache_1.3.20 directory also is). You could also get the file from
2. Uncompress and unpack the archive/u/dgerman/public/jakarta-tomcat-3.2.3.tar.gz
Run
in the directory, thengunzip *.gz
and check that atar xvf *.tar
jakarta-tomcat-3.2.3-src
directory gets created. Then remove the .tar file. 3. Configure Tomcat
Go to
and make a backup copy of/u/username/apache/jakarta-tomcat-3.2.3/conf
server.xml (mine is called server.xml.backup). Then make the following changes.
<!-- Normal HTTP -->
<Connector className="org.apache.tomcat.service.PoolTcpConnector">
<Parameter name="handler"
value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
<Parameter name="port"
value="32xxx"/>
</Connector>
<!-- Apache AJP12 support. This is also used to shut down tomcat.
-->
<Connector className="org.apache.tomcat.service.PoolTcpConnector">
<Parameter name="handler"
value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/>
<Parameter name="port" value="33xxx"/>
</Connector>
Where 32xxx
and 33xxx are your own ports
and they replace the defalut values (8080 and 8007).
4. Prepare the environmentburrowww.cs.indiana.edu% diff server.xml server.xml.backup 225c225 < value="32xxx"/> --- > value="8080"/> 260c260 < <Parameter name="port" value="33xxx"/> --- > <Parameter name="port" value="8007"/> burrowww.cs.indiana.edu%
Add the following three lines at the end of your ~/.cshrc file:
Save the file, log out and log back in (or usesetenv JAVA_HOME /l/jdk1.2 setenv TOMCAT_HOME /u/username/apache/jakarta-tomcat-3.2.3 setenv CLASSPATH .:$TOMCAT_HOME/lib/servlet.jar setenv myServlets $TOMCAT_HOME/webapps/examples/WEB-INF/classes
source on it). 5. Start Tomcat
Go to $TOMCAT_HOME then type bin/startup.sh at the prompt, press Enter.
6. Run servlets, demo JSPs
In Netscape go to:
wherehttp://burrowww.cs.indiana.edu:32xxx
32xxx is your own port. Try some of the servlets and JSPs listed on the page. (Here's my installation.)
Your installation is complete if all the examples run.
7. Stopping Tomcat
Go to $TOMCAT_HOME then type bin/shutdown.sh at the prompt, press Enter.
You might need to refer to this a lot later, so better index it here.