Packaging a Web Module

See Also

During development, a web module is typically executed from its directory structure, that is, its unpacked form, to facilitate frequent and direct updates. However, once the contents of the web module are ready for deployment, the web module can be packaged into a Web ARchive, that is, a WAR, form for easy transfer.

To package a web module directory into a WAR file:

  1. In the Explorer, right-click the WEB-INF node, and choose Export WAR File from the contextual menu. Alternatively, choose Tools and choose Export WAR File from the main menu bar.
  2. In the Choose WAR File Name dialog box, type a name for the WAR file, and click OK. You do not need to add the .WAR extension explicitly.

Tip If the Export WAR File command does not appear on the contextual menu, ensure that you have mounted the root directory of the web module to be packaged on the Filesystem page in the Explorer.

A WAR file is created. By default, all files (with the exception of .java files) under the web module file system are included.

Tip

Note that web module packaging is affected by the properties set on the Archive tab of the WEB-INF property sheet. For more information, see Editing Web Module Archive Properties. This feature might not be included in your version of the IDE.

See Also

WAR Files
Editing Web Module Archive Properties


Legal Notices