2,006 Views. It is the first choice for developing and debugging JSP programs. In any web application we can have following components – Static contents like HTML. It is widely used in small and medium-sized systems and where there are not many concurrent users. The most important file in here is … Tomcat will then install it automatically and deploy the … Last Modified: 2013-12-02. The directory structure of a webapp is as follows: "ContextRoot": contains the resources that are visible and accessible by the web clients, such as HTML, CSS, Scripts and images. conf - Server configuration files (including server.xml) and related DTDs. The sample TomCat application we will be using for this exercise is included in a git repository so that you can run through this tutorial easily. The webapps directory is where deployed applications reside in Tomcat. The classes should be located in a directory structure matching their package structure. 6.2 Web Application Directory Structure. In this chapter we will discuss the typical directory structure of a web application and its deployment. Webapp's Directory Structure. It is necessary to understand the Tomcat directory structure. Deploy a new web application either by uploading a WAR file or supplying a directory on the server. JSP (Java Server Pages) to generate dynamic content. Tomcat server is a free open source web application server, which belongs to lightweight application server. Tomcat WebApps Folder Structure. To work when deployed to a Tomcat server, compiled Java Platform Enterprise Edition (Java EE) web application archives (WAR files) must be structured according to certain guidelines.Your project directory doesn't have to meet the same standards, but it's a good idea to structure it in the same way to simplify compiling and packaging. lib folder : The lib directory contains all JAR files used by your web application. The URL of a webapp, by default, is the same as the base directory name (or context root) of the webapp. Servlets. directory structure […] Directory structure of Tomcat are bin - contain startup, shutdown, and other scripts (*.sh for UNIX and *.bat for Windows systems) and some jar files also there. A web application typically consists of a structured hierarchy of directories. Although the Servlet specification does not require servlet containers to support a hierarchical structure, it recommends that they do so, and most, if not all, comply with this recommendation. Undeploy an individual application. The webapps directory is the default deployment location, but this can be configured with the appBase attribute on the element. yehiaeg asked on 2010-01-25. In Tomcat, we have to move the war file to the CATALINA_BASE/webapps directory. 1 Solution. Client side files like CSS and Javascript. The root directory of the hierarchy serves as the document root for the web application. Explain directory structure of Tomcat? Java App Servers; Linux; Apache Web Server; 3 Comments. To give you the big picture, in the steps below, you will use Eclipse to create the following directory structure and files. This examples Tomcat "webapps" directory is located at: C:\Tomcat\Tomcat6.0\webapps This directory most often contains any third party libraries that your application is using.