如何通过wlst部署应用程序到weblogic12c上

Posted middlewaremagic

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了如何通过wlst部署应用程序到weblogic12c上相关的知识,希望对你有一定的参考价值。

适用版本

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:

    1. Copy and paste the code from this article to a file "deployApplication.py"
    2. Access the machine where the Admin server is located.
    3. Set the domain environment using the script:
      $ WL_HOME/user_projects/domains/<DOMAIN>/. bin/setDomainEnv.sh
    4. Run the script as follows:
      $ java weblogic.WLST deployApplication.py -u username -p password -a adminUrl (hostname:port) -n deploymentName -f deploymentFile -t deploymentTarget

以上是关于如何通过wlst部署应用程序到weblogic12c上的主要内容,如果未能解决你的问题,请参考以下文章

weblogic 12c WLST静默建域

基于ant自动部署ear/war 文件到weblogic12c

如何在 Oracle Weblogic 12.1 中部署 JSF 2.1 webapp?

定期访问WebLogic Server返回状态的脚本

将war部署到weblogic版本(weblogic 12.2.1.3)时,Spring Integration应用程序部署失败

java.lang.NumberFormatException:对于输入字符串:“ 7001”。在WLST中,此错误的含义是什么,我该如何解决?