13.9.4 Names of WAR applications

Specify the name of the application with the -name option of the cjimportwar command. The strings that can be specified in the -name option are the same as the strings that can be specified in the <display-name> tag beneath the <application> tag in application.xml. For details on the available characters, see cjimportwar (Importing WAR applications) in the uCosminexus Application Server Command Reference Guide. If a character that cannot be specified is used, the KDJE37206-E message is displayed.

If the -name option is not specified in the cjimportwar command, the J2EE server replaces the non-usable characters with underscores (_) and specifies the application name based on the WAR file name (in the archive format) or WAR directory name (in the exploded archive format). Note that if the application name specified by the J2EE server is duplicated in the J2EE server, a serial number (1 to 2147483647) is added at the end of that application name so that the application name becomes unique in the J2EE server.

The following tables describe example settings for the application names.

Table 13-24 Example settings for the application name (In the archive-format WAR applications)

-name option of the cjimportwar commandWAR file nameApplication name
SampleTPSampleWeb.warSampleTP
(Not specified)SampleWeb.warSampleWeb

Table 13-25 Example settings for the application name (in the exploded archive-format WAR applications)

-name option of the cjimportwar commandDirectory name of the WAR applicationApplication name
SampleTPSampleWebSampleTP
(Not specified)SampleWebSampleWeb