A weblogic.Deployer Command-Line Reference
weblogic.Deployer
utility, a Java-based deployment tool that provides WebLogic Server administrators and developers command-line based deployment operations. Note:
See the WLST Command Reference for Oracle WebLogic Server for information about performing deployment operations using the WebLogic Scripting Tool (WLST).
This appendix includes the following sections:
Required Environment for weblogic.Deployer
Set up your environment to use the weblogic.Deployer
utility.
Syntax for Invoking weblogic.Deployer
java [SSL Arguments] weblogic.Deployer [Connection Arguments] [User Credentials Arguments] COMMAND-NAME command-options [Common Arguments]
Command names and options are not case-sensitive. See Commands and Options for detailed syntax and examples of using weblogic.Deployer
commands.
Note:
Entering unencrypted passwords in weblogic.Deployer
commands, whether entered in a command window or a script, is a security risk because they can be viewed by others. For information about entering passwords securely, see Do Not Include Unencrypted Passwords in Commands and Scripts in Securing a Production Environment for Oracle WebLogic Server.
SSL Arguments
java [ -Dweblogic.security.TrustKeyStore=DemoTrust ] [ -Dweblogic.security.JavaStandardTrustKeyStorePassPhrase=password ] [ -Dweblogic.security.CustomTrustKeyStoreFileName=filename -Dweblogic.security.TrustKeystoreType=jks [-Dweblogic.security.CustomTrustKeyStorePassPhrase=password ] ] [ -Dweblogic.security.SSL.hostnameVerifier=classname ] [ -Dweblogic.security.SSL.ignoreHostnameVerification=true ] weblogic.Deployer [ User Credentials Arguments ] COMMAND-NAME command-arguments
If you have enabled the domain-wide administration port, or if you want to secure your administrative request by using some other listen port that is secured by SSL, you must include SSL arguments when you invoke weblogic.Deployer
. Table A-1 describes all SSL arguments for the weblogic.Deployer
utility.
Table A-1 SSL Arguments
Argument | Definition |
---|---|
|
Causes This argument is required if the server instance to which you want to connect is using the demonstration identity and certificates. By default, |
|
Password that was used to secure the Java Standard Trust keystore. If the Java Standard Trust keystore is protected by a password, and if you want to trust its CA certificates, you must use this argument. By default, the Java Standard Trust keystore is not protected by a password. |
|
Causes |
|
Password that was used to secure the custom keystore. You must use this argument only if the custom keystore is protected by a password. |
|
Name of a custom Host Name Verifier class. The class must implement the |
|
Disables host name verification. |
Connection Arguments
java [SSL Arguments] weblogic.Deployer [-adminurl protocol://listen_address:port_number] [User Credentials Arguments] COMMAND-NAME command-options [Common Arguments]
Most weblogic.Deployer
commands require you to specify the -adminurl
arguments described in Table A-2 to connect to an Administration Server instance.
Table A-2 Connection Arguments
Argument | Definition |
---|---|
|
Listen address and listen port of the Administration Server. To use a port that is not secured by SSL, the format is In order to use an adminurl with the HTTP protocol, you must enable the HTTP tunneling option in the WebLogic Server Administration Console. See Setting Up WebLogic Server for HTTP Tunneling in Administering Server Environments for Oracle WebLogic Server. For instructions on enabling HTTP tunneling in the WebLogic Server Administration Console, see Configure HTTP protocol in Oracle WebLogic Server Administration Console Online Help. To use a port that is secured by SSL, the format is To connect to the Administration Server via a configured administration channel, you must specify a valid administration port number: There is no default value for this argument. |
User Credentials Arguments
java [ SSL Arguments ] weblogic.Deployer [Connection Arguments] [ { -username username [-password password] } | [ -userconfigfile config-file [-userkeyfile admin-key] ] ] COMMAND-NAME command-options [Common Arguments]
Most weblogic.Deployer
commands require you to provide the user credentials of a WebLogic Server administrator.
Table A-3 User Credentials Arguments
Argument | Definition |
---|---|
|
Administrator username. If you supply the |
|
Password of the administrator user. To avoid having the plain text password appear in scripts or in process utilities such as If you want to use a specific configuration file and key file, rather than the default files, use the |
|
Location of a user configuration file to use for the administrative username and password. Use this option, instead of the |
|
Specifies the location of a user key file to use for encrypting and decrypting the username and password information stored in a user configuration file (the |
Common Arguments
java [ SSL Arguments ] weblogic.Deployer [Connection Arguments] [ { -username username [-password password] } | [ -userconfigfile config-file [-userkeyfile admin-key] ] ] COMMAND-NAME command-options [Common Arguments]
The common arguments described in Table A-4 can be used with any commands described in Commands and Options.
Table A-4 Common Arguments for weblogic.Deployer
Argument Name | Description |
---|---|
|
Prints full command-line help text for all |
|
Display debug messages in the standard output. |
|
Display example command lines for common tasks. |
|
Prints command-line help text for the most commonly used |
|
By default The |
|
Indicates that If you use this option, you cannot use versioned applications. |
|
|
|
(Deprecated.) Either |
|
Indicates that |
|
Maximum time, in seconds, to wait for the deployment task to complete. After the time expires, |
|
Additional progress messages, including details about the prepare and activate phases of the deployment. |
|
Prints version information for |
Commands and Options
Examine the weblogic.Deployer
commands and command options used to perform deployment tasks with WebLogic Server.
-
Note:
weblogic.Deployer
commands are displayed in bold type to distinguish them from command options.
Cancel
Attempt to cancel a running deployment task.
Syntax
java [SSL Arguments] weblogic.Deployer Connection Arguments [User Credentials Arguments] -cancel task_id [Common Arguments]
Command or Option | Definition |
---|---|
task_id |
Identifier of the deployment task to cancel. Specify the identifier by using the |
Examples
The following command starts a deployment operation and specifies the task identifier, myDeployment
:
java weblogic.Deployer -adminurl http://localhost:7001
-username weblogic -password weblogic
-deploy ./myapp.ear -id myDeployment
If the deployment task has not yet completed, the following command attempts to cancel the deployment operation:
java weblogic.Deployer -adminurl http://localhost:7001
-username weblogic -password weblogic
-cancel -id myDeployment
Deploy
Deploys or redeploys an application or module.
Note:
The -ACTIVATE
command, an alias for deploy, is deprecated.
Syntax
java [SSL Arguments] weblogic.Deployer Connection Arguments [User Credentials Arguments] -deploy [[-name] deployment_name] [-source] file [-resourceGroupTemplate resource_group_template_name] [-partition partition_name] [-resourceGroup resource_group_name] [-editsession edit_session_name] [-plan file] [-targets target_list] [-submoduletargets target_list] [-upload] [-stage | -nostage | -external_stage] [-planstage | -plannostage | -planexternal_stage] [-retiretimeout seconds] [-library [-libspecver version] [-libimplver version]] [-altappdd file] [-altwlsappdd file] [-securityModel] [-enableSecurityValidation] [-id task_id] [Common Arguments]
Command or Option | Definition |
---|---|
|
Deployment name to assign to a newly-deployed application or standalone module. Both the
|
|
Archive file or exploded archive directory to deploy. You can omit the |
|
Specifies the name of the partition associated with the resource group to which you want to deploy an application or library. The For more information about deploying applications to resource groups at the partition level, see Deploying Applications in Using WebLogic Server MT. |
|
Specifies the name of the resource group at the partition or domain level to which you want to deploy an application or library. For For other supported deployment actions, you do not specify the For more information about deploying applications to resource groups, see Deploying Applications to Partition Resource Groups in Using WebLogic Server MT. |
|
Specifies the name of the resource group template to which you want to deploy an application or library. For more information about deploying applications to resource group templates, see Application Deployment with Resource Group Templates in Deploying Applications to Oracle WebLogic Server. |
|
Specifies the name of the edit session that was active during this deployment operation. If an edit session is specified, then the deployment will be associated with the edit session and deferred until the edit session is activated. |
|
Deployment plan to use when deploying the application or module. By default, |
|
Targets on which to deploy the application or module. The If you do not specify a target list with the deploy command, the target defaults to:
|
|
JMS Server targets for resources defined within a JMS application module. See Using Sub-Module Targeting with JMS Application Modules and Using WLST to Manage JMS Servers and JMS System Resources in Administering JMS Resources for Oracle WebLogic Server. |
|
Transfers the specified deployment files, including deployment plans and alternate deployment descriptors, to the Administration Server. Use this option when you are on a remote machine and you cannot copy the deployment files to the Administration Server by other means. The application files are uploaded to the WebLogic Server Administration Server upload directory prior to distribution and deployment. |
|
Staging mode to use when deploying or distributing an application:
|
|
Staging mode to use when deploying or distributing a deployment plan independently of an application archive:
If you do not specify a staging mode, the deployment plan uses the value specified for application staging as the default. |
|
Number of seconds before WebLogic Server retires the currently-running version of this application or module. See Redeploying a New Version of an Application. |
|
The deployment as a shared Java EE library or optional package. You must include the |
|
Specification version of a Java EE library or optional package. This option can be used only if the library or package does not include a specification version in its manifest file. |
|
Implementation version of a Java EE library or optional package. This option can be used only if the library or package does not include an implementation version in its manifest file. |
|
Deployment operation uses an existing lock, already acquired by the same user, on the domain. This option is helpful in environments where multiple deployment tools are used simultaneously and one of the tools has already acquired a lock on the domain configuration. |
|
(Deprecated.) Name of an alternate Java EE deployment descriptor ( |
|
(Deprecated.) Name of an alternate WebLogic Server deployment descriptor ( |
|
Security model to use for this deployment. |
|
Enable validation of security data. |
|
Task identifier of a running deployment task. You can specify an identifier with the |
|
Distributes a code source such as a custom.jar file to the WebLogic Extension Loader, which is also referred to as the WebLogic Domain Loader. The code source file is distributed to all targets and when the operation is complete, classes and resources in the jar file will be visible for class loading at the extension loader. This is an asynchronous operation that returns immediately. |
Examples
See the following sections for examples of using the -deploy
command:
Distribute
Prepares deployment files for deployment by copying deployment files to target servers and validating them.
A distributed application can be started quickly with the Start command. You can start the application in administration mode, or make it available to administration and client requests. While in administration mode, the application can be accessed only by internal clients through a configured administration port. External clients cannot access the application.
Syntax
java [SSL Arguments] weblogic.Deployer Connection Arguments [User Credentials Arguments] -distribute [[-name] deployment_name] [-source] file [-resourceGroupTemplate resource_group_template_name] [-partition partition_name] [-resourceGroup resource_group_name] [-editsession edit_session_name] [-plan file] [-targets target_list] [-submoduletargets target_list] [-upload] [-stage | -nostage | -external_stage] [-planstage | -plannostage | -planexternal_stage] [-library [-libspecver version] [-libimplver version]] [-altappdd file] [-altwlsappdd file] [-securityModel] [-enableSecurityValidation] [-id task_id] [Common Arguments]
Command or Option | Definition |
---|---|
|
Deployment name to assign to the distributed application or module. Both the
|
|
Archive file or exploded archive directory to distribute. You can omit the |
-partition partition_name |
Specifies the name of the partition associated with the resource group on which you want to distribute an application or library. The For more information about deploying applications to resource groups at the partition level, see Deploying Applications in Using WebLogic Server MT. |
|
Specifies the name of the resource group at the partition or domain level on which you want to distribute an application or library. For For other supported deployment actions, you do not specify the For more information about deploying applications to resource groups, see Deploying Applications to Partition Resource Groups in Using WebLogic Server MT. |
|
Specifies the name of the resource group template on which you want to distribute an application or library. For more information about deploying applications to resource group templates, see Application Deployment with Resource Group Templates in Deploying Applications to Oracle WebLogic Server. |
|
Specifies the name of the edit session that was active during this deployment operation. If an edit session is specified, then the deployment will be associated with the edit session and deferred until the edit session is activated. |
|
Deployment plan to distribute with the application or module, used to configure the application. |
|
Targets on which to distribute the application or module. The If you do not specify a target list with the distribute command, the target defaults to:
|
|
JMS Server targets for resources defined within a JMS application module. See Using Sub-Module Targeting with JMS Application Modules and Using WLST to Manage JMS Servers and JMS System Resources in Administering JMS Resources for Oracle WebLogic Server. |
|
Transfers the specified deployment files, including any specified deployment plans, to the Administration Server before distribution. Use this option when you are on a remote machine and you cannot copy the deployment files to the Administration Server by other means. The application files are uploaded to the WebLogic Server Administration Server upload directory prior to distribution. |
|
Staging mode to use when deploying or distributing an application:
|
|
Staging mode to use when deploying or distributing a deployment plan independently of an application archive:
If you do not specify a staging mode, the deployment plan uses the value specified for application staging as the default. |
|
Identifies the deployment as a shared Java EE library or optional package. You must include the |
|
Specification version of a Java EE library or optional package. This option can be used only if the library or package does not include a specification version in its manifest file. |
|
Implementation version of a Java EE library or optional package. This option can be used only if the library or package does not include a implementation version in its manifest file. |
|
(Deprecated.) Name of an alternate Java EE deployment descriptor ( |
|
(Deprecated.) Name of an alternate WebLogic Server deployment descriptor ( |
|
Security model to be used for this application. |
-enableSecurityValidation |
Enable validation of security data. |
|
Task identifier of a running deployment task. You can specify an identifier with the |
Examples
The distribute
command operates similar to deploy
, but WebLogic Server does not start the application or module on target servers. See the examples links for Deploy command for more information.
Listapps
Lists the deployment names for applications and standalone modules deployed, distributed, or installed to the domain.
Syntax
java [SSL Arguments] weblogic.Deployer Connection Arguments [User Credentials Arguments] -listapps [Common Arguments]
Command or Option | Definition |
---|---|
-listapps |
Lists the deployment names for applications and standalone modules deployed, distributed, or installed to the domain |
List, Listtask
Displays the status of deployment tasks currently running in the domain.
Syntax
java [SSL Arguments] weblogic.Deployer Connection Arguments [User Credentials Arguments] <-list | -listtask> [task_id] [Common Arguments]
Command or Option | Definition |
---|---|
task_id |
Identifier of a deployment task to display. |
Purgetasks
Indicates that weblogic.Deployer should flush out deployment tasks that are retired.
Syntax
java [SSL Arguments]
weblogic.Deployer Connection Arguments
[User Credentials Arguments]
-purgetasks
Examples
The following command indicates that weblogic.Deployer should flush out any deployment tasks that are retired:
java weblogic.Deployer -username weblogic -password ... -adminurl t3://localhost:7001 -purgetasks : : weblogic.Deployer invoked with options:-username weblogic -adminurl t3://localhost:7001 -purgetasks Currently there are no retired tasks.
Redeploy
Redeploys a running application or part of a running application.
Syntax
java [SSL Arguments] weblogic.Deployer Connection Arguments [User Credentials Arguments] -redeploy [[-name] deployment_name] [-plan file] [-resourceGroupTemplate resource_group_template_name] [-partition partition_name] [-removePlanOverride] [-editsession edit_session_name] [-targets target_list] [-submoduletargets target_list] [-upload] [-delete_files] [-retiretimeout seconds] [-id task_id] [-rmiGracePeriod seconds] [Common Arguments]
Command or Option | Definition |
---|---|
|
Deployment name of a deployed application or module. The |
|
Archive file or exploded archive directory to distribute, deploy, or redeploy. When used with the Note: Do not specify the To specify multiple files for a partial redeployment, omit the Note: To redeploy an entire Java EE module within an enterprise application, use the module-targeting syntax, |
|
Specifies the name of the partition associated with the resource group on which you want to redeploy an application or library. The For more information about deploying applications to resource groups at the partition level, see Deploying Applications in Using WebLogic Server MT. |
|
Specifies the name of the resource group template on which you want to redeploy an application or library. For more information about deploying applications to resource group templates, see Application Deployment with Resource Group Templates in Deploying Applications to Oracle WebLogic Server. |
|
Removes an overridden deployment plan during a For applications or libraries deployed to a resource group, you can override the application configuration defined in a resource group template that a resource group references. To remove an application override, specify the For more information about overriding application configuration, see Overriding Application Configuration in Using WebLogic Server MT. |
|
Specifies the name of the edit session that was active during this deployment operation. If an edit session is specified, then the deployment will be associated with the edit session and deferred until the edit session is activated. |
|
Deployment plan to use when distributing, deploying, or redeploying. When redeploying an application, the |
|
Targets on which to redeploy the application or module. The Note: To redeploy an entire Java EE module within an enterprise application, use the module-targeting syntax, If you do not specify a target list with the redeploy command, the target defaults to:
If you do not specify a target list with the redeploy command, the application is redeployed on all of its current target servers. |
|
JMS Server targets for resources defined within a JMS application module. See Using Sub-Module Targeting with JMS Application Modules and Using WLST to Manage JMS Servers and JMS System Resources in Administering JMS Resources for Oracle WebLogic Server. |
|
Transfers the specified deployment files, including deployment plans and alternate deployment descriptors, to the Administration Server. Use this option when you are on a remote machine and you cannot copy the deployment files to the Administration Server by other means. The application files are uploaded to the WebLogic Server Administration Server upload directory prior to distribution and deployment. |
|
Removes static files from a server's staging directory. java weblogic.Deployer -adminurl http://myserver:7001
-username weblogic
-password weblogic -name myapp
-targets myapp@myserver -redeploy
-delete_files myapp/tempindex.html
Note:
|
|
Number of seconds before WebLogic Server retires the currently-running version of this application or module. See Redeploying a New Version of an Application. |
|
The amount of time, in seconds, that the work manager accepts and schedules RMI calls until there are no more RMI requests arriving within the RMI grace period during a |
|
Task identifier of a running deployment task. You can specify an identifier with the deploy, redeploy, or undeploy commands, and use it later as an argument to the cancel or list commands. Make sure that the identifier is unique to all other running deployment tasks. The system automatically generates a unique identifier if you do not specify one. |
Start
Makes a stopped (inactive) application available to clients on target servers. The start
command does not redistribute deployment files to target servers. Optionally, with the adminmode
option, starts the application in administration mode, which makes it available only via a configured administration channel. In order to issue a start
command, the files must already be available through a deploy
or distribute
command.
Note:
The activate
command, an alias for start
, is deprecated.
Syntax
java [SSL Arguments] weblogic.Deployer Connection Arguments [User Credentials Arguments] -start [-adminmode] [-name] deployment_name [-partition partition_name] [-editsession edit_session_name] [-appversion version] [-planversion version] [-targets target_list] [-submoduletargets target_list] [-retiretimeout seconds] [-id task_id] [Common Arguments]
Command or Option | Definition |
---|---|
|
Start application in administration mode, not Production mode (which is the default). |
|
Deployment name of a deployed application or module. The |
|
Specifies the name of the partition associated with the resource group on which you want to start an application or library. The For more information about deploying applications to resource groups at the partition level, see Deploying Applications in Using WebLogic Server MT. |
|
Specifies the name of the edit session that was active during this deployment operation. If an edit session is specified, then the deployment will be associated with the edit session and deferred until the edit session is activated. |
|
Version of the application to start. |
|
Version of the deployment plan to use when starting the application. |
|
Targets on which to start the application or module. The If you do not specify a target list with the start command, the target defaults to:
If you do not specify a target list with the start command, the command is performed on all of the application's current targets. |
|
JMS Server targets for resources defined within a JMS application module. See Using Sub-Module Targeting with JMS Application Modules and Using WLST to Manage JMS Servers and JMS System Resources in Administering JMS Resources for Oracle WebLogic Server. |
|
Number of seconds before WebLogic Server retires the currently-running version of this application or module. See Redeploying a New Version of an Application. |
|
Task identifier of a running deployment task. You can specify an identifier with the distribute, deploy, redeploy, start, or undeploy commands, and use it later as an argument to the cancel or list commands. Make sure that the identifier is unique to all other running deployment tasks. The system automatically generates a unique identifier if you do not specify one. |
Stop
Makes an application inactive and unavailable administration and client requests. All of the application's staged files remain available on target servers for subsequent start
, deploy
, redeploy
, or undeploy
actions. Optionally, choose to make the application unavailable to client requests by placing it in administration mode with the adminmode
option. While in administration mode, the application be accessed only through a configured administration channel.
Note:
The deactivate
command, an alias for stop
, is deprecated.
Syntax
java [SSL Arguments] weblogic.Deployer Connection Arguments [User Credentials Arguments] -stop [-adminmode] [-name] deployment_name [-partition partition_name] [-editsession edit_session_name] [-appversion version] [-planversion version] [-targets target_list] [-submoduletargets target_list] [-ignoresessions] [-graceful] [-rmiGracePeriod seconds] [-id task_id] [Common Arguments]
Argument or Option | Definition |
---|---|
|
Indicates that a running application should switch to administration mode and accept only administration requests via a configured administration channel. If this option is not specified, the running application is stopped and cannot accept administration or client requests until is it restarted. |
|
Deployment name of a deployed application or module. The |
|
Specifies the name of the partition associated with the resource group on which you want to stop an application or library. The For more information about deploying applications to resource groups at the partition level, see Deploying Applications in Using WebLogic Server MT. |
|
Specifies the name of the edit session that was active during this deployment operation. If an edit session is specified, then the deployment will be associated with the edit session and deferred until the edit session is activated. |
|
Version identifier of the deployed application. |
|
Version identifier of the deployment plan. |
|
Targets on which to stop the application or module. The If you do not specify a target list with the stop command, the target defaults to:
If you do not specify a target list with the stop command, the command is performed on all of the application's current targets. |
|
JMS Server targets for resources defined within a JMS application module. See Using Sub-Module Targeting with JMS Application Modules and Using WLST to Manage JMS Servers and JMS System Resources in Administering JMS Resources for Oracle WebLogic Server. |
|
Stops the application after existing HTTP clients have completed their work. If you do not specify the |
|
The amount of time, in seconds, that the work manager accepts and schedules RMI calls until there are no more RMI requests arriving within the RMI grace period during a |
|
Immediately places the application into administration mode without waiting for current HTTP sessions to complete. |
|
Task identifier of a running deployment task. You can specify an identifier with the distribute, deploy, redeploy, start, stop, or undeploy commands, and use it later as an argument to the cancel or list commands. Make sure that the identifier is unique to all other running deployment tasks. The system automatically generates a unique identifier if you do not specify one. |
Undeploy
Stops the deployment unit and removes staged files from target servers.
Note:
The REMOVE
command, an alias for undeploy
, is deprecated.
Note:
When you undeploy an application that contains application-scoped resources, the resources are deleted along with the application, which can potentially cause abandoned transactions or lost messages as a result of deleted JMS destinations. See Unregister Resource Grace Period in Developing JTA Applications for Oracle WebLogic Server.
You should only undeploy applications that you are certain you want to completely remove; to temporarily stop client access to applications, use the stop
command, described in Stop, instead.
Syntax
java [SSL Arguments] weblogic.Deployer Connection Arguments [User Credentials Arguments] -undeploy [-name] deployment_name [-resourceGroupTemplate resource_group_template_name] [-partition partition_name] [-editsession edit_session_name] [-appversion version] [-planversion version] [-targets target_list] [-submoduletargets target_list] [-graceful] [-ignoresessions] [-rmiGracePeriod seconds] [-id task_id] [Common Arguments]
Command or Option | Definition |
---|---|
|
Deployment name of a deployed application or module. The |
|
Specifies the name of the partition associated with the resource group on which you want to undeploy an application or library. The partitionoption is optional for partition administrators. For more information about deploying applications to resource groups at the partition level, see Deploying Applications in Using WebLogic Server MT. |
|
Specifies the name of the resource group template on which you want to undeploy an application or library. For more information about deploying applications to resource group templates, see Application Deployment with Resource Group Templates in Deploying Applications to Oracle WebLogic Server. |
|
Specifies the name of the edit session that was active during this deployment operation. If an edit session is specified, then the deployment will be associated with the edit session and deferred until the edit session is activated. |
|
Version identifier of the deployed application. |
|
Version identifier of the deployment plan. |
|
Targets from which the application or module are undeployed. Note: Any target not included in the target list is not removed. The |
|
JMS resources to be undeployed. Note: Any sub-module target not included in the target list is not removed. See Using Sub-Module Targeting with JMS Application Modules and Using WLST to Manage JMS Servers and JMS System Resources in Administering JMS Resources for Oracle WebLogic Server. |
|
Stops the application after existing HTTP clients have completed their work. If you do not specify the -graceful option, WebLogic Server immediately stops the application or module. See Taking a Production Application Offline. The module is undeployed after it is stopped. |
|
The amount of time, in seconds, that the work manager accepts and schedules RMI calls until there are no more RMI requests arriving within the RMI grace period during a |
|
Immediately stops and undeploys the application without waiting for current HTTP sessions to complete. |
|
Task identifier of a running deployment task. You can specify an identifier with the distribute, deploy, redeploy, start, stop, or undeploy commands, and use it later as an argument to the cancel or list commands. Make sure that the identifier is unique to all other running deployment tasks. The system automatically generates a unique identifier if you do not specify one. |
Update
Updates an application's deployment plan by redistributing the plan files and reconfiguring the application based on the new plan contents.
Note:
update
cannot be used to update an application's resource bindings. To update the resource bindings for an application, you must use the Redeploy command.
Syntax
java [SSL Arguments] weblogic.Deployer Connection Arguments [User Credentials Arguments] -update -plan deployment_plan [-name] deployment_name [-resourceGroupTemplate resource_group_template_name] [-partition partition_name] [-removePlanOverride] [-editsession edit_session_name] [-appversion version] [-planversion version] [-targets target_list] [-submoduletargets target_list] [-upload] [-id task_id] [Common Arguments]
Argument or Option | Definition |
---|---|
|
Deployment plan to use for updating the application's configuration. The specified deployment plan must be valid for the application's target servers. For example, the plan cannot contain null variables for required resources unless those resources were previously defined in the associated desrciptors. Update operations update only those descriptors for which there is a changed, not null value in the deployment plan. If a plan that is used by an update operation contains null variables, the current values in the corresponding descriptors are not updated. |
|
Deployment name of a deployed application or module. The |
|
Specifies the name of the partition associated with the resource group on which you want to update an application or library. The For more information about deploying applications to resource groups at the partition level, see Deploying Applications in Using WebLogic Server MT. |
|
Specifies the name of the resource group template on which you want to update an application or library. For more information about deploying applications to resource group templates, see Application Deployment with Resource Group Templates in Deploying Applications to Oracle WebLogic Server. |
|
Removes an overridden deployment plan during a For applications or libraries deployed to a resource group, you can override the application configuration defined in a resource group template that a resource group references. To remove an application override, specify the For more information about overriding application configuration, see Overriding Application Configuration in Using WebLogic Server MT. |
|
Specifies the name of the edit session that was active during this deployment operation. If an edit session is specified, then the deployment will be associated with the edit session and deferred until the edit session is activated. |
|
Version identifier of the deployed application. |
|
Version identifier of the deployment plan. |
|
Targets on which to update the application or module. The If you do not specify a target list with the update command, the target defaults to:
If you do not specify a target list with the update command, the command is performed on all of the application's current targets. |
|
JMS Server targets for resources defined within a JMS application module. See Using Sub-Module Targeting with JMS Application Modules and Using WLST to Manage JMS Servers and JMS System Resources in Administering JMS Resources for Oracle WebLogic Server. |
|
Uploads a new deployment plan to the Administration Server before updating the application. |
|
Task identifier of a running deployment task. You can specify an identifier with the distribute, deploy, redeploy, update, start, stop, or undeploy commands, and use it later as an argument to the cancel or list commands. Make sure that the identifier is unique to all other running deployment tasks. The system automatically generates a unique identifier if you do not specify one. |
Exit Codes
An exit code of zero (0) indicates success, whereas, a non-zero exit code indicates one or more failures were detected, the value being the number of failures.
In general, an exit code of 1 is returned if the command was rejected. Rejection is due to syntax errors, an invalid ID option, connection errors (for example, no Administration Server response), source errors (for example, file not found), or undefined targets.
Example config.xml File and Corresponding weblogic.Deployer Command
Examine an application's config.xml
file and the corresponding weblogic.Deployer
command to deploy the application.
Assuming:
-
mycluster
is a cluster name -
D1C2S1
andD1C2S2
are server names -
RemoteJMSServer1
andRemoteJMSServer2
are JMS server names
The application's config.xml
file would contain:
<app-deployment> <name>dd-remote-cluster</name> <source-path>./udd-debug-deployment-on-remote-cluster-jms.xml</source-path> <target>mycluster</target> <subdeployment> <name>RemoteCluster</name> <target>mycluster</target> </subdeployment> <subdeployment> <name>D1C2S2</name> <target>D1C2S2</target> </subdeployment> <subdeployment> <name>RemoteClusterServers</name> <target>D1C2S1,D1C2S2</target> </subdeployment> <subdeployment> <name>RemoteClusterJMSServers</name> <target>RemoteJMSServer1,RemoteJMSServer2</target> <subdeployment> <name>RemoteQueue1</name> <target>RemoteJMSServer1</target> </app-deployment>
The weblogic.Deployer
-deploy
command to deploy the application would be:
java weblogic.Deployer -adminurl t3://MySystem:10000 -username system -password password -name dd-remote-cluster -deploy "config\jms\udd-debug-deployment-on-remote-cluster-jms.xml" -targets mycluster -submoduletargets RemoteCluster@mycluster, D1C2S2@D1C2S2, RemoteClusterServers@D1C2S1, RemoteClusterServers@D1C2S2, RemoteClusterJMSServers@RemoteJMSServer1, RemoteClusterJMSServers@RemoteJMSServer2, RemoteQueue1@RemoteJMSServer1