Release Automation

  • 1.  How do I deploy a WAR or EAR as shared library on Weblogic?

    Posted Sep 13, 2012 02:34 PM
    This has been fixed
    Thank you for your patience.


  • 2.  RE:How do I deploy a WAR or EAR as shared library on Weblogic?

    Posted Sep 17, 2012 12:21 PM
    Hello Parimala,

    In order to deploy a WLS as shared library you need to use "WLS - Run WLST script" action.

    I've prepared a script the does that based on the information I found in the following link:

    http://docs.oracle.com/cd/E11035_01/w...

    (If you need to, you can also expand the script to include other options that are mentioned in the documentation in the link above)

    The script content is between the horizontal lines below :

    ---------------------------------------------------
    import sys

    userName = sys.argv[1]
    passWord = sys.argv[2]
    host = sys.argv[3]
    port = sys.argv[4]
    appName = sys.argv[5]
    appPath = sys.argv[6]
    myTargets = sys.argv[7]

    url="t3://"+host+":"+port

    print 'User: ' + userName + ', URL: ' + url + ', appName: ' + appName + ', appPath: ' + appPath + ', targets: ' + myTargets

    connect(userName, passWord, url)
    progress= deploy(appName, appPath ,targets=myTargets, libraryModule='true')
    progress.printStatus()
    disconnect()
    exit()
    ---------------------------------------------------

    you should save this text to a text file, then change its extension from .txt to .py , and use it in "WLS - Run WLST script" action.
    As you can see the script requires some argument so you need to fill the arguments array with the following information:

    userName - user name used to login to the admin console
    passWord - password used to login to the admin console
    host = host of the admin console
    port = port used to access the admin console
    appName = application name
    appPath = the path to the file/directory to deploy
    myTargets = comma separated targets you wish to deploy the application to.

    Regards,
    Nofar


  • 3.  RE:How do I deploy a WAR or EAR as shared library on Weblogic?

    Posted Sep 17, 2012 12:32 PM
    Just to make sure I'm clear, I'm adding a screen shot to demonstrate how the action fields should be filled:



  • 4.  Re: How do I deploy a WAR or EAR as shared library on Weblogic?

    Posted May 10, 2018 12:07 AM

    Hi,

    I saw this 6 years ago thread and I'm facing the same question today.

    Can I use a standard action (install new application or install/deploy application) to do this(Deploying war as library) or I still need to use the WLST script provided by this thread?

     

    Thanks