A configuration file that describes how a web application should be deployed.
A configuration file that describes how a web application should be deployed. There are two types of deployment descriptors: Java EE deployment descriptor and vendor specific runtime deployment descriptor. The first is defined by the language specification. The second is provided by the vendor of the application server. For example, the web.xml
file is a standard Java EE deployment descriptor, specified in the Java Servlet specification, but the sun-web.xml
file contains configuration data specific to the Sun GlassFish Enterprise Server implementation.
For web applications written using the Java programming language, the web application deployment descriptor is written using the EXtensible Markup Language (XML) syntax. The web application deployment descriptor is named web.xml
and if included with web application, it should reside in the WEB-INF
folder under the web application root folder. The contents of this file direct a deployment tool to deploy a module or application with the specified settings, and describes other specific configuration requirements and/or container options.
For Java EE applications, the deployment descriptor must be named application.xml
and must be placed directly in the META-INF
folder at the top level of the application .ear file.
References: