Home > Articles > Operating Systems, Server > Solaris

  • Print
  • + Share This
This chapter is from the book

This chapter is from the book

5.9 The default-web.xml File

The default-web.xml is a virtual server–specific web deployment descriptor file whose configuration settings are inherited by all web applications deployed on the virtual server. This file configures various servlets (such as the DefaultServlet and the JspServlet) and specifies the MIME types associated with specific extensions. (For more information about MIME mapping elements, see the Java Servlet specification.)

Individual web applications can override the configuration settings inherited from this file with settings contained in their own deployment descriptor file (web.xml).

5.9.1 Syntax

The default-web.xml file is an XML-formatted file. All entries in this file are validated against the XML data type definition (DTD) for the Servlet 2.3 deployment descriptor as follows:

    <!DOCTYPE web-app
       PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"

5.9.2 Context

Each server instance has its own default-web.xml file; therefore, there is a one-to-one correspondence between the server instance and this file.

5.9.3 Modifications

The Administration Console and command line interface do not provide a method for managing the default-web.xml. As such, all modifications to this file must be made on a particular Administration Node. After this has been performed, the modifications must be pulled back into the configuration and then pushed out to additional Administration Nodes as appropriate.

  • + Share This
  • 🔖 Save To Your Account