Directory Structure
Tomcat installation provides these directories:
- bin: for Tomcat's binaries and startup scripts.
- conf: global configuration applicable to all the webapps. The default installation provides:
- One Policy File: catalina.policyfor specifying security policy.
- Two Properties Files: catalina.propertiesandlogging.properties,
- Four Configuration XML Files: server.xml(Tomcat main configuration file),web.xml(global web application deployment descriptors),context.xml(global Tomcat-specific configuration options) andtomcat-users.xml(a database of user, password and role for authentication and access control).
 Theconfalso contain a sub-directory for each engine, e.g.,Catalina, which in turn contains a sub-sub-directory for each of its hosts, e.g.,localhost. You can place the host-specific context information (similar tocontext.xml, but named aswebapp.xmlfor each webapp under the host).
- lib: Keeps the JAR-file that are available to all webapps. The default installation include servlet-api.jar(Servlet),jasper.jar(JSP) andjasper-el.jar(EL). You may also keep the JAR files of external package here, such as MySQL JDBC driver (mysql-connector-java-5.1.{xx}-bin.jar) and JSTL (jstl.jarandstandard.jar).
- logs: contains the engine logfile Catalina.{yyyy-mm-dd}.log, host logfilelocalhost.{yyyy-mm-dd}.log, and other application logfiles such asmangerandhost-manager. The access log (created by theAccessLogValve) is also kept here.
- webapps: the default appBase- web applications base directory of the hostlocalhost.
- work: contains the translated servlet source files and classes of JSP/JSF. Organized in hierarchy of engine name (Catalina), host name (localhost), webapp name, followed by the Java classes package structure.
- temp: temporary files.