You can import a WAR application in an archive format or an exploded archive format. For details on the application formats, see 13.2 Executable J2EE application formats.
- Archive-format WAR applications
- Users who execute the cjimportwar command must have read permission for the WAR file to be imported.
- Note that the WAR file name specified when you import the application is used as the directory name in the work directory. Specify the WAR file name such that the work directory path length does not reach the maximum limit for the platform. For details on estimating the work directory path length, see Appendix C.1 Work directory of a J2EE server in the uCosminexus Application Server System Setup and Operation Guide.
- Exploded archive-format WAR applications
- The exploded archive-format WAR applications are imported as exploded archive-format applications by creating a root directory called the WAR directory. If you import a WAR application, the components such as Web applications are stored beneath the WAR directory. Note that an exploded archive-format WAR application cannot be executed with a remote environment.
Notes on using the exploded archive format
The notes on using the exploded archive format are as follows:
- When you import an exploded archive-format WAR application, you cannot specify a path containing the UNC name as the WAR directory path. If a path containing the UNC name is specified, a command execution error occurs.
- You cannot specify a path (including relative paths) indicating a directory immediately beneath the Windows drive (such as C:\) or the UNIX root directory (/) in the WAR directory. If a path indicating a directory immediately beneath the drive or the root directory is specified as a WAR directory in the -a option of the cjimportwar command, a command execution error occurs.
- If a WAR application with the same directory as the directory specified in the -a option of the cjimportwar command already exists in a J2EE server, a command execution error occurs during the import operation.
- If the J2EE server already contains a J2EE application with the following directories as the application directory or WAR directory, a command execution error occurs during the import operation:
- Directory above the directory specified in the -a option of the cjimportwar command
- Directory beneath the directory specified in the -a option of the cjimportwar command