Deploying the enterprise archive package
To make available for use, you must create and deploy the application EAR file.
About this task
To create and deploy the EAR file:
Procedure
- Set up the application server appropriately for deploying the application. For more information about setting up the application server, refer to the installation documentation.
- Create the EAR package for the application server.
- To create the application EAR file for a single WAR deployment,
run the following command from the <INSTALL_DIR>/bin
directory: UNIX
./buildear.sh (.cmd for Windows) -Dappserver=<application server> -Dwarfiles=<war file> -Dearfile=<ear file> To create the application EAR file for a multiple WAR deployment, run the following command from the <INSTALL_DIR>/bin directory:
./buildear.sh (.cmd for Windows) -Dsupport.multi.war=true -Dappserver=<application server> -Dwarfiles=<war file,<comma-separated packages> -Dearfile=<ear file>To create additional WAR files, add the appropriate packages to the value of the
-Dwarfilesargument, separated by commas. For example, to create three WAR files, set the-Dwarfilesargument in the commands in Step 2 as follows:-Dwarfiles=<war file 1>,<war file 2>,<war file 3>Running the command in this step creates the EAR file in the <INSTALL_DIR>/external_deployments directory. It also places the multiple war files in the EAR file.
- To create the application EAR file for a single WAR deployment,
run the following command from the <INSTALL_DIR>/bin
directory: UNIX
- Deploy the EAR file on the application server. For more information about creating and deploying the EAR file, refer to the installation documentation.