O'Reilly logo

Apache Tomcat 7 by Aleksa Vukotic, James Goodwill

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

APPENDIX B

The Web.xml File

In this appendix, we discuss the web application deployment descriptor, or web.xml file. The web.xml file is an XML file, defined by the servlet specification, with the purpose of acting as a configuration file for a web application. This file and its elements are completely independent of the Tomcat container. In this appendix, we will explain the Servlet 3.0 specific annotation based configuration that can be used instead of some web.xml configuration elements.

The Basic web.xml Configuration

The minimum requirements for web deployment descriptor is to have opening and closing <webapp> elements including Servlet API namespaces and schema definitions. Listing B-1 illustrates the minimal web.xml configuration file. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required