|
| Error running WLST script |
 |
Mon, 28 Apr 2008 02:44:06 -070 |
Hi all,
I'm using WLS 10 on Solaris. In order to simplify my problem description I've
used the sample source from
http://edocs.bea.com/alsb/docs30/javadoc/com/bea/wli/sb/management/configuration
/SessionManagementMBean.html
I've done below steps:
i) created the /tmp/wlstTemp folder
ii) added to my .profile the . /software/bea100/weblogic/server/bin/setWLSEnv.sh
Running WLST:
/tmp/wlst > java -Dpython.cachedir=/tmp/wlstTemp weblogic.WLST basic.py
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
Problem invoking WLST - Traceback (innermost last):
File "/tmp/wlst/basic.py", line 2, in ?
ImportError: No module named wli
What is missing in the above steps ?
Is a classpath problem ?
I've tried also with
java -classpath /software/bea100/weblogic/server/lib/weblogic.jar
-Dpython.cachedir=/tmp/wlstTemp weblogic.WLST basic.py
but the error is the same.
As said the source is taken from
http://edocs.bea.com/alsb/docs30/javadoc/com/bea/wli/sb/management/configuration
/SessionManagementMBean.html and first lines are
=======================
import wlstModule
from com.bea.wli.sb.management.configuration import SessionManagementMBean
from com.bea.wli.sb.management.configuration import ALSBConfigurationMBean
from com.bea.wli.config import Ref
try:
=======================
Regards
|
| Post Reply
|
|
|
|
|
|
|
|
|
|