Working With Deployment Descriptors (web.xml)

See Also

A deployment descriptor identifies the elements belonging to a particular web module, such as servlets and JSP files. The deployment descriptor also provides configuration information for that web module's deployment. The deployment descriptor takes the form of a plain text file, called web.xml, written in XML (Extensible Markup Language) syntax.

To edit the web.xml file of an existing web module:

  1. In the Filesystems window, locate the web module directory and expand its WEB_INF subdirectory.
  2. Double-click the web.xml node to open the file in the Source Editor window.

When you save your changes, the IDE automatically parses the file and displays any errors in the Output window on the XML Parser pane.

Troubleshooting

If the port number of the server changes, the changes to the deployment descriptor do not take effect until you restart the web module.

See Also
  Web Modules (Concepts)
File Location in a Web Module
Editing Web Module Deployment Properties
Editing Web Module Security Properties
Editing Web Module References Properties

Legal Notices