Release Automation

Expand all | Collapse all

How to work on WebLogic Actions

  • 1.  How to work on WebLogic Actions

    Posted Mar 29, 2017 11:22 AM

    Hello All,

     

    I am stuck in a scenario where I have to perform some actions on weblogic console.Some of the steps are like:

    1)Login to the admin server url

    2)Click on Edit Button

    3)Click on some of the Folders... and so on.

     

    So I have gone through some of the weblogic actions like WLS- Redploy Application, WLS- Install/Deploy Application. I have filled some of the information in the fields like Address,Port Number of the url. But my question is where we can test this action to check that this url is opening or not.

    Also do we need to enter the credentials or not because I can see that username and password field is not mandate.

     

    If Any updates on this weblogic actions please let me know.



  • 2.  Re: How to work on WebLogic Actions
    Best Answer

    Broadcom Employee
    Posted Mar 29, 2017 04:17 PM

    Hi Vipul,

     

    You can run the action class REST Operation for Http Get to the URL for Weblogic server.

    If it returns 200 or Authentication failure also then its open and available. If not then stop the process.

     

    Regards,

    Sachin



  • 3.  Re: How to work on WebLogic Actions

    Posted Apr 10, 2017 08:58 AM

    Hello Srisa,

     

    I am using the WLS - Redeploy Application (WLST) action to deploy the existing application. But to run the action its saying that "The following action requires connection to the admin server to execute."

    Can I know how can I establish the connection with the admin server to execute the server.



  • 4.  Re: How to work on WebLogic Actions

    Posted Apr 11, 2017 06:30 AM

    Hello All,

     

    I am also using this action but when I am trying to Run the process its not running and Process is getting Canceled.

     

    Can anyone please help me in solving this scenario.



  • 5.  Re: How to work on WebLogic Actions

    Broadcom Employee
    Posted Apr 11, 2017 08:23 AM

    Can you provide the screenshot for the configuration done. Also, can you provide the action execution log from the agent as well. 



  • 6.  Re: How to work on WebLogic Actions

    Posted Apr 11, 2017 09:05 AM

     

    I am using the WLS - List Applications (WLST) actions. Please find the snap shot.



  • 7.  Re: How to work on WebLogic Actions

    Broadcom Employee
    Posted Apr 11, 2017 09:16 AM

    Hi,

      

       You dont need to use the URL for the address its just the hostname or IP address, as per the example below.

     

     

    Regards

    Keith



  • 8.  Re: How to work on WebLogic Actions

    Posted Apr 11, 2017 01:50 PM

    Hello Keith,

     

    Many thanks for your input. But I want to know that If I will use IP or Hostname it will not ask for connection to the admin server to execute the action and Process will execute smoothly?

     

    Thanks



  • 9.  Re: How to work on WebLogic Actions

    Broadcom Employee
    Posted Apr 11, 2017 02:38 PM

    Hi,

      

         The action requires access to the admin server so you need to include the login and password credentials when configuring the action.

     

    regards

    keith



  • 10.  Re: How to work on WebLogic Actions

    Posted Apr 17, 2017 08:17 AM

    Hello Keith,

     

    I am giving the username and password and when I am trying to execute the action its getting cancelled.

     

    Any specific reason why the actions are not getting executed and getting cancelled.

     

    Thanks



  • 11.  Re: How to work on WebLogic Actions

    Broadcom Employee
    Posted Apr 17, 2017 12:59 PM

    Hi,

     

       Could you check the agent log  nolio_action_exe and let me know what error you are seeing at the agent level when running this action. As an example of what i would expect to see this is an extract from the agent on my test system that is being used to deploy an application to weblogic.

     

    2017-02-28 10:46:21,738 [job-1475001-jobServer-1475120-5:WLS - Install/Deploy Application (WLST)(P22112.F42242.E42245):WLS - Install/Deploy Application (WLST)] DEBUG (com.nolio.platform.shared.executables.actions.appserver.weblogic.abstracts.WlsPyFrameworkActionBase:187) - Process output:
    WARNING: This is a deprecated script. Please invoke the wlst.cmd script under oracle_common/common/bin.

    Initializing WebLogic Scripting Tool (WLST) ...

    Welcome to WebLogic Server Administration Scripting Shell

    Type help() for help on available commands

    ||||||['DEBUG', '<id 130>', 'TerminationMonitor: Monitoring File [C:/PROGRA~2/CA/RELEAS~1/./files_temp/wls_scripts/wls_388836.py.monitor] ']||||||
    ||||||['DEBUG', '<id 130>', 'Modules were imported successfully']||||||
    Connecting to t3://172.17.17.40:7001 with userid weblogic ...
    Successfully connected to Admin Server "AdminServer" that belongs to domain "medrec".

    Warning: An insecure protocol was used to connect to the server.
    To ensure on-the-wire security, the SSL port or Admin port should be used instead.


    ||||||['DEBUG', '<id 130>', 'archive version: None.']||||||
    No stack trace available.
    No stack trace available.
    ||||||['DEBUG', '<id 130>', "options {'upload': 'true'}."]||||||
    dr-- AdminServer
    dr-- DevServer

     

    Regards

    Keith



  • 12.  Re: How to work on WebLogic Actions

    Posted Apr 17, 2017 01:32 PM

    Hello Keith,

     

    Please find the below error message from the log file when I am trying to run the WLS - List Applications (WLST) action.

     

    2017-04-17 12:12:40,039 [Communication Msg Processor-78] ERROR (com.nolio.platform.shared.flowcontrol.service.FlowControlService:87) - failed initialize flow for job[820608], jobServerId[820754].
    java.lang.RuntimeException: Failed to create action from ActionProxy[null:ActionProxy]
            at com.nolio.platform.shared.flowcontrol.service.FlowActionProxyReplacer.createActionFromActionProxy(FlowActionProxyReplacer.java:77)
            at com.nolio.platform.shared.flowcontrol.service.FlowActionProxyReplacer.replaceSingleStepActionProxies(FlowActionProxyReplacer.java:45)
            at com.nolio.platform.shared.flowcontrol.service.FlowActionProxyReplacer.replaceActionProxies(FlowActionProxyReplacer.java:38)
            at com.nolio.platform.shared.flowcontrol.service.FlowDataFactory.initFlow(FlowDataFactory.java:93)
            at com.nolio.platform.shared.flowcontrol.service.FlowDataFactory.create(FlowDataFactory.java:85)
            at com.nolio.platform.shared.flowcontrol.service.FlowDataFactory.create(FlowDataFactory.java:46)
            at com.nolio.platform.shared.flowcontrol.service.FlowControlService.init(FlowControlService.java:80)
            at com.nolio.platform.shared.flowcontrol.service.FlowControlService.handleServiceRequest(FlowControlService.java:49)
            at com.nolio.platform.shared.communication.CommunicationNetworkServiceManager$1.run(CommunicationNetworkServiceManager.java:232)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
            at java.lang.Thread.run(Thread.java:745)
    Caused by: com.thoughtworks.xstream.converters.ConversionException: Could not instantiate a class :com.nolio.platform.shared.executables.actions.appserver.weblogic.ListApplicationsAction : com.nolio.platform.shared.executables.actions.appserver.weblogic.ListApplicationsAction
    ---- Debugging information ----
    message             : Could not instantiate a class :com.nolio.platform.shared.executables.actions.appserver.weblogic.ListApplicationsAction
    cause-exception     : java.lang.ClassNotFoundException
    cause-message       : com.nolio.platform.shared.executables.actions.appserver.weblogic.ListApplicationsAction
    -------------------------------
            at com.nolio.platform.shared.datamodel.ActionProxy.createAction(ActionProxy.java:93)
            at com.nolio.platform.shared.flowcontrol.service.FlowActionProxyReplacer.createActionFromActionProxy(FlowActionProxyReplacer.java:74)
            ... 11 more
    Caused by: java.lang.ClassNotFoundException: com.nolio.platform.shared.executables.actions.appserver.weblogic.ListApplicationsAction
            at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
            at com.nolio.platform.shared.datamodel.ActionProxy.createAction(ActionProxy.java:56)

     

     

    Please let me know what corrections I need to do to execute the action successfully.



  • 13.  Re: How to work on WebLogic Actions

    Broadcom Employee
    Posted Apr 17, 2017 02:59 PM

    Hi,

     

        Can you confirm what OS / version the agent is running on and also the version of the weblogic action pack you are using?

     

    Regards

    Keith



  • 14.  Re: How to work on WebLogic Actions

    Posted Apr 18, 2017 10:36 AM

    Hello Keith,

     

    The agent is running on the Unix server and the version of the weblogic action pack is 10.12.1508.2. Please find the snap shot for your reference:

     

     

    Please let me know if any more information is required.

     

    Thanks



  • 15.  Re: How to work on WebLogic Actions

    Posted May 04, 2017 08:00 AM

    Hello All,

     I am trying to execute the weblogic action but getting this error.

     
    FAILED_PAUSED
    Agent:rldv0035.mt.att.com
    Description:
    CLASSPATH=/opt/app/workload/edb/bea103/patch_wls1036/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/app/workload/edb/jdk7/lib/tools.jar:/opt/app/workload/edb/bea103/wlserver103/server/lib/weblogic_sp.jar:/opt/app/workload/edb/bea103/wlserver103/server/lib/weblogic.jar:/opt/app/workload/edb/bea103/modules/features/weblogic.server.modules_10.3.6.0.jar:/opt/app/workload/edb/bea103/wlserver103/server/lib/webservices.jar:/opt/app/workload/edb/bea103/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/opt/app/workload/edb/bea103/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar::/opt/app/workload/edb/bea103/utils/config/10.3/config-launch.jar::/opt/app/workload/edb/bea103/wlserver103/common/derby/lib/derbynet.jar:/opt/app/workload/edb/bea103/wlserver103/common/derby/lib/derbyclient.jar:/opt/app/workload/edb/bea103/wlserver103/common/derby/lib/derbytools.jar::

     

    Initializing WebLogic Scripting Tool (WLST) ...

     

    Welcome to WebLogic Server Admini...(truncated)

     

    Can someone help me in getting solution.

    Thanks



  • 16.  Re: How to work on WebLogic Actions

    Broadcom Employee
    Posted May 04, 2017 09:24 AM

    Can you please provide more information of what you're trying to execute.

     

    Also, please provide full logs.



  • 17.  Re: How to work on WebLogic Actions

    Posted Apr 18, 2017 01:42 AM

    Can you also verify the that weblogic jar exist in the agent actionslib directory 



  • 18.  Re: How to work on WebLogic Actions

    Broadcom Employee
    Posted Apr 11, 2017 08:25 AM

    Can you share the screen shot for the configuration done for the action class in RA?



  • 19.  Re: How to work on WebLogic Actions

    Broadcom Employee
    Posted Apr 05, 2017 03:36 AM

    Vipul, did Sachin's reply answer your question? If so, please mark it as correct.