Mahol Dot Org


Weblog For All Your Need

Tomcat Directory Tree structure Tomcat Fundamentals Tomcat Administration

Tomcat Directory Tree

As we know that the tomcat container is used for web applications deployment,the various directories inside the server directory have proper purposes. The figure below illustrates the directory tree for Apache-Tomcat server :

  1. lib folder – This is where all the supporting jar files are placed which are needed by our project such as drivers .
  2. conf folder-This is where all the server configuration files are present,e.g. server.xml,tomcat-users.xml etc.This files are server configuration files and are not project specific.server.xml contains information like running port,shutdown port for the server.
  3. webapps folder-As the name suggests this is the place where we have to keep our project folders to be recoganised by our tomcat server.It is this folder where server searches for deployed projects.Here only the project folders are placed.Project folders again need to follow a certain directory structure for successful deployment.The project directory tree is shown as below :1.WEB-INF folder – This folder contains folders classes ,lib.Inside classes folder all the java class files for servlets and pojos are kept.The server searches here for the class file of respective java source code.Inside lib project specific jar files such as drivers or others are kept.Inside the WEB-INF folder only lies the project configuration file web.xml which is also known as the deployment descriptor.It is the project configuration file which contains info like servlet mapping info,welcome file list,servlet and context params etc.

The html and jsp files are put in project folder parallel to WEB-INF folder.

Number of View :1166

Related posts:

  1. Basics of tomcat Apache-Tomcat Tutorial Download and Run Tomcat
  2. Introduction to Grails plugins Grails Plugins Tutorials Understanding Grails Plugins
  3. Groovy Grails Quick Start Groovy Getting Started Grails Define Groovy
  4. Quartz Open source Scheduler Basic Schedulers in Java Install Quartz for JAva
  5. Basics Of Groovy Define Groovy Introduction to Groovy
Receive Updates By Email

Enter your email address:

Delivered by FeedBurner

Category: Java


Leave a Reply

Lost !! Use Advanced Search


Content Protected Using Blog Protector By: PcDrome.

Mahol Dot Org is Digg proof thanks to caching by WP Super Cache