4.2. Configuring the JBoss Web Container
The JBoss Web container configuration defines how the container handles the execution and deployment of web application. The configuration is loaded and applied on the server startup: therefore, changes made to the configuration are not applied to the running server.
The JBoss Web behavior can be configured using Tag Library Descriptor (TLD) configuration files:
server.xml
- The
server.xml
is the main JBoss Web server configuration file (for further details refer to Section 4.3, “The Main Config File”) web.xml
- The
web.xml
file is a deployment descriptor defining URL mappings to servlets (defines how web applications are executed)Important
There are two types ofweb.xml
: the globalweb.xml
valid for the entire server and the localweb.xml
valid for a web application. The local file overrides the globalserver.xml
file for the given web application.The globalweb.xml
file is located in
directory, while the web-application specific file is located in the$JBOSS_SERVER_HOME
/deployers/jbossweb.deployer/WEB-INF/
directory of the web application.