CGS4825 Assignment 2

Due Friday, 2/17 at 11:59 pm.

To hand in the assignment, zip your webapps directory and upload it via the web: Submitting homework on-line via the Web.

Be sure that all your files and subdirectories are included in the zip file.
Do not modify your files on ocelot until after your assignment has been graded.

Create a New Web Application

Your are to create a new web application on ocelot. The name of the web app should be your user name. Use the secure web.xml file for this application.

After creating the new web application, open the manager application for your host. In the Deploy section, enter the name of the web application in the WAR or Directory URL: text box and click the Deploy button. If all went well, then you will see that your new web appication is running. If it is not running, then check that you have no errors in your web.xml file.

Edit the file named .cshrc in your ~ directory. Add the following commands to the end of the file

#
#Define the location of Java
#
setenv JAVA_HOME /depot/J2SE-1.5
#
#Define the location of Tomcat
#
setenv TOM_HOME /home/ocelot/aul-user-web/jakarta-tomcat-5.0.19
#
#Add directories and jars to the CLASSPATH
#
setenv CLASSPATH {$HOME}/cgs4825/webapps/ROOT/WEB-INF/classes
setenv CLASSPATH {$CLASSPATH}:{$TOM_HOME}/common/lib/servlet-api.jar
setenv CLASSPATH {$CLASSPATH}:{$HOME}/cgs4825/webapps/your-user-name/WEB-INF/classes

Replace your-user-name with your user name. These commands will allow you to compile java servlets on ocelot.

Configure the Apache Server

Configure the Tomcat Server

username Application