Intranet Journal
The online resource for intranet professionals
In my previous article, Getting Your Local Java Development Environment Set Up, I guided you through installing and completing basic configurations for Apache and Tomcat. In this article, I would like to explain how to configure your environment for your projects so you can run and manage them. I will explain the configuration that enabled us to execute the Snoop Servlet last time.
The name given to a predefined, categorized group of files (which I will call a project) is context. In order for Tomcat to process your requests successfully, it must be configured with the following information:
1. What contexts are defined and available in the environment
2. What servlets and jsp files belong to each context
In my previous article, we configured the Tomcat and Apache communication using the JServ module. The examples I give here assume the JServ configuration, but you can apply the logic to the newer, mod_jk environment. The process and concepts are the same, however, the look of the configuration files are a little different.