Questions tagged [wlst]

WLST (WebLogic Scripting Tool) is a command-line scripting environment that can be used to create, manage, and monitor WebLogic domains. It is based on the Java scripting interpreter, Jython.

WLST (WebLogic Scripting Tool) is a command-line scripting environment that can be used to create, manage, and monitor WebLogic domains. It is based on the Java scripting interpreter, Jython. In addition to supporting standard Jython features such as local variables, conditional variables, and flow control statements, WLST provides a set of scripting functions (commands) that are specific to WebLogic Server. To expertise in this you might need basic knowledge of any programming language is must. Most of the tricks are useful from Python and Jython scripting.

Satya Gattu started developing this WLST Project for WebLogic 8.1 in while working in BEA Systems (acquired by Oracle on April 29, 2008). Its usage and popularity increased from WebLogic 9 version onwards. It has wide scope for not using WebLogic Administration console for various configuration and monitor various System resources performance.

Oracle Fusion Middleware 11g provided a wonderful IDE for WLST developers. It is having full scope for MBean navigation, introspection to classes which you are going to use. Every IDE provides SyntaxHighlighting.

Write your questions on WLST, Python, Jython related System administration tasks. Keep getting the responses around the world from the best scripting experts.

Helpful References

339 questions
14
votes
5 answers

How do I rethrow an exception that contains information about an original exception?

So I basically have to isolate 2 layers of the application from one another by exceptions. I have this WLST 12c script (python 2.2), that goes like try: something something... except java.lang.UnsuportedOpperationException, (a, b): …
vlad-ardelean
  • 6,934
  • 11
  • 71
  • 108
12
votes
1 answer

How to retrieve Weblogic's Deployment test points through Weblogic Java API

I'm working on a Weblogic health monitoring code base, which is based on JMX. I am trying to get the list of all deployment test points (the http addresses, as shown in the following snapshot), and see if that web address is reachable or not. Is…
Tina J
  • 3,411
  • 8
  • 39
  • 93
12
votes
4 answers

Parsing Command line arguments in python which has spaces

I am invoking the script from ant . I am getting it as a single string from the caller but python is strangely treating it as two individual strings.I have script that reads a file name with it's path in windows. The folder structure may or may not…
Raj
  • 1,020
  • 2
  • 10
  • 18
6
votes
4 answers

Running the WLST interpreter silently

I am trying to figure out a way to make the weblogic WLST terminal run in silent mode. When i start the terminal with the java weblogic.WLST command, it prints the lines: Initializing WebLogic Scripting Tool (WLST) ... Welcome to WebLogic Server…
Martin Nielsen
  • 1,539
  • 5
  • 26
  • 47
5
votes
1 answer

Using WLST to bounce a managed server?

Is there a way to bounce/restart a managed server using WLST? The ServerRuntime MBean seems to have the correct functions to do this but as far as I can tell, you can only access this MBean for the server WLST is connected to ie the admin server. Is…
awithrow
  • 1,101
  • 8
  • 16
5
votes
2 answers

WLST: Remote deployment of an application on weblogic

I am trying to deploy an application remotely on WebLogic. I am using WLST in a python script. I am using deploy command to do that. When I give the path of my war of any location which is accessible to my remote machine all goes well, but when I…
shallu
  • 51
  • 1
  • 1
  • 3
5
votes
2 answers

Is there a comprehensive guide for Weblogic Scripting Tool (WLST)

I'm unsuccessfully using WLST to modify a jmsmodule.xml file online. I have to achieve this programatically rather than using the Weblogic Console. However, I've "recorded" the commands while in the console. However the recorded commands when put…
user173951
  • 49
  • 4
4
votes
1 answer

Jython WLST using python threading module (Weblogic 10)

Environment Weblogic 10 Sun Java HP UX Goal Restart all managed instances with all clusters in a rolling restart fashion. Would like the different clusters to restart concurrently Question Is there a way to use Jython's threading module to do…
wmarbut
  • 4,335
  • 3
  • 40
  • 72
4
votes
4 answers

How to override edit locks

I'm writing a WLST script to deploy some WAR's and an EAR. However, intermittently, the script will time out because it can't seem to get an edit lock (this script is part of a chain of many other scripts). I was wondering, is there a way to…
julian
  • 311
  • 1
  • 6
  • 18
4
votes
1 answer

Jython vs CPython - sys module argument parsing

While writing a deployment script for use with the WebLogic Scripting Tool (12.1.3), I came across this inconsistency between Python 2.2.1 and Jython 2.2.1. If you pass command line arguments to each, they are parsed differently, as noted by this…
McGlothlin
  • 1,934
  • 15
  • 23
4
votes
1 answer

How to update application using wlst

From the console If 1 were to update the application what 1 does is.. 1. Click on deployments. 2. Selects the application name and clicks update option. 3. Here he may change: i. Source Path ii. Deployment Plan Now in my application No Plan path is…
JMD
  • 69
  • 1
  • 11
4
votes
1 answer

How to run wlst script by .py file

I'm trying to run wlst script form .py file but it can not be done Content of .py file…
Thumper
  • 43
  • 1
  • 1
  • 4
4
votes
2 answers

Get list of all applications deployed on a weblogic server

Using the following code, I am able to connect to the weblogic server. Now I want to get a list of all the applications deployed on the server. listapplications() from the command prompt lists the applications, but I am not able to store the output…
Chirag Shah
  • 600
  • 4
  • 16
3
votes
0 answers

How to programatically discover unregistered web services deployed in Weblogic?

There are a number of teams who have deployed applications to a shared Weblogic application server. There has been some effort to maintain a registry but it hasn't been kept up to date. How can you programmatically discover all the web services…
s_t_e_v_e
  • 2,336
  • 2
  • 29
  • 34
3
votes
3 answers

Jython(WLST)/Python Communication

I have a want to make a jython and python communcation link. I have a django app and python scripts I use for a front end and do system admin/automation tasks. I use jython for Weblogic 9/10. The thing I want to do is make it so that I can give the…
Colin Wood
  • 455
  • 4
  • 16
1
2 3
22 23