7 Replies Latest reply on Jun 13, 2012 9:45 AM by ErikLoosman

    where to download wlst.jar and python.jar for weblogic 10

    679957
      where to download wlst.jar and python.jar for weblogic 10 ? I am unable to find the links ..most of the prevoius ones point to dev2dev which are no longer valid
        • 1. Re: where to download wlst.jar and python.jar for weblogic 10
          Yekki-Oracle
          1. it's illegal use it out of wls.
          2. you can't try it via wlfullclient.jar

          Use the following steps to create a wlfullclient.jar file for a client application:

          Change directories to the server/lib directory.
          cd WL_HOME/server/lib
          Use the following command to create wlfullclient.jar in the server/lib directory:
          java -jar ../../../modules/com.bea.core.jarbuilder_1.0.0.0.jar
          You can now copy and bundle the wlfullclient.jar with client applications.
          Add the wlfullclient.jar to the client application's classpath.

          BTW: wlst is based on jython( http://www.jython.org/Project/ )
          1 person found this helpful
          • 2. Re: where to download wlst.jar and python.jar for weblogic 10
            679957
            Problem invoking WLST - java.lang.RuntimeException: error in finding weblogic.Home
            /apps/java/jrockit-R27.5.0-jdk1.5.0_14/bin/java -cp lib/wlfullclient.jar weblogic.WLST
            i was able to create the jar but its giving me the foloowing error when i try to invoke
            • 3. Re: where to download wlst.jar and python.jar for weblogic 10
              679957
              /apps/java/jrockit-R27.5.0-jdk1.5.0_14/bin/java -cp wlfullclient.jar:jython.jar weblogic.WLST


              Initializing WebLogic Scripting Tool (WLST) ...

              Problem invoking WLST - java.lang.RuntimeException: error in finding weblogic.Home


              I built the jyton.jar also and still i am getting the same exception
              • 4. Re: where to download wlst.jar and python.jar for weblogic 10
                Yekki-Oracle
                my test result:

                wlst.cmd
                set JAVA_HOME=D:\jdks\jdk160_05
                set CLASSPATH=D:\bea\WLSERV~1.3\server\lib\weblogic.jar;
                "%JAVA_HOME%\bin\java" weblogic.WLST %*

                you can't move weblogic.jar out of WL_HOME\server\lib directory, i don't konw why, maybe it is hard coded.

                as what i said, you'd better not use it out of weblogic installation.
                • 5. Re: where to download wlst.jar and python.jar for weblogic 10
                  698963
                  I am getting the same exception as you guys. weblogic.jar is located in server/lib.

                  Did you ever get it working?
                  • 6. List weblogic user in realms
                    764057
                    Hi,
                    I have written the below python script to list the user ,that was created in realms->myrealms->users.
                    It's not working it.
                    Kindly help to in this python script.

                    from weblogic.management.security.authentication import UserReaderMBean
                    from weblogic.management.security.authentication import GroupReaderMBean
                    file_loc='MbeanValues.properties'
                    file=java.io.File(file_loc)
                    if file.exists():
                         loadProperties(file_loc)
                         
                    connect(dwlusr,dwlspwd,dwlsurl)
                    domain_name = cmo.getName()
                    print 'UserName='+dwlusr
                    print 'URL='+dwlsurl
                    print 'DomainName='+ domain_name
                    print 'welcome'
                    print 'Checking if isMember of a group'realm=cmo.getSecurityConfiguration().getDefaultRealm()
                    atns = realm.getAuthenticationProviders()
                    for i in atns:
                    if isinstance(i,UserReaderMBean):
                    userReader = i cursor = i.listUsers("*",0)
                    print 'Users in realm '+realm.getName()+' are: '
                    while userReader.haveCurrent(cursor):
                    print userReader.getCurrentName(cursor)
                    userReader.advance(cursor)
                    userReader.close(cursor)for i in atns:
                    if isinstance(i,GroupReaderMBean):
                    groupReader = i
                    cursor = i.listGroups("*",0)
                    print 'Groups in realm are: '
                    while groupReader.haveCurrent(cursor):
                    print groupReader.getCurrentName(cursor)
                    groupReader.advance(cursor)
                    groupReader.close(cursor)
                    disconnect()
                    • 7. Re: where to download wlst.jar and python.jar for weblogic 10
                      ErikLoosman
                      Yekkis, thanks for posting your wlst.cmd
                      In addition I'd like to say that the CLASSPATH environment variable (or the -cp parameter for the java-command) must contain the full path to the weblogic.jar

                      Even if you already are in the weblogic directory, you still need to supply the complete path to the -cp (classpath) parameter.
                      When I am here:
                      D:\Oracle\Middleware11_1_1_4_0\wlserver_10.3\server\lib\>
                      ... this won't work:
                      java -cp weblogic.jar weblogic.WLST
                      It will result in: "Problem invoking WLST - java.lang.RuntimeException: error in finding weblogic.Home"