Chapter 3: Tomcat Installation The Tomcat Installation Directory After your install Tomcat, you should see the directory structure shown in Figure 3-9 . Figure 3-9: Tomcat 6 directory structure As you can see, there are differences between the Tomcat 6 directory structure and that of older Tomcat versions: . Tomcat 5.5 and earlier Tomcat versions have shared, common, and server directories under the Tomcat install directory. The /shared directory is to be used by Web applications that want to share classes and JAR files with each other; the /commondirectory contains class files and JAR files that were visible to both the Tomcat server, as well as all deployed Web applications. The /server directory, on the other hand, contains classes and JAR files visible only to Tomcat. . Tomcat 6 does not have these directories. Instead, it has a lib directory ( /lib), where all the JAR files used by Tomcat go. This is visible to all Web applications, too; however, Web application specific JAR files should not be placed here. This directory structure is explained in greater detail in the next chapter, but briefly, the different directories are: . bin: The bin directory contains the shell scripts and batch files for starting Tomcat in various modes. It also includes a pre-compiler for JSP pages that can improve startup time and first-time response (the time it takes for the server to respond to a request for a JSP page that has not been previously compiled). Compilation occurs only once, but it can frustrate the first visitor to a site after the server is restarted because of the long response time. . conf: The conf directory contains the configuration files for Tomcat. These include general server configuration files, a default user list for file-based authentication and security for
For high quality website hosting services please check cheap web hosting website.