Tomcat


Class Paths

PathPurpose
$CATALINA_HOME/common/classes
$CATALINA_HOME/common/lib
?? $CATALINA_HOME/commons/endorsed
Made visible to both Tomcat internal classes and to all web applications. Normally, application classes should NOT be placed here
$CATALINA_HOME/server/classes
$CATALINA_HOME/server/lib
Classes and resources required to implement Tomcat 4 itself. These classes and resources are TOTALLY invisible to web applications.
$CATALINA_HOME/shared/classes
$CATALINA_HOME/lib
Classes and resources that you wish to share across ALL web applications (unless Tomcat internal classes also need access, in which case you should put them in the Common instead).
~/WEB-INF/classes
~/WEB-INF/lib
Classes and resources restricted to one WEB App.
Found by going to tomcat docs -> developer guide -> deployment
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/deployment.html

Directory Viewing, disabling

    <servlet>
        <servlet-name>default</servlet-name>
        <servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
        
        <init-param>
            <param-name>debug</param-name>
            <param-value>0</param-value>
        </init-param>
        
        <init-param>
            <param-name>listings</param-name>
            <param-value>false</param-value>
        </init-param>
        
        <load-on-startup>1</load-on-startup>
    </servlet>