Creating a War File

Prerequisites

The structure of your Web Module project QuickCarRentalWeb is currently displayed in the J2EE Explorer.

Procedure

       1.      Choose the project node QuickCarRentalWeb in the J2EE Explorer.

       2.      Open the context menu and choose Build Web Archive.

       3.      Confirm the message that files were generated successfully with OK.

Result

The archive file QuickCarRentalWeb.war has been created. It contains all the classes in the referenced Web project and the two deployment descriptors from the Web Application project. The archive file is added to the project structure as a separate node.

Next step:

Creating and Deploying the Complete J2EE Application