适用版本
Oracle WebLogic Server - Version 10.3 and later
Information in this document applies to any platform.
解决方案:
This Jython script parses the provided arguments, and based on them, performs the deployment task.
The first step is to establish a connection to the Administration Server. From there, the script will perform the deploy() function to a particular target.
By default, this deployment is without upload: that is, application files are not uploaded to the WebLogic Server Administration Server‘s upload directory prior to deployment. It should be performed on the same machine where the WLS admin server is located.
如何运行:
To run this script, please follow these steps:
Copy and paste the code from this article to a file "deployApplication.py"
Access the machine where the Admin server is located.
Set the domain environment using the script:
$ WL_HOME/user_projects/domains//. bin/setDomainEnv.sh
Run the script as follows:
$ java weblogic.WLST deployApplication.py -u
username -p password -a adminUrl (hostname:port) -n deploymentName -f
deploymentFile -t deploymentTarget