Reputation: 13
Could you please help the procedure to follow for executing the WLST script on OSB 12c i.e from SOA suite/weblogic 12c server domain. As I see, I am not able to run a sample script to display the available proxies from the 12c OSB domain. I see the error as ImportError:No Module named WLI
, I saw from the OTN forum few sb jars are to be added to the classpath to resolve this issue, I don't see those specific jars in the 12c domain, let me know where to see them (sb-kernal-api,sb-kernal-impl,configwk-<version>
), but I have added them from the existing 11g OSB domain, it didn't help/work, further I see many nullPointerExceptions
in the WebLogic 12c server console for referring the jars from the 11g domain. Please suggest with any example to change one of the customization entry in a OSB proxy/business service using the WLST in the WebLogic 12c.
Thanks in advance.
Upvotes: 1
Views: 4371
Reputation: 1
You don't really need to edit the wlst.sh present under oracle_common/common/bin
instead execute wlst.sh located at $yourMW_home//Oracle_Home/osb/tools/configjar/wlst.sh
===========
#!/bin/sh
WLST_PROPERTIES="$JAVA_OPTS"
export WLST_PROPERTIES
WLST_EXT_CLASSPATH=$CLASSPATH
export WLST_EXT_CLASSPATH
"$MW_HOME/oracle_common/common/bin/wlst.sh" $*
wlst.sh (END)
======================
Upvotes: 0
Reputation: 136
You must edit $ORACLE_HOME/oracle_common/common/bin/wlst.sh
Change
export CLASSPATH
With
OSB_HOME="/Installation12c_Home/osb"
CLASSPATH=${OSB_HOME}/lib/modules/oracle.servicebus.configfwk.jar:${OSB_HOME}/lib/modules/oracle.servicebus.kernel-api.jar:${OSB_HOME}/lib/modules/oracle.servicebus.configfwk-wls.jar:${OSB_HOME}/lib/modules/oracle.servicebus.kernel-wls.jar:${CLASSPATH}
export CLASSPATH
With this change you can user the OSB Management API.
Examples:
I hope that helps.
Upvotes: 3