Tomcat Setup

Setting up a Base for Tomcat

The base directory Tomcat uses will be located under your home-page. This directory consists of the server's applications and configuration files.

To set up the base directory, follow these instructions:

  1. Choose and create the base directory under your home directory (~/). For example ~/tomcat-base.
  2. Tomcat expects to find the name of its base directory in the environment variable $CATALINA_BASE, so you should set this variable properly using the shell command:
    > setenv CATALINA_BASE <your chosen base>
    For example:
    > setenv CATALINA_BASE ~/tomcat-base
  3. To make the CATALINA_BASE variable set every time you log into your Unix account, insert the setenv code into your .cshrc file. For example:
    > echo "setenv CATALINA_BASE ~/tomcat-base" >> ~/.cshrc
  4. Call the setup script of DBI. This script simply copies the files needed by Tomcat into CATALINA_BASE. Use the following from Unix shell:
    > ~dbi/tomcat/bin/setup
setup

Tomcat is now ready to run.