Ant target: InstallEAR

InstallEAR installs the installable EAR into the profile's application server (server1) and maps all EJB modules to the data sources that CreateDataSourceV5 Ant target creates. The CreateVirtualHosts Ant target creates the virtual hosts which InstallEAR maps to the virtual hosts.

Important: This Ant target is to be used only as a part of WebSphere Commerce instance creation.

Called by



  • The Administrative server must be running to run the ConfigureCommerceServer target and any subtargets.
  • The file must exist for this Ant target to work. For information about generating the properties file, see Ant targets.

Required parameters

The name of the WebSphere Commerce instance with which you are working (for example, demo).

Optional parameters

The directory path to the expanded EAR to be deployed or file path to the collapsed EAR to be deployed


  • For IBM i OS operating systemSolarisLinuxAIXWC_installdir/bin/ -DinstanceName=instance_name InstallEAR
  • WindowsWC_installdir/bin/config_ant.bat -DinstanceName=instance_name InstallEAR