Pages

Sunday, April 22, 2012

Understanding Directories of Tomcat Server


A typical tomcat server will have the following directories:

/bin: Contains the start-up and shutdown scripts for both Windows and Linux. Jar files with classes required for tomcat to start are also stored here.

/conf: Contains the main configuration files for Tomcat. The two most important are server.xml and the global web.xml.

/lib: Contains the Tomcat Java Archive (jar) files, shared across all Tomcat components. All web applications deployed to Tomcat can access the libraries stored here. This includes the Servlet API and JSP API libraries.

/logs: Contains Tomcat’s log files.

/temp: Temporary file system storage.

/webapps: The directory where all web applications are deployed, and where you place your WAR file when it is ready for deployment.

/work: Tomcat’s working directory where Tomcat places all servlets that are generated from JSPs. If you want to see exactly how a particular JSP is interpreted, look in this directory.