Archive for the ‘wlst’ Category

Old WLST tools

Wednesday, December 2nd, 2009

As you might know after the acquisition of BEA Systems by Oracle, Dev2Dev site has been discontinued. Unfortunately I don’t see a replacement for that, not only we lost some rich information, but a number of good tools. (more…)

No WLST cachedir with python.cachedir.skip

Friday, September 11th, 2009

In one of my previous post I have talked about python.cachedir and how it may cause some errors during WLST/Jython initialization.
With WebLogic 11g Oracle has upgraded the Jython Version from 2.1 to 2.2 (see my post here), which opens up yet another way of getting rid of these errors. In fact you can get rid of the cachedir entirely by starting WLST with -Dpython.cachedir.skip=true, this will instruct Jython not to create the CacheDir.
I haven’t done extensive testing with this option but so far I haven’t seen any issues by not creating this cachedir.

Jython 2.2 in WebLogic 11g

Friday, August 21st, 2009

I just started playing around with WebLogic Server 11g and realised that Oracle has upgraded Jython from 2.1 to 2.2, very nice!

(more…)

Monitoring your WebLogic SSL Certificates is important

Wednesday, August 19th, 2009

I was talking to my friend yesterday and he mentioned that he was up all night due to an outage that happened to the WebLogic environments he manages, when asked why?

Expired SSL Certificates!!! (more…)

How are python.cachedir and the error "*sys-package-mgr*: can't create package cache dir" are related

Tuesday, August 4th, 2009

While starting WLST or for that matter Jython, you might have seen this annoying error message,

*sys-package-mgr*: can’t create package cache dir, ‘/tmp/cachedir/packages’
Traceback (innermost last):
File “<iostream>”, line 12, in ?
ImportError: no module named java

(more…)

Default protocol in WebLogic and why is it important

Sunday, July 26th, 2009

If your WebLogic Server makes outbound connections to other systems it is wise to know what a DefaultProtocol is. Generally, when you create a WebLogic domain and haven’t configured SSL you will not have to do anything. (more…)

WebLogic Clustering with Unicast

Thursday, June 4th, 2009

Until WebLogic 9.2 the only communication mode available between the Cluster members of your WebLogic domain is ‘Multicast’. Starting with WebLogic 10.0, Oracle in addition to MultiCast, supports communication between the Cluster members using Unicast. Quick definitions of Unicast and Multicast from Wikipedia.

(more…)

Easing WLST syntax while navigating MBeans in interactive mode

Friday, December 12th, 2008

This is something I have implemented in WLST but never exposed as a supported feature. (more…)

IDE for WLST

Wednesday, October 22nd, 2008

I have been asked this question many times and recently here, “What IDE should I use for writing WLST/Jython Scripts?” Initially I used PyWin, it was great! After I started using Eclipse as my Java IDE I moved to JyDT. JyDT has all the features I needed, integrates nicely with Eclipse, provides Syntax higlighting and much more. I recommend JyDT if you are just starting of with Jython.

Encrypting a string in weblogic

Tuesday, June 24th, 2008

One of my developer was asked me this morning if he can encrypt a string so that he does not have to store a clear string in his scripts or variables while configuring resources especially JDBC connection pool’s. A quick and easy way to encrypt a String in WebLogic is to use the encrypt command in WLST.

import java.lang.System
encStr = encrypt(“mypassword”, java.lang.System.getenv(“DOMAIN_HOME”))

WLST internally calls the weblogic.security.Encrypt utility to encrypt the clear string. You can directly use this command line tool to encrypt the password and use the encrypted password in your scripts.