WAR File
In the WAR File properties page of the Web Component Wizard, you can choose to:
-
create a standalone WAR module
-
create a new module in an application EAR or
-
select a WAR file to contain your web component
and enter the general settings for the WAR file.
Choosing the WAR File
To obtain a WAR file for your web component:
-
If you do not already have a WAR file in which to assemble the web component:
-
Select Create a New Stand-alone WAR Module in the WAR Location Pane.
-
Enter a display name for the WAR file in the WAR Display Name field. This name will be displayed in Deployment Tool tree view.
OR
-
Select Create New WAR File in Application in the WAR Location pane.
-
Select the application that will contain the WAR file from the drop-down list.
-
Enter a display name for the WAR file in the WAR Display Name field. This name will be displayed in deploytool tree view.
-
If you have a WAR file in which to assemble the web component:
-
Select Add to Existing WAR File from the WAR File Location pane.
-
Choose the WAR file from drop-down list.
Adding Content to the WAR File
To add files or components to your WAR file do the following:
-
Click the Edit button to open the Edit Contents dialog box. After adding a file or component, it will be listed in the Contents field. Note: You must enter all of the classes and content files required by your web component.
-
You can Click Description to enter a description of your WAR file.
-
Click Advanced Settings to go to the Advanced Settings dialog box to define the WAR file's advanced settings: An example is the MIME mapping to be used.
-
Click Icons to go to the Icons dialog box to select the icon that GUI tools will use to represent your WAR file. You can select only GIF or JPEG files that are either 16x16 or 32x32.
Define the Context Root for the Web Module
In order to deploy your web module to the server, you must define the context root for the web module. The context root provides a way to distinguish resources in your web module from resources in other applications deployed to the same server instance.
Enter the context root for the web module in the Context Root field in the Sun-specific Settings pane. The context root starts with a back slash / and ends with a
string.
Click the Sun-specific Settings button to enter the deployment settings for the following:
See also
Advanced Settings
Legal Notices