I had some trouble running the wlst.sh script associated with OSB:
. $ORACLE_HOME/Oracle_OSB1/common/bin/wlst.sh
I get:
$ORACLE_HOME ... wlserver_10.3/common/bin/wlst.sh: line 23: /bin/java: No such file or directory
in fact JAVA_HOME was not defined. Weird, because if I do "echo $JAVA_HOME" I get a valid value.
Well, wlst.sh invokes a bunch os other shell scripts, and one of them resets JAVA_HOME if JAVA_VENDOR is not defined. No warning given. Grunt!
So, you need to
export JAVA_VENDOR=Sun
before you run the script.
Yet when I use this version of wlst.sh to rnu the import.py, I get an error:
ImportError: no module named wli
At this point I would rather use the traditional way:
(make sure you type the leading ".")
. $ORACLE_HOME/user_projects/domains/mydomain/bin/setDomainEnv.sh
java weblogic.WLST
which works without any issue.
Weird-oh.
Wednesday, August 10, 2011
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment