Configuring web applications
You configure web applications through the deployment descriptor or through annotations.
About this task
Web 2.2, 2.3, 2.4, or 2.5 web projects have a web.xml file in the project WEB-INF directory. Configure the web.xml file to specify deployment information for modules in the web development environment.
Web 3.0 and later web projects do not require a web.xml file. You can configure annotations to specify deployment information. Optionally, you can generate a deployment descriptor stub if a Web 3.0 web project requires a web deployment descriptor.