ANT target: CreateInstance
CreateInstance executes all instance creation actions such as database configuration, WAS configuration, Web server configuration, Content Management configuration, generating WebSphere Commerce instance specific files and file permission settings.
If you want to skip any of the instance creation actions, you should not execute CreateInstance but should execute the subtargets selectively.
Calls:
- ANT target: PrepareDeployment
- ANT target: PrepareEAR
- ANT target: ConfigureDatabase
- ANT target: ConfigureCommerceServer
- ANT target: ConfigureWorkspaceComponent
- ANT target: RegisterInstance
- ANT target: ConfigureWebServer
- ANT target: PostInstanceCreation
- ANT target: StopWAS
Prerequisites:
The createInstance.properties file must exist for this Ant target to work. For information on generating the properties file, see ANT targets.
The createInstance.properties file contains a complete list of properties. If change any of the property values, you can do this by modifying the createInstance.properties file located at:
AIX|Linux|Solaris|Windows:
WC_installdir/instances/instance/properties/createInstance.properties
I5/OS: WC_userdir/instances/instance/properties/createInstance.properties
Required parameters:
- instance
- The name of the WebSphere Commerce instance with which you are working (for example, demo).
AIX|Linux|Solaris|Windows:
dbaPassword
- The database administrator's password. This parameter is required when:
(DB2) A database will be created for the new WebSphere Commerce instance
(Oracle) A user schema will be created for the new WebSphere Commerce instance.
This parameter is not required when using an existing database or schema for your new WebSphere Commerce instance.
- dbUserPassword
- The WebSphere Commerce database user's password.
- siteAdminPassword
- The WebSphere Commerce site administrator's password.
- merchantKey
- The WebSphere Commerce site merchant key.
- cmDBUserPwd (required if workspaces are enabled)
- The authoring server's workspace database user password.
- ftpUserPwd (required if configuring remote webserver via FTP option)
- The user password of the FTP account being used to configure the web server.
Example
AIX|Linux|Solaris|WC_installdir/bin/config_ant.sh -DinstanceName=instance -DdbaPassword=dbaPassword -DdbUserPassword=dbUserPassword -DsiteAdminPassword=siteAdminPassword -DmerchantKey=merchantKey CreateInstance
I5/OS: WC_installdir/bin/config_ant.sh -DinstanceName=instance -DdbUserPassword=dbUserPassword -DsiteAdminPassword=siteAdminPassword -DmerchantKey=merchantKey CreateInstance
Windows:
WC_installdir/bin/config_ant.bat -DinstanceName=instance -DdbaPassword=dbaPassword -DdbUserPassword=dbUserPassword -DsiteAdminPassword=siteAdminPassword -DmerchantKey=merchantKey CreateInstance
Recovery:
- If an error occurs, review the following logs files:
AIX|Linux|Solaris|Windows:
- WC_installdir/instances/instance/logs/createInstanceANT.log
- WC_installdir/instances/instance/logs/createInstanceANT.err.log
I5/OS|
- WC_userdir/instances/instance/logs/createInstanceANT.log
- WC_userdir/instances/ instanceName/logs/createInstanceANT.err.log
- Identify which step (Ant target) failed.
- Resolve the problem.
- Follow the recovery instructions in the failed target.
- Execute the rest of the targets.
The following type of error may be encountered when creating the WebSphere Commerce instance using the config_ant.sh script
WASX7017E: Exception received while running file "/QIBM/ProdData/ CommerceServer60/config/deployment/scripts/uninstallEar.jacl"; exception information: com.ibm.websphere.management.exception. ConfigServiceExceptioncom.ibm.websphere.management.exception. ConnectorException org.apache.soap.SOAPException:[SOAPException: faultCode=SOAP-ENV:Client; msg=READ TIMED UT; targetException= java.net.SocketTime outException: READ TIMED OUT] WASX7309W: No "save" was performed before the script "/QIBM/ProdData /CommerceServer60/Config/deployment/scripts/uninstallEar.jacl"exited; configuration changes will not be saved.If this error is encountered...
- Open the following file in a text editor: WC_profiledir/properties/soap.client.props
- Search for the com.ibm.SOAP.requestTimeout entry, and set the value to 6000. For example, com.ibm.SOAP.requestTimeout=6000.
- Follow the recovery instructions in the failed target.
- Execute the rest of the targets.
- ANT target: PrepareDeployment
PrepareDeployment performs various pre-instance creation configuration actions such as copying and updating the loader utility configuration files.- ANT target: ConfigureCommerceServer
The ConfigureCommerceServer executes steps to configure the WAS for the WebSphere Commerce instance. The target creates a profile, web server definition, virtual hosts, data source, and installs the WebSphere Commerce enterprise application. Finally, the web server plug-in configuration file is generated.- ANT target: ConfigureDatabase
ConfigureDatabase creates a database with schema, and populates the schema with the WebSphere Commerce bootstrap data.- ANT target: ConfigureWorkspaceComponent
ConfigureWorkspaceComponent is used to configure the workspaces feature on an authoring server.- ANT target: RegisterInstance
RegisterInstance generates the master instance configuration XML file and registers the instance into the Configuration Manager tool. RegisterInstance can be used to regenerate the master instance configuration XML file based on the property values in the ANT properties file.- ANT target: ConfigureWebServer
ConfigureWebServer supports IBM HTTP Server. ConfigureWebServer can also reconfigure the Web server to restore the initial configuration.- ANT target: PostInstanceCreation
PostInstanceCreation performs various post instance creation configuration actions such as setting file permissions on the WebSphere Commerce files for iSeries.Related concepts
Related Reference
ANT target: ConfigureCommerceServer