Create a folder for all your web applications

  1. On ocelot or weasel, change the permission of your ~ directory to 715
  2. Create a folder named cgs4854 and change its permission to 715
  3. Create a subdirectory of cgs4854 and name it webapps. Change its permissions to 705.

Structure of a Web Application

All web applications have a similar structure.

  1. The root directory of the web application.
  2. A subdirectory named WEB-INF. It is important that this is upper case, and that a hyphen is used, not an underscore.
  3. A web.xml file in the WEB-INF directory. There are two possiblities for the web.xml file
    1. A simple web.xml. Use this file if you are creating a web app on your local machine. Change your-user-name to your ocelot user name.
    2. A secure web.xml. Use this file if you are creating a web app that is visible on the internet. Change your-user-name to your ocelot user name.
  4. Two subdirectories of WEB-INF
    1. classes - place all java class files and packages here.
    2. lib - place java archives (jar) here. They will be available in the web app without being expanded.
  5. All files should have permissions of 604. All directories should have permissions of 705.

Create Two Web Apps

Create two web applications in the webapps folder

  1. ROOT - make sure this is upper case. Use the secure web.xml file. Change your-user-name to your ocelot user name.
  2. manager - use the manager web.xml file. This web.xml file is only to be used for the manager web application. Change your-user-name to your ocelot user name.

Test Your Webapp Folder

Test your webapp folder by running my script from
Test Webapps Folder

Notify Me

When this is compete, send me an e-mail message. I will set up your host on Tomcat, and will let you know what your URL is to access your web application folder. They will all be similar. For example, I have a web application folder at student01.cgs4854.cs.fiu.edu on port 8008. You will be given a similar URL. The only thing that will be different is the two-digit student number in the URL. You will use two URLs to access your folder:

  1. http://studentXX.cgs4854.cs.fiu.edu:8008/ - this is the URL for the ROOT web app.
  2. http://studentXX.cgs4854.cs.fiu.edu:8008/manager/html - this is the URL to manage your web applications.

After you notify me, I will tell you what your two-digit student number is for your URLs.