
Note that web application specific configurations should NEVER be placed in the shared web.xml. Each of the web application may optionally override shared configurations by defining their own web.xml file located in TOMCAT_ROOT_DIR\webapps\PROJECT_DIR\WEB-INF folder. This configuration file is used for basic web application’s configuration shared by all web applications that will be deployed on the Tomcat server instance.

It is located in the TOMCAT_ROOT_DIR\conf folder. Now let’s look at web.xml deployment descriptor configuration file, which is one of the main configuration files for the Tomcat server. Please refer to the official documentation here for the version you want to install. Also note that the configurations discussed in this article are mainly applicable to Tomcat 8, but may not be applicable to earlier or later versions. Thus, if you change any of the Tomcat server’s configuration files, you need to restart the server.


Below are critical directories for the Tomcat: Note that in this article we use Windows specific directory path separator “\”, which is different from the one used on Linux like systems. JDK 7 for Windows 7 64-bit was installed and configured.

In this example 64-bit Windows 7 Professional SP1 was used. In this example we will talk about Apache Tomcat Servlet/JSP container version 8.0.20 that implements the Servlet 3.1 and JavaServer Pages 2.3 specifications. There are many versions of the Tomcat server.
