Search code examples
weblogic12cosbwlst

OSB 12c wlst scripting


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.


Solution

  • 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.