Deployment in Tomcat 7
Deployment is basically defined as the installation of the WAR files in the web application. In other words, we can define the unpacking of the WAR file in the Tomcat webapps
directory.
Structure of the WebArchive
You develop your web application within a specified directory structure so that it can be archived and deployed on Tomcat 7. All servlets, classes, static files, and other resources belonging to a web application are organized under a directory hierarchy. The root of this hierarchy defines the document root of your web application. All files under this root directory can be served to the client, except for files under the special directory WEB-INF
, located under the root directory. The name of your web application is used to resolve requests for components of the application.
Note
Always place private files (files which are not required to serve to the client) in the WEB-INF
directory, under the root
directory. All files under WEB-INF
are private, and are not...