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

349 questions
3
votes
2 answers

How to run WLST in windows?

I tried to run WLST (on Windows XP) but i always get java.lang.NoClassDefFoundError: Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/wlst Caused by: java.lang.ClassNotFoundException: weblogic.wlst at…
mykola
  • 1,736
  • 5
  • 25
  • 37
3
votes
2 answers

WLST vs Jython Weblogic 10.3.3

I have a few questions concerning WLST and Jython: OS: Unix/Linux Situation: 1) Unable to include wlst-file created by using writeIniFile automatically 2) using org.python.util.jython without caching message Information: 1) wlst.py generated by…
ShadowFlame
  • 2,996
  • 5
  • 26
  • 40
3
votes
3 answers

Remote upload using WLST

I'm trying to perform remote uploading and deploying via WLST. I succeed to deploy applications already present in the path of the WebLogic server. But now, I would like to deploy one remotely available. Is there any possibility to upload WAR/EAR on…
Lite
  • 161
  • 4
  • 14
2
votes
2 answers

Why does Python (WLST) tell me a documented function doesn't exist?

I'm using the Weblogic Scripting Tool aka WLST, a Python-based shell environment, to programmatically edit variables in Plan.xml files for projects to be deployed to the Weblogic server. I can get as far as getting an instance of the WLSTPlan…
Johansensen
  • 371
  • 1
  • 12
2
votes
1 answer

How can I append to sys.path using Weblogic Scripting Tools?

I need to logically and non-interactively undeploy an application from Oracle 10. The solution I came up with is to use WLST and write a python program to do the work for me. The problem I have is in manipulating sys.path outside of the script. I'm…
Mike Yockey
  • 4,565
  • 22
  • 41
2
votes
1 answer

Getting error "Could not find or load main class weblogic.Admin " while connecting to weblogic server

I am trying to run below command in shell script but i am getting error like: Error: Could not find or load main class weblogic.Admin ${SUN_JAVA_HOME}/bin/java -classpath $CLASSPATH weblogic.Admin -url t3://localhost:7001 -username weblogic…
Patils
  • 65
  • 3
  • 10
2
votes
2 answers

How to clone weblogic server in WLST (offline-mode)?

We have a custom weblogic template which has admin server (obviously) and a cluster with 2 managed servers deployed to the same machine. We use that template for our development environments. But now when we move on to performance testing…
Andrey Adamovich
  • 20,285
  • 14
  • 94
  • 132
2
votes
1 answer

|WLST| Is it possible to undo changes from activated session?

Is it possible to undo (with creating a new change or without - it really doesn't matter) changes activated in one of previous session in Oracle Service Bus 11g using WebLogic Scipting Tool (WLST)? I can't find any example for similar case except…
2
votes
0 answers

WLST scripting and importing self-made module

I am trying to write a WLST script. As I found that I always repeat doing similar setup, I tried to make some util functions to ease my script writing. Later when I tried to pull those functions to an external .py as a module, I failed to do…
Adrian Shum
  • 38,812
  • 10
  • 83
  • 131
2
votes
3 answers

WLST Scripting Error - Must Activate Changes Bug

I wrote a script to automate Weblogic deployments and during the undeploy and sometimes the deploy part of the script there is an error message that says, "The task cannot be processed further until the current edit session is activated. When this…
user3808269
  • 1,321
  • 3
  • 21
  • 40
2
votes
1 answer

WLST ant task not finding classpathref

I am experimenting with wlst for a local weblogic deploy. I have created a build.xml, build.properties file and a simple wlst script. I have tested the script from the commandline and it works perfectly. However, I am having a hard time getting it…
RockyMountainHigh
  • 2,871
  • 5
  • 34
  • 68
2
votes
0 answers

How to set Archive Version in WLST offline deploy?

Is it somehow possible to set Archive Version in the WLST offline deployment? My current deployment is: # Create Application # ================== cd('/') app = create(appname, 'AppDeployment') app.setSourcePath(appdir + '/' +…
Tomas Kloucek
  • 251
  • 2
  • 12
2
votes
1 answer

In Jython, how can I raise a Python Exception, not a java.lang.Exception?

Python and Jython newbie here. I am passably familiar with how to raise exceptions in normal Python. However, in the Jython environment I find myself in (WLST), if I do: raise Exception("hello") ...then it appears to raise a…
Laird Nelson
  • 15,321
  • 19
  • 73
  • 127
2
votes
2 answers

How to check if application was deployed on a specific managed server?

I use following wlst command in order to check if application was already deployed before: oldApplication = find(name=d['name'], type='AppDeployment') But it does not show that application was deployed on a specific server. How can I find that…
Volodymyr Bezuglyy
  • 16,295
  • 33
  • 103
  • 133
2
votes
2 answers

Why does my re.search command is not working?

I have this 'if' condition inside my script: if ( re.search(argVariable, newArgs) ): However it fails when I passed on a certain value for 'argVariable' Sample output: Searching for the argument: -XX:+HeapDumpOnOutOfMemoryError argVariable:…
1 2
3
23 24