This discussion is archived
5 Replies Latest reply: Apr 9, 2013 2:26 PM by user12019587 RSS

How can I use custom WLST commands for Oracle SOA Suite in Weblogic

988459 Newbie
Currently Being Moderated
Hi There,

I'm trying to view and search the weblogic log files using WLST on a Solaris/Unix system.
I have come across this "custom WLST commands for Oracle SOA Suite" and thought of using the custom logging commands to get my task done.

However, my WLST shell is not recognizing the commands and giving me the NameError!

wls:/devDomain1/domainRuntime> listLogs()
Traceback (innermost last):
File "<console>", line 1, in ?
NameError: listLogs

I tried the commands listLogs, displayLogs, getLogLevel & setLogLevel but in vain!

I have followed the instructions as per the oracle recommendation of using Custom WLST commands (http://docs.oracle.com/cd/E29597_01/core.1111/e10105/getstart.htm#ASADM10692) as below

- Launched the WLST shell from Oracle Home.

cd ORACLE_HOME/common/bin
./wlst.sh

- Tried to run the listLogs command from domainRuntime()

I would like to know if I need to import any additional libraries to run the custom WLST commands for Oracle SOA Suite in my WLST shell?
I have only weblogic 10.3.1 server installed on my Solaris 10 machine on which I have deployed the OSB application software.
There is no SOA Suite installed.

Or is there any other way I can browse the Server Log file and get the list of log messages? Basically I would like to use this feature in my script to customize it according to my requirement of listing specific error logs which I can work it out if I know how to make these commands work.

Please advise if this is possible and how?

Cheers.
Satish
  • 1. Re: How can I use custom WLST commands for Oracle SOA Suite in Weblogic
    Pierluigi Vernetto Pro
    Currently Being Moderated
    there are several "wlst.sh" around, each with a different classpath... my guess is that you should try using the one provided with SOA Suite... I haven't tested your custom commands however...
  • 2. Re: How can I use custom WLST commands for Oracle SOA Suite in Weblogic
    988459 Newbie
    Currently Being Moderated
    Thanks for the reply Pierluigi,
    I don't have SOA Suite installed on my machine. My organization doesn't required entire SOA suite but just the OSB application in the suite installed on Weblogic Server.
    I'm just wondering if there is any way I can download just the additional wlst capabilities of SOA suite and use them.
    Are the libraries used by wlst in SOA Suite available for download?

    Cheers,
    Satish.

    Edited by: apsnaidu on Mar 9, 2013 7:22 PM
  • 3. Re: How can I use custom WLST commands for Oracle SOA Suite in Weblogic
    Pierluigi Vernetto Pro
    Currently Being Moderated
    I have tried on my OSB installation (no SOA Suite here), the command listLogs() works (I was in online mode, after a connect), and the classpath is:

    CLASSPATH=/opt/oracle/fmw11_1_1_5/patch_wls1035/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/oracle/fw11_1_1_5/patch_ocp360/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.33.x6_64/lib/tools.jar:/opt/oracle/fmw11_1_1_5/wlserver_10.3/server/lib/weblogic_sp.jar:/opt/oracle/fmw11_1_1_5/wlserver_10./server/lib/weblogic.jar:/opt/oracle/fmw11_1_1_5/modules/features/weblogic.server.modules_10.3.5.0.jar:/opt/oracle/fmw111_1_5/wlserver_10.3/server/lib/webservices.jar:/opt/oracle/fmw11_1_1_5/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/optoracle/fmw11_1_1_5/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar::/opt/oracle/fmw11_1_1_5/oracle_common/moules/oracle.jrf_11.1.1/jrf-wlstman.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/lib/adfscripting.jar:/opt/oracl/fmw11_1_1_5/oracle_common/common/wlst/lib/adf-share-mbeans-wlst.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/lb/mdswlst.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/auditwlst.jar:/opt/oracle/fmw11_1_1_5/oracle_cmmon/common/wlst/resources/igfwlsthelp.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/jps-wlst.jar:/optoracle/fmw11_1_1_5/oracle_common/common/wlst/resources/jrf-wlst.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/reources/oamap_help.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/oamAuthnProvider.jar:/opt/oracle/fmw111_1_5/oracle_common/common/wlst/resources/ossoiap_help.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/osoiap.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/ovdwlsthelp.jar:/opt/oracle/fmw11_1_1_5/oracle_comon/common/wlst/resources/sslconfigwlst.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/wsm-wlst.jar:/optoracle/fmw11_1_1_5/utils/config/10.3/config-launch.jar::/opt/oracle/fmw11_1_1_5/wlserver_10.3/common/derby/lib/derbynet.ar:/opt/oracle/fmw11_1_1_5/wlserver_10.3/common/derby/lib/derbyclient.jar:/opt/oracle/fmw11_1_1_5/wlserver_10.3/common/drby/lib/derbytools.jar::



    The wlst.sh I have used is /opt/oracle/fmw11_1_1_5/osb/common/bin/wlst.sh

    I hope this can help
  • 4. Re: How can I use custom WLST commands for Oracle SOA Suite in Weblogic
    988459 Newbie
    Currently Being Moderated
    Thanks for that Pierluigi,

    I have checked my classpath and all those jar files under ..../oracle_common/common/wlst/.... are not present!

    This is how my WLST Classpath looks like.

    CLASSPATH=/opt/osb_prod/osb1031/patch_wlw1030/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/osb_prod/osb1031/patch_wls1030/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/osb_prod/osb1031/patch_cie670/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/osb_prod/osb1031/patch_alsb1031/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/osb_prod/osb1031/jdk160_05/lib/tools.jar:/opt/osb_prod/osb1031/wlserver_10.3/server/lib/weblogic_sp.jar:/opt/osb_prod/osb1031/wlserver_10.3/server/lib/weblogic.jar:/opt/osb_prod/osb1031/modules/features/weblogic.server.modules_10.3.0.0.jar:/opt/osb_prod/osb1031/wlserver_10.3/server/lib/webservices.jar:/opt/osb_prod/osb1031/modules/org.apache.ant_1.6.5/lib/ant-all.jar:/opt/osb_prod/osb1031/modules/net.sf.antcontrib_1.0.0.0_1-0b2/lib/ant-contrib.jar::/opt/osb_prod/osb1031/wlserver_10.3/common/eval/pointbase/lib/pbembedded57.jar:/opt/osb_prod/osb1031/wlserver_10.3/common/eval/pointbase/lib/pbtools57.jar:/opt/osb_prod/osb1031/wlserver_10.3/common/eval/pointbase/lib/pbclient57.jar


    Does your wlst folder (..../oracle_common/common/wlst/....) came as part of your osb installation or oracle installation itself?

    I have installed the oracle product in a separate path than that of osb & weblogic.

    WL Installation path: /opt/osb_prod/osb1031/wlserver_10.3
    OSB Installation path: /opt/osb_prod/osb1031/osb_10.3
    Oracle Installation path: /opt/oracle/product/10.2.0/client_1

    Looks like the required wlst libraries are missing from my classpath but I don't know from where to get them. A version upgrade? All the other wlst functions are working fine though.

    Cheers,
    Satish.
  • 5. Re: How can I use custom WLST commands for Oracle SOA Suite in Weblogic
    user12019587 Newbie
    Currently Being Moderated
    I had the same issues and I found this note 1284015.1

    This error show up if WLST command is executed from an incorrect location. For example:

    <Middleware>\wlserver_10.3\common\bin
    you need to make sure that you launch the WLST command from IDM Home. For example, use the one under <Middleware>\Oracle_IDM1\common\bin
    ( on my Windows installation it's D:\Oracle\Middleware\oracle_common\common\bin)

    I have a problem to redirect the output of displayLogs command to text file. I have tried redirect but how doesn't work

    Is anybody know how to send the output of this command to the text file?

    Thanks.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points