uCosminexus Application Server, Application Setup Guide

[Contents][Index][Back][Next]

8.1.2 Importing the J2EE applications that are in exploded archive format

J2EE applications that are in exploded archive format do not contain a class file and JAR file of each component in the working directory of J2EE server. These applications contain only the DDs and the path information of the exploded archive and are the J2EE applications with EAR files or ZIP files deployed in the exploded archive path. However, the RAR files included in J2EE applications are stored in the archive format.

You can import the J2EE applications that are in exploded archive format by the following two methods:

The following are the procedures to import the applications that are in exploded archive format:

Organization of this subsection
(1) Importing an application directory as an application in exploded archive format
(2) Importing a J2EE application as an application in exploded archive format

(1) Importing an application directory as an application in exploded archive format

Use the following procedures to register an application directory in the J2EE server:

  1. Create an application directory.
    Create an application directory to create a new J2EE application in exploded archive format. For details on the configuration of an application directory, see 13.4.2 Configuring an application directory in the uCosminexus Application Server Common Container Functionality Guide.
  2. Import the application directory.
    Register the application directory created in step 1 in the J2EE server.
  3. Execute the following command to import an application directory:

Execution format

cjimportapp [server-name] -a  application-directory-path
 

Execution example
cjimportapp MyServer -a AppDirPath
 

For details on the cjimportapp command, see cjimportapp (Importing J2EE applications) in the uCosminexus Application Server Command Reference Guide.

Note:

(2) Importing a J2EE application as an application in exploded archive format

Import the EAR file or the EAR file containing the exported runtime information in exploded archive format.

Execute the following command to import an application in exploded archive format:

Execution format

cjimportapp [server-name]-f  file-path -d exploded-archive-path
 
The contents of an EAR file or ZIP file are deployed in the exploded archive path.

Execution example
cjimportapp MyServer -f App1.zip -d ApplicationDir
 

For details on the cjimportapp command, see cjimportapp (Importing J2EE applications) in the uCosminexus Application Server Command Reference Guide.

Note:
  • The user who starts the J2EE server requires write-permission for the directory specified in the exploded archive path.
  • You cannot use a J2EE application with an <alt-dd> tag specified in application.xml, in exploded archive format.
  • You cannot import an application if a J2EE application that uses the same directory as the exploded archive exists in the J2EE server.
  • The other precautions are the same as when importing J2EE applications that are in the archive format. To import J2EE applications that are in the archive format, see the precautions described in 8.1.1 Importing the J2EE applications that are in archive format.
  • The DD for various components under the application directory has UTF-8 encoding.