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:
- Choose and create the base directory under your home
directory (~/). For example ~/tomcat-base.
- 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
- 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
- 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
Tomcat is now ready to run.