Configuring Web Application Deployment Descriptors

See Also

Deployment descriptors are XML-based text files whose elements describe how to assemble and deploy a module to a specific environment. The elements also contain behavioral information about components not included directly in code.

For web applications, there are three types of deployment descriptors:

To edit web.xml:

  1. In the Projects window, expand the Configuration Files node for your web application project.
  2. Double-click web.xml to open it in the web.xml Visual Editor.

    The web.xml Visual Editor opens in a Source Editor tab. The editor contains an Overview section and a section for most of the elements in the web.xml file.

  3. Edit the deployment descriptor as necessary. See the following topics for more information:
  4. (Optional) Click XML at the top of the web.xml Visual Editor to view and edit the deployment descripor's XML code.
  5. Choose File > Save to save your changes.

To edit sun-web.xml:

  1. In the Projects window, expand the Configuration Files node for your web application project.
  2. Double-click sun-web.xml to open it in the graphical editor.
    The graphical editor opens in a Source Editor tab. The editor contains a tree view of the module's contents on the left and property editors for each item on the right.
  3. Edit the deployment descriptor as necessary. See the following topics for more information:
  4. Choose File > Save to save your changes.

To edit context.xml:

  1. In the Projects window, expand the Configuration Files node for your web application project.
  2. Double-click context.xml to open it in the graphical editor.
    The graphical editor opens in a Source Editor tab. The editor contains a tree view of the module's contents on the left and property editors for each item on the right.
  3. Edit the deployment descriptor as necessary.
  4. Choose File > Save to save your changes.
See Also
About Deployment Descriptors
Configuring EJB Deployment Descriptors
Registering a Filter
Registering a Web Application Listener

Legal Notices