Show TOC

Procedure documentationAdding the application.xml to Enterprise Application Projects Locate this document in the navigation structure

 

In Java EE 5, the availability of the application.xml deployment descriptor in the Enterprise application archive is optional. If the application.xml is missing, the system will scan the archive for available modules there.

By default, the Developer Studio does not generate this deployment descriptor in Enterprise Application Projects. There are options to add it if you want.

Procedure

There are two ways to add the application.xml to Enterprise Application Projects:

  • During the project creation

    Select the Generate Deployment Descriptor option at the new project wizard.

  • At any time later

    1. Open the Enterprise Application Project in the Project Explorer.

    2. In the context menu, choose the   Java EE Tools   Generate Deployment Descriptor Stub  .

    The application.xml appears in the META-INF directory of the Enterprise Application Project.