WLST raves

Just wanted to share some of the positive feedback I've gotten about WLST. We're
moving toward doing all Weblogic configuration with WLST, using some long scripts
and some short config files.
Here:
Hey Justin,
I successfully configured the instances that needed reconfiguring using the .py
scripts. That stuff rocks! I am NEVER using the console again. What in the
past would have taken me over 15 mins to do, I did in 45 secs!! I am very pleased
with the wlst. I am now looking forward more than ever to learning Python.
I just need a little help in checking the .py scripts that I made changes to.
Thanks a lot!!!

Thanks for the feedback. Appreciate it!
-satya
Justin Dossey wrote:
Just wanted to share some of the positive feedback I've gotten about WLST. We're
moving toward doing all Weblogic configuration with WLST, using some long scripts
and some short config files.
Here:
Hey Justin,
I successfully configured the instances that needed reconfiguring using the .py
scripts. That stuff rocks! I am NEVER using the console again. What in the
past would have taken me over 15 mins to do, I did in 45 secs!! I am very pleased
with the wlst. I am now looking forward more than ever to learning Python.
I just need a little help in checking the .py scripts that I made changes to.
Thanks a lot!!!

Similar Messages

  • Wlst offline - create a new domain in weblogic portal 10.2

    Hi,
    Any one have automation script to create weblogic portal domain, create portlet data base ( not point base).and Domain resources: Machines,Servers, Clusters and data sources. I tried the one which comes with installation ( wlst offlie domain creation script), but it is just configuring weblogic server but not portal.
    Thanks.
    Krishna.

    #=======================================================================================
    # WLST Common Script Library Functions (these functions support both WLS 8.1.x and 9.x)
    #=======================================================================================
    __all__ = []
    import os
    from java.io import FileInputStream
    from java.util import Properties
    from java.lang import String
    import jarray
    #=======================================================================================
    # RAVI enable library functions to see and use WLST functions
    #=======================================================================================
    def initialise(topLevelNamespace):
    for f in ("addTemplate", "closeDomain", "closeTemplate", "exit", "readDomain",
    "readTemplate", "updateDomain", "writeDomain", "cd", "assign",
    "assignAll", "create", "delete", "get", "loadDB", "set", "setOption",
    "unassign", "unassignAll", "dumpStack", "dumpVariables", "help", "ls",
    "prompt", "pwd", "startRecording", "stopRecording", ):
    globals()[f] = topLevelNamespace[f]
    __all__.append(f)
    #=======================================================================================
    # Load Properties
    #=======================================================================================
    def loadPropertiesFromFile(filename):
    props = addPropertiesFromFile(filename, {})
    return props
    #=======================================================================================
    # Load Properties
    #=======================================================================================
    def addPropertiesFromFile(filename, props):
    properties = Properties()
    input = FileInputStream(filename)
    properties.load(input)
    input.close()
    for entry in properties.entrySet(): props[entry.key.strip()] = entry.value.strip()
    return props
    #=======================================================================================
    # Get WebLogic Version (eg. returns '8.1.5.0', '9.1.0.0', '9.2.0.0')
    #=======================================================================================
    def getWebLogicVersion():
    return cd('/').getConfigurationVersion()
    #=======================================================================================
    # Get Machine Create Type (returns 'UnixMachine' or 'Machine')
    #=======================================================================================
    def getMachineCreateType():
    # On Unix, machine type is 'UnixMachine' on Windows it is 'Machine'
    if os.pathsep == ':':
    return 'UnixMachine'
    else:
    return 'Machine'
    #=======================================================================================
    # Get Machine Directory Type (returns 'UnixMachine' or 'Machine')
    #=======================================================================================
    def getMachineDirectoryType():
    # On Unix, machine type is 'UnixMachine' on Windows it is 'Machine'
    if os.pathsep == ':':
    # When moving from WLS 9.1 to WLS 9.2, WLS changed name of unix machines from
    # 'UnixMachine' to just 'Machine'
    wlsVersion = getWebLogicVersion()
    if wlsVersion.startswith('8') or wlsVersion.startswith('9.0') or wlsVersion.startswith('9.1'):
    return 'UnixMachine'
    else:
    return 'Machine'
    else:
    return 'Machine'
    #=======================================================================================
    # Set Domain Options
    #=======================================================================================
    def setDomainOptions(prodMode, javaHome):
    setOption('OverwriteDomain', 'true')
    setOption('ServerStartMode', prodMode)
    setOption('JavaHome', javaHome)
    setOption('CreateStartMenu', 'false')
    #=======================================================================================
    # Set System User
    #=======================================================================================
    def setSystemUser(domainname, username, password):
    sysUser = cd('/Security/%s/User/weblogic' % domainname)
    sysUser.setName(username)
    sysUser.setPassword(password)
    #=======================================================================================
    # Create WLS81 Oracle Database Pool
    #=======================================================================================
    def createWLS81OracleDatabasePool(dbName, dbUsername, dbPassword, dbDriver, dbUrl):
    newPool = create(dbName, 'JDBCConnectionPool')
    newPool.setDriverName(dbDriver)
    newPool.setURL(dbUrl)
    newPool.setPassword(dbPassword)
    newPool.setInitialCapacity(5)
    newPool.setTestFrequencySeconds(60)
    newPool.setTestConnectionsOnRelease(1)
    newPool.setTestConnectionsOnReserve(1)
    newPool.setConnectionReserveTimeoutSeconds(60)
    newPool.setUserName(dbUsername)
    return newPool
    #=======================================================================================
    # Create WLS81 Data Source
    #=======================================================================================
    def createWLS81DataSource(dsType, dsName, jndiName, poolName):
    ds = create(dsName, dsType)
    ds.setJNDIName(jndiName)
    ds.setPoolName(poolName)
    return ds
    #=======================================================================================
    # Configure WLS9 Oracle Database
    #=======================================================================================
    def configureWLS9OracleDatabase(dsName, jndiNames, driver, host, port, sid, username, password, targets):
    cd('/')
    dataSource = create(dsName, 'JDBCSystemResource')
    cd('/JDBCSystemResource/' + dsName + '/JdbcResource/' + dsName)
    dbParam = create('dbParams','JDBCDriverParams')
    cd('JDBCDriverParams/NO_NAME_0')
    dbParam.setDriverName(driver)
    set('URL', 'jdbc:oracle:thin:@' + host + ':' + port + ':' + sid)
    dbParam.setPasswordEncrypted(password)
    dbProps = create('props','Properties')
    cd('Properties/NO_NAME_0')
    dbUser = create('user', 'Property')
    dbUser.setValue(username)
    cd('/JDBCSystemResource/' + dsName + '/JdbcResource/' + dsName)
    create('jdbcDataSourceParams','JDBCDataSourceParams')
    cd('JDBCDataSourceParams/NO_NAME_0')
    set("JNDINames", jndiNames)
    cd('/JDBCSystemResource/' + dsName + '/JdbcResource/' + dsName)
    create('jdbcConnectionPoolParams','JDBCConnectionPoolParams')
    cd('JDBCConnectionPoolParams/NO_NAME_0')
    set('TestTableName','SQL SELECT 1 FROM DUAL')
    set('TestConnectionsOnReserve','true')
    assign('JDBCSystemResource', dsName, 'Target', targets)
    return dataSource
    #=======================================================================================
    # Configure WLS102 DB2
    #=======================================================================================
    def configureWLS102DB2(dsName, jndiNames, driver, host, port, sid, username, password, targets, trans, url, testquery):
    print 'datasource('+dsName+','+ jndiNames+','+ driver+','+ host+','+ port+','+ sid+','+ username+','+ password+','+targets+','+ trans+','+url+',' + testquery +'):'
    cd('/')
    dataSource = create(dsName, 'JDBCSystemResource')
    cd('/JDBCSystemResource/' + dsName + '/JdbcResource/' + dsName)
    dbParam = create('dbParams','JDBCDriverParams')
    cd('JDBCDriverParams/NO_NAME_0')
    dbParam.setDriverName(driver)
    #set('URL', 'jdbc:bea:db2://' + host + ':' + port)
    set('URL', url)
    dbParam.setPasswordEncrypted(password)
    #dbParam.setPassword(password)
    dbProps = create('props','Properties')
    cd('Properties/NO_NAME_0')
    dbUser = create('user', 'Property')
    dbUser.setValue(username)
    dbPortNumber = create('portNumber', 'Property')
    dbPortNumber.setValue(port)
    dbDbName = create('databaseName', 'Property')
    dbDbName.setValue(sid)
    dbHost = create('serverName', 'Property')
    dbHost.setValue(host)
    dbBatch = create('batchPerformanceWorkaround', 'Property')
    dbBatch.setValue('true')
    cd('/JDBCSystemResource/' + dsName + '/JdbcResource/' + dsName)
    create('jdbcDataSourceParams','JDBCDataSourceParams')
    cd('JDBCDataSourceParams/NO_NAME_0')
    jndiNamesAray=jndiNames.split(',')
    set('JNDINames', jndiNamesAray)
    set('GlobalTransactionsProtocol', trans)
    #cd('/JDBCSystemResources/ttttt/JDBCResource/ttttt/JDBCDataSourceParams/ttttt')
    #cd('/JDBCSystemResource/' + dsName + '/JdbcResource/' + dsName)
    #cd('JDBCDataSourceParams/NO_NAME_0')
    #dbDatasource = cmo
    #dbDatasource.setGlobalTransactionsProtocol(trans)
    cd('/JDBCSystemResource/' + dsName + '/JdbcResource/' + dsName)
    create('jdbcConnectionPoolParams','JDBCConnectionPoolParams')
    cd('JDBCConnectionPoolParams/NO_NAME_0')
    #set('TestTableName','SQL SELECT COUNT(*) FROM SYSIBM.SYSTABLES')
    set('TestTableName',testquery)
    set('TestConnectionsOnReserve','true')
    assign('JDBCSystemResource', dsName, 'Target', targets)
    cd('/JDBCSystemResources/'+dsName)
    #targetsAray=[targets]
    #set('Targets',targetsAray)
    return dataSource
    #=======================================================================================
    # Set Common Server Settings
    #=======================================================================================
    def setCommonServerSettings(server):
    server.setNativeIOEnabled(1)
    server.setWeblogicPluginEnabled(1)
    #=======================================================================================
    # Set Server Logging
    #=======================================================================================
    def setServerLogging(server, logpath, level):
    cd('/Server/' + server.getName())
    log = create(server.getName(), 'Log')
    log.setFileName(logpath + '/' + server.getName() + '.log')
    log.setRotationType('byTime')
    log.setRotationTime('02:00')
    log.setFileTimeSpan(24)
    log.setFileCount(7)
    log.setLogFileSeverity(level)
    #=======================================================================================
    # Set Web Server
    #=======================================================================================
    def setWebServer(server, logpath, frontEndHost, frontEndPort, frontEndSSLPort):
    cd('/Server/' + server.getName())
    webServer = create(server.getName(), 'WebServer')
    webServer.setFrontendHost(frontEndHost)
    webServer.setFrontendHTTPPort(frontEndPort)
    webServer.setFrontendHTTPSPort(frontEndSSLPort)
    wlsVersion = getWebLogicVersion()
    if wlsVersion.startswith('9') or wlsVersion.startswith('10'):
    cd('/Server/' + server.getName() + '/WebServer/' + server.getName())
    webServerLog = create(server.getName(),'WebServerLog')
    webServerLog.setFileName(logpath + '/' + server.getName() + '_access.log')
    webServerLog.setRotationType('byTime')
    webServerLog.setRotationTime('02:00')
    webServerLog.setFileTimeSpan(24)
    webServerLog.setFileCount(7)
    else:
    webServer.setLogFileName(logpath + '/' + server.getName() + '_access.log')
    webServer.setLogRotationType('date')
    webServer.setLogRotationTimeBegin('01-01-2006-2:00:00')
    webServer.setLogRotationPeriodMins(1440)
    webServer.setLogFileCount(7)
    #=======================================================================================
    # Create Boot Properties File
    #=======================================================================================
    def createBootPropertiesFile(directoryPath, username, password):
    file = open (directoryPath + '/boot.properties', 'w')
    file.write('username=%s\n' % username)
    file.write('password=%s\n' % password)
    file.flush()
    file.close()
    Hopefully this will work for you

  • Wlst ofline writeDomain error

    Hi,
    I am using wlst offline downloaded from dev2dev site, which i believe is based on jython. Anyway, i am trying to create a domain. All is well untill i try to write the domain using writeDomain(). It fails with the following error
    "java.io.IOException: Unable to resolve input source.
    Error: writeDomain() failed.
    Traceback (innermost last):
    File "wls.py", line 9, in ?
    File "initWls.py", line 70, in writeDomain
    com.bea.plateng.domain.script.jython.WLSTException: java.lang.NullPointerException
    at com.bea.plateng.domain.script.jython.CommandExceptionHandler.handleException(CommandExceptionHandler.java:33)
    at com.bea.plateng.domain.script.jython.WLScriptContext.handleException(WLScriptContext.java:890)
    at com.bea.plateng.domain.script.jython.WLScriptContext.writeDomain(WLScriptContext.java:459)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java)
    at org.python.core.PyMethod.__call__(PyMethod.java)
    at org.python.core.PyObject.__call__(PyObject.java)
    at org.python.core.PyInstance.invoke(PyInstance.java)
    I have a valid directory and can write perfectly into this. Any ideas, why this failing to write the domain.
    Thx,
    Ravi

    Hello,
    I believe you did not set up your classpath according to the doc.
    Specifically I think you did not put @WL_HOME/server/lib in classpath.
    The script runs fine on my machine. Please follow the readme.txt,
    especially step 3 and step 4:
    3. Extract the following files from the WLST offline configuration kit:
    NOTE: <WL_HOME> refers to the root directory of your WebLogic
    Platform installation.
    By default, the pathname for this directory is c:\bea\weblogic81.
    o WLST JAR files, including config.jar, comdev.jar, and 3rdparty.jar, to
    <WL_HOME>\common\lib.
    NOTE: It is recommended that you back up the existing JAR files.
    For version compatibility,
    they may have to be used when you use non-WLST related Weblogic
    features.
    o runWLSTOffline.cmd and runWLSTOffline.sh script files to
    <WL_HOME>\common\bin.
    o (Optional) Sample script files to the desired location.
    4. Update the CLASSPATH environment variable to include the following
    WebLogic Server,
    Jython, and WLST files and directories:
    NOTE: <JYTHON_HOME> refers to the root directory of your Jython
    installation.
    <WL_HOME>\server\lib
    <WL_HOME>\server\lib\weblogic.jar
    <JYTHON_HOME>\jython.jar
    <WL_HOME>\common\lib\config.jar
    <WL_HOME>\common\lib\comdev.jar
    <WL_HOME>\common\lib\3rdparty.jar
    Thanks,
    -satya
    Web Team wrote:
    Hi The log is as follows
    "========================================================
    << read template from "/opt/was/bea/weblogic81/common/templates/domains/wls.jar"
    succeed: read template from "/opt/was/bea/weblogic81/common/templates/domains/wls.jar"<< find Server "myserver" as obj0
    succeed: find Server "myserver" as obj0<< set obj0 attribute ListenAddress to ""
    succeed: set obj0 attribute ListenAddress to ""<< set obj0 attribute ListenPort to "7001"
    succeed: set obj0 attribute ListenPort to "7001"<< find User "weblogic" as obj1
    succeed: find User "weblogic" as obj1<< set obj1 attribute Password to "********"
    succeed: set obj1 attribute Password to "********"<< set config option OverwriteDomain to "true"
    succeed: set config option OverwriteDomain to "true"<< write Domain to "/opt/was/ravi/user_projects/mydomain"
    esourceBundleManager - Retrieved (Everyone of all groups.) under key (SecurityDesc.group.everyone) from namespace <config>.
    2004-09-10 08:52:13,397 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (built-in anonymous role) under key (SecurityDesc.role.anonymous) from namespace <config>.
    2004-09-10 08:52:13,649 INFO [main] com.bea.plateng.domain.TemplateBuilder - _apps_ not found in the template jar. Assuming old template structure.
    2004-09-10 08:52:14,647 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Target) under key (target) from namespace <config>.
    2004-09-10 08:52:14,664 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Server) under key (Server) from namespace <config>.
    2004-09-10 08:52:14,779 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Application) under key (application) from namespace <config>.
    2004-09-10 08:52:14,863 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Target) under key (target) from namespace <config>.
    2004-09-10 08:52:14,867 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Server) under key (Server) from namespace <config>.
    2004-09-10 08:52:14,875 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Service) under key (service) from namespace <config>.
    2004-09-10 08:52:14,879 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Migratable RMI Service) under key (migratableRMIService) from namespace <config>.
    2004-09-10 08:52:14,883 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Shutdown Class) under key (shutdownClass) from namespace <config>.
    2004-09-10 08:52:14,887 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Startup Class) under key (startupClass) from namespace <config>.
    2004-09-10 08:52:14,891 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (File T3) under key (fileT3) from namespace <config>.
    2004-09-10 08:52:14,896 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Messaging Bridge) under key (messagingBridge) from namespace <config>.
    2004-09-10 08:52:14,910 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Jolt Connection Pool) under key (joltConnectionPool) from namespace <config>.
    2004-09-10 08:52:14,916 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (WLEC Connection Pool) under key (wlecConnectionPool) from namespace <config>.
    2004-09-10 08:52:14,932 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (WTC Server) under key (wtcServer) from namespace <config>.
    2004-09-10 08:52:15,165 DEBUG [main] com.bea.plateng.domain.ApplicationTemplate - Attempting to replace component: FileStore of type: com.bea.plateng.domain.xml.config.JMSFileStoreType in
    2004-09-10 08:52:15,301 DEBUG [main] com.bea.plateng.domain.ApplicationTemplate - Attempting to remove component: FileStore of type: com.bea.plateng.domain.xml.config.JMSFileStoreType from
    2004-09-10 08:52:15,323 DEBUG [main] com.bea.plateng.domain.ApplicationTemplate - Attempting to find component: FileStore of type: com.bea.plateng.domain.xml.config.JMSFileStoreType in
    2004-09-10 08:52:15,356 DEBUG [main] com.bea.plateng.domain.ApplicationTemplate - Attempting to add component: FileStore of type: com.bea.plateng.domain.xml.config.JMSFileStoreType to
    2004-09-10 08:52:15,376 DEBUG [main] com.bea.plateng.domain.ApplicationTemplate - Added: FileStore to
    2004-09-10 08:52:15,379 DEBUG [main] com.bea.plateng.domain.ApplicationTemplate - Component: FileStore of type: com.bea.plateng.domain.xml.config.JMSFileStoreType was replaced in
    2004-09-10 08:52:15,403 DEBUG [main] com.bea.plateng.domain.ApplicationTemplate - Attempting to replace component: RMDefaultPolicy of type: com.bea.plateng.domain.xml.config.WSReliableDeliveryPolicyType in
    2004-09-10 08:52:15,407 DEBUG [main] com.bea.plateng.domain.ApplicationTemplate - Attempting to remove component: RMDefaultPolicy of type: com.bea.plateng.domain.xml.config.WSReliableDeliveryPolicyType from
    2004-09-10 08:52:15,409 DEBUG [main] com.bea.plateng.domain.ApplicationTemplate - Attempting to find component: RMDefaultPolicy of type: com.bea.plateng.domain.xml.config.WSReliableDeliveryPolicyType in
    2004-09-10 08:52:15,425 DEBUG [main] com.bea.plateng.domain.ApplicationTemplate - Attempting to add component: RMDefaultPolicy of type: com.bea.plateng.domain.xml.config.WSReliableDeliveryPolicyType to
    2004-09-10 08:52:15,432 DEBUG [main] com.bea.plateng.domain.ApplicationTemplate - Added: RMDefaultPolicy to
    2004-09-10 08:52:15,435 DEBUG [main] com.bea.plateng.domain.ApplicationTemplate - Component: RMDefaultPolicy of type: com.bea.plateng.domain.xml.config.WSReliableDeliveryPolicyType was replaced in
    2004-09-10 08:52:15,545 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (WS Reliable Delivery Policy) under key (WSReliableDeliveryPolicy) from namespace <config>.
    2004-09-10 08:52:15,548 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (JMS JDBC Store) under key (jms.jdbcStore) from namespace <config>.
    2004-09-10 08:52:15,551 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (JMS File Store) under key (jms.fileStore) from namespace <config>.
    2004-09-10 08:52:15,661 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Group) under key (Group) from namespace <config>.
    2004-09-10 08:52:15,669 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (User) under key (User) from namespace <config>.
    2004-09-10 08:52:15,676 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (User) under key (User) from namespace <config>.
    2004-09-10 08:52:15,678 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (User) under key (User) from namespace <config>.
    2004-09-10 08:52:15,680 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (User) under key (User) from namespace <config>.
    2004-09-10 08:52:15,750 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (group) from namespace <config>.
    2004-09-10 08:52:15,757 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Group) under key (Group) from namespace <config>.
    2004-09-10 08:52:15,760 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Group) under key (Group) from namespace <config>.
    2004-09-10 08:52:15,762 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Group) under key (Group) from namespace <config>.
    2004-09-10 08:52:15,765 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Group) under key (Group) from namespace <config>.
    2004-09-10 08:52:15,796 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Role) under key (Role) from namespace <config>.
    2004-09-10 08:52:15,801 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Group) under key (Group) from namespace <config>.
    2004-09-10 08:52:15,807 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (User) under key (User) from namespace <config>.
    2004-09-10 08:52:15,813 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Group) under key (Group) from namespace <config>.
    2004-09-10 08:52:15,835 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (User) under key (User) from namespace <config>.
    2004-09-10 08:52:15,837 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Group) under key (Group) from namespace <config>.
    2004-09-10 08:52:15,839 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (User) under key (User) from namespace <config>.
    2004-09-10 08:52:15,842 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Group) under key (Group) from namespace <config>.
    2004-09-10 08:52:15,846 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (User) under key (User) from namespace <config>.
    2004-09-10 08:52:15,848 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Group) under key (Group) from namespace <config>.
    2004-09-10 08:52:15,851 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (User) under key (User) from namespace <config>.
    2004-09-10 08:52:15,967 INFO [main] com.bea.plateng.domain.script.ScriptExecutor - succeed: read template from "/opt/was/bea/weblogic81/common/templates/domains/wls.jar"
    2004-09-10 08:52:16,399 INFO [main] com.bea.plateng.domain.script.ScriptExecutor - find Server "myserver" as obj0
    2004-09-10 08:52:16,636 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (Server.Name) from namespace <config>.
    2004-09-10 08:52:16,642 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (Name) from namespace <config>.
    2004-09-10 08:52:16,648 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (Server.ListenAddress) from namespace <config>.
    2004-09-10 08:52:16,659 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (ListenAddress) from namespace <config>.
    2004-09-10 08:52:16,666 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (Server.ListenPort) from namespace <config>.
    2004-09-10 08:52:16,670 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (ListenPort) from namespace <config>.
    2004-09-10 08:52:16,674 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (SSL.ListenPort) from namespace <config>.
    2004-09-10 08:52:16,676 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (ListenPort) from namespace <config>.
    2004-09-10 08:52:16,679 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (SSL.Enabled) from namespace <config>.
    2004-09-10 08:52:16,681 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (Enabled) from namespace <config>.
    2004-09-10 08:52:16,686 INFO [main] com.bea.plateng.domain.script.ScriptExecutor - succeed: find Server "myserver" as obj0
    2004-09-10 08:52:17,406 INFO [main] com.bea.plateng.domain.script.ScriptExecutor - set obj0 attribute ListenAddress to ""
    2004-09-10 08:52:17,441 INFO [main] com.bea.plateng.domain.script.ScriptExecutor - succeed: set obj0 attribute ListenAddress to ""
    2004-09-10 08:52:17,455 INFO [main] com.bea.plateng.domain.script.ScriptExecutor - set obj0 attribute ListenPort to "7001"
    2004-09-10 08:52:17,463 INFO [main] com.bea.plateng.domain.script.ScriptExecutor - succeed: set obj0 attribute ListenPort to "7001"
    2004-09-10 08:52:17,467 INFO [main] com.bea.plateng.domain.script.ScriptExecutor - find User "weblogic" as obj1
    2004-09-10 08:52:17,512 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (User name) under key (User.Name) from namespace <config>.
    2004-09-10 08:52:17,516 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (User.UserPassword) from namespace <config>.
    2004-09-10 08:52:17,517 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (UserPassword) from namespace <config>.
    2004-09-10 08:52:17,522 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (User.ConfirmUserPassword) from namespace <config>.
    2004-09-10 08:52:17,526 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (ConfirmUserPassword) from namespace <config>.
    2004-09-10 08:52:17,528 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (User.Description) from namespace <config>.
    2004-09-10 08:52:17,530 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (Description) from namespace <config>.
    2004-09-10 08:52:17,534 INFO [main] com.bea.plateng.domain.script.ScriptExecutor - succeed: find User "weblogic" as obj1
    2004-09-10 08:52:17,575 INFO [main] com.bea.plateng.domain.script.ScriptExecutor - set obj1 attribute Password to "********"
    2004-09-10 08:52:17,579 INFO [main] com.bea.plateng.domain.script.ScriptExecutor - succeed: set obj1 attribute Password to "********"
    2004-09-10 08:52:17,582 INFO [main] com.bea.plateng.domain.script.ScriptExecutor - set config option OverwriteDomain to "true"
    2004-09-10 08:52:17,584 INFO [main] com.bea.plateng.domain.script.ScriptExecutor - succeed: set config option OverwriteDomain to "true"
    2004-09-10 08:52:17,598 INFO [main] com.bea.plateng.domain.script.ScriptExecutor - write Domain to "/opt/was/ravi/user_projects/mydomain"
    2004-09-10 08:52:17,822 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (Server.Name) from namespace <config>.
    2004-09-10 08:52:17,826 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (Name) from namespace <config>.
    2004-09-10 08:52:17,828 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (Server.ListenAddress) from namespace <config>.
    2004-09-10 08:52:17,832 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (ListenAddress) from namespace <config>.
    2004-09-10 08:52:17,835 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (Server.ListenPort) from namespace <config>.
    2004-09-10 08:52:17,837 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (ListenPort) from namespace <config>.
    2004-09-10 08:52:17,840 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (SSL.ListenPort) from namespace <config>.
    2004-09-10 08:52:17,845 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (ListenPort) from namespace <config>.
    2004-09-10 08:52:17,847 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (SSL.Enabled) from namespace <config>.
    2004-09-10 08:52:17,848 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (Enabled) from namespace <config>.
    2004-09-10 08:52:17,947 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (Cluster.Name) from namespace <config>.
    2004-09-10 08:52:17,952 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (Name) from namespace <config>.
    2004-09-10 08:52:17,957 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (Cluster.MulticastAddress) from namespace <config>.
    2004-09-10 08:52:17,960 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (MulticastAddress) from namespace <config>.
    2004-09-10 08:52:17,963 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (Cluster.MulticastPort) from namespace <config>.
    2004-09-10 08:52:17,966 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (MulticastPort) from namespace <config>.
    2004-09-10 08:52:17,968 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (Cluster.ClusterAddress) from namespace <config>.
    2004-09-10 08:52:17,970 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (ClusterAddress) from namespace <config>.
    2004-09-10 08:52:18,086 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (Machine.Name) from namespace <config>.
    2004-09-10 08:52:18,089 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (Name) from namespace <config>.
    2004-09-10 08:52:18,091 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (NodeManager.ListenAddress) from namespace <config>.
    2004-09-10 08:52:18,095 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (ListenAddress) from namespace <config>.
    2004-09-10 08:52:18,096 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (NodeManager.ListenPort) from namespace <config>.
    2004-09-10 08:52:18,098 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (ListenPort) from namespace <config>.
    2004-09-10 08:52:18,142 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (UnixMachine.Name) from namespace <config>.
    2004-09-10 08:52:18,146 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (Name) from namespace <config>.
    2004-09-10 08:52:18,148 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (UnixMachine.PostBindGIDEnabled) from namespace <config>.
    2004-09-10 08:52:18,150 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (PostBindGIDEnabled) from namespace <config>.
    2004-09-10 08:52:18,156 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (UnixMachine.PostBindGID) from namespace <config>.
    2004-09-10 08:52:18,158 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (PostBindGID) from namespace <config>.
    2004-09-10 08:52:18,160 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (UnixMachine.PostBindUIDEnabled) from namespace <config>.
    2004-09-10 08:52:18,162 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (PostBindUIDEnabled) from namespace <config>.
    2004-09-10 08:52:18,165 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (UnixMachine.PostBindUID) from namespace <config>.
    2004-09-10 08:52:18,166 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (PostBindUID) from namespace <config>.
    2004-09-10 08:52:18,168 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (NodeManager.ListenAddress) from namespace <config>.
    2004-09-10 08:52:18,171 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (ListenAddress) from namespace <config>.
    2004-09-10 08:52:18,174 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (NodeManager.ListenPort) from namespace <config>.
    2004-09-10 08:52:18,177 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (ListenPort) from namespace <config>.
    2004-09-10 08:52:18,730 DEBUG [main] com.bea.plateng.domain.jdbc.JDBCHelper - jdbcdrivers.xml not found in classpath, trying "../../server/lib/jdbcdrivers.xml"
    2004-09-10 08:52:18,737 DEBUG [main] com.bea.plateng.domain.jdbc.JDBCHelper - jdbcdrivers.xml not found at "/opt/server/lib/jdbcdrivers.xml", giving up...
    2004-09-10 08:52:18,917 ERROR [main] com.bea.plateng.domain.jdbc.JDBCHelper - weblogic.xml.stream.XMLStreamException: Unable to instantiate the stream, the error was: Unable to resolve input source.
    weblogic.xml.stream.XMLStreamException: Unable to instantiate the stream, the error was: Unable to resolve input source.
         at weblogic.xml.babel.stream.XMLInputStreamBase.open(XMLInputStreamBase.java:91)
         at weblogic.xml.babel.stream.XMLInputStreamBase.open(XMLInputStreamBase.java:49)
         at weblogic.xml.babel.stream.XMLInputStreamFactoryImpl.newInputStream(XMLInputStreamFactoryImpl.java:67)
         at weblogic.xml.babel.stream.XMLInputStreamFactoryImpl.newInputStream(XMLInputStreamFactoryImpl.java:49)
         at weblogic.xml.babel.stream.XMLInputStreamFactoryImpl.newInputStream(XMLInputStreamFactoryImpl.java:79)
         at weblogic.jdbc.utils.JDBCConnectionMetaDataParser.loadSchema(JDBCConnectionMetaDataParser.java:216)
         at weblogic.jdbc.utils.JDBCConnectionMetaDataParser.<init>(JDBCConnectionMetaDataParser.java:127)
         at com.bea.plateng.domain.jdbc.JDBCHelper.getDriverInfoFactory(JDBCHelper.java:393)
         at com.bea.plateng.domain.jdbc.JDBCAspectHelper.initDriverMap(JDBCAspectHelper.java:613)
         at com.bea.plateng.domain.jdbc.JDBCAspectHelper.getJDBCDriverClassTable(JDBCAspectHelper.java:602)
         at com.bea.plateng.domain.jdbc.JDBCAspectHelper.getGenericJDBCDriverInfo(JDBCAspectHelper.java:731)
         at com.bea.plateng.domain.jdbc.JDBCAspectHelper.getGenericJDBCDriverInfo(JDBCAspectHelper.java:211)
         at com.bea.plateng.domain.aspect.JDBCConnectionPoolDriverNameConfigAspect.decompose(JDBCConnectionPoolDriverNameConfigAspect.java:54)
         at com.bea.plateng.domain.aspect.ConfigAspectImpl.setDelegate(ConfigAspectImpl.java:493)
         at com.bea.plateng.domain.aspect.ConfigAspectBuilder.createJDBCConnectionPoolSimpleAspect(ConfigAspectBuilder.java:367)
         at com.bea.plateng.domain.operation.config.ConfigJDBCConnectionPool.createNewSimpleConfigAspects(ConfigJDBCConnectionPool.java:121)
         at com.bea.plateng.domain.operation.HTableEditOperation.createSimpleTableModel(HTableEditOperation.java:647)
         at com.bea.plateng.domain.operation.HTableEditOperation.getSimpleTableModel(HTableEditOperation.java:299)
         at com.bea.plateng.domain.operation.HTableEditOperation.initSimpleTableModel(HTableEditOperation.java:531)
         at com.bea.plateng.domain.DomainChecker.isOperationValid(DomainChecker.java:590)
         at com.bea.plateng.domain.DomainChecker.getInvalidSection(DomainChecker.java:155)
         at com.bea.plateng.domain.GeneratorHelper.validateDomainCreation(GeneratorHelper.java:82)
         at com.bea.plateng.domain.script.ScriptExecutor.writeDomain(ScriptExecutor.java:516)
         at com.bea.plateng.domain.script.jython.WLScriptContext.writeDomain(WLScriptContext.java:453)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java)
         at org.python.core.PyMethod.__call__(PyMethod.java)
         at org.python.core.PyObject.__call__(PyObject.java)
         at org.python.core.PyInstance.invoke(PyInstance.java)
         at org.python.pycode._pyx0.writeDomain$14(initWls.py:70)
         at org.python.pycode._pyx0.call_function(initWls.py)
         at org.python.core.PyTableCode.call(PyTableCode.java)
         at org.python.core.PyTableCode.call(PyTableCode.java)
         at org.python.core.PyFunction.__call__(PyFunction.java)
         at org.python.pycode._pyx1.f$0(wls.py:9)
         at org.python.pycode._pyx1.call_function(wls.py)
         at org.python.core.PyTableCode.call(PyTableCode.java)
         at org.python.core.PyCode.call(PyCode.java)
         at org.python.core.Py.runCode(Py.java)
         at org.python.core.__builtin__.execfile_flags(__builtin__.java)
         at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java)
         at com.bea.plateng.domain.script.jython.WLST_offline.main(WLST_offline.java:50)
    =========================================================="
    the script is below
    "++++++++++++++++++++++++++++++++++++++++++++++++++++
    readTemplate('/opt/was/bea/weblogic81/common/templates/domains/wls.jar')
    cd('Server/myserver')
    set('ListenAddress','')
    set('ListenPort',7001)
    cd('/Security/mydomain')
    cd('User/weblogic')
    cmo.setPassword('weblogic')
    setOption('OverwriteDomain','true')
    writeDomain('/opt/was/ravi/user_projects/mydomain')
    dumpStack()
    dumpVariables()
    closeTemplate()
    exit()
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

  • Creation of Customisation file from WLST Script in OSB

    Hi,
    Please help in creating Customisation file in OSB from WLST Scripts

    Hi,
    Please refer -
    Create Customization File in OSB 10g with WLST script
    http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/deploy/config_appx.html
    http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/javadoc/com/bea/wli/config/customization/Customization.html
    Regards,
    Anuj

  • Weblogic 10.3.2/3 AdminServer startup failure using WLST

    Hi,
    I'm migrating our Weblogic environments onto a Linux platform(Centos 5.5). I'm running 64bit Java and I've installed Weblogic using the Generic Jar. However I expierence an error when attempting to Start the AdminServer using a WLST script. If I then execute ./startWeblogic.sh the server starts without any problems.
    I create the domain fine, I then start the AdminServer within WLST to make some configuration changes username/password etc. Starting the AdminServer generates an error error see below.
    This happens on both versions of Weblogic 10.3.2 & 10.3.3. I've just tried starting the server directly via WLST and I get the same issue.
    Starting weblogic server ...
    WLST-WLS-1289993140407: <Nov 17, 2010 11:25:41 AM GMT> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) 64-Bit Server VM Version 17.1-b03 from Sun Microsystems Inc.>
    WLST-WLS-1289993140407: <Nov 17, 2010 11:25:41 AM GMT> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.2.0 Tue Oct 20 12:16:15 PDT 2009 1267925 >
    WLST-WLS-1289993140407: <Nov 17, 2010 11:25:42 AM GMT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    WLST-WLS-1289993140407: <Nov 17, 2010 11:25:42 AM GMT> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
    WLST-WLS-1289993140407: <Nov 17, 2010 11:25:42 AM GMT> <Notice> <Log Management> <BEA-170019> <The server log file /strata/clients/inc39/Stream5/CDL/Logs/AdminServer_%yyyy%%MM%%dd%.log is opened. All server side log events will be written to this file.>
    .WLST-WLS-1289993140407: <Nov 17, 2010 11:25:44 AM GMT> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
    .WLST-WLS-1289993140407: <Nov 17, 2010 11:25:47 AM GMT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
    WLST-WLS-1289993140407: <Nov 17, 2010 11:25:47 AM GMT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    .WLST-WLS-1289993140407: <Nov 17, 2010 11:25:49 AM GMT> <Notice> <StdErr> <BEA-000000> <Nov 17, 2010 11:25:49 AM com.sun.faces.config.ConfigureListener contextInitialized
    WLST-WLS-1289993140407: INFO: Initializing Sun's JavaServer Faces implementation (1.2_03-b04-FCS) for context '/console'>
    WLST-WLS-1289993140407: <Nov 17, 2010 11:25:49 AM GMT> <Notice> <StdErr> <BEA-000000> <Nov 17, 2010 11:25:49 AM com.sun.faces.config.ConfigureListener contextInitialized
    WLST-WLS-1289993140407: INFO: Completed initializing Sun's JavaServer Faces implementation (1.2_03-b04-FCS) for context '/console'>
    ...WLST-WLS-1289993140407: Stopped draining WLST-WLS-1289993140407
    WLST-WLS-1289993140407: Stopped draining WLST-WLS-1289993140407
    java -version
    java version "1.6.0_22"
    Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
    Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)

    How is your script constructed?
    The following shows an example of a startscript:
    beahome = '<middleware-home>';
    linux = true;
    adminusername = 'username';
    adminpassword = 'password';
    domainname = 'DomainName';
    pathseparator = '/';
    if not linux:
         pathseparator = '\\';
    domainlocation = beahome + pathseparator + 'user_projects' + pathseparator + 'domains' + pathseparator + domainname;
    nodemanagerhomelocation = beahome + pathseparator + 'wlserver_10.3' + pathseparator + 'common' + pathseparator + 'nodemanager';
    print 'START NODE MANAGER';
    startNodeManager(verbose='true', NodeManagerHome=nodemanagerhomelocation, ListenPort='5556', ListenAddress='localhost');
    print 'CONNECT TO NODE MANAGER';
    nmConnect(adminusername, adminpassword, 'localhost', '5556', domainname, domainlocation, 'ssl');
    print 'START ADMIN SERVER';
    nmStart('AdminServer');
    nmServerStatus('AdminServer');
    print 'CONNECT TO ADMIN SERVER';
    connect(adminusername, adminpassword);

  • WLST Exception while Creating JMS Resources

    Hi,
    I am using Weblogic version 10 MP!, Below is the WLST online script, You willl see a lot of variables in the script, the value which i am calling from another file, This is beacuse everytime instead of modifying the script i will modify the template. There is a lot of p.MS1, p.MS2, the information is called from a different file.
    Please provide some kind of suggestion to fix this issue.
    Thanks in Advance..
    ********************************************************************************************SCRIPT********************************************************************************
    from weblogic.descriptor import BeanAlreadyExistsException
    from java.lang.reflect import UndeclaredThrowableException
    from java.lang import System
    import javax
    from java.util import *
    from javax.management import *
    import javax.management.Attribute
    from javax import management
    from javax.management import MBeanException
    from javax.management import RuntimeMBeanException
    import javax.management.MBeanException
    from java.lang import UnsupportedOperationException
    import Domain_info as p
    import Cluster_info as q
    domName = p.Domain_Name
    adminServerName = p.Admin_Name
    adminServerListenPort = p.AdminPort
    adminServerListenAddress = p.AdminListen
    userName = p.username
    passWord = p.password
    domainDir = p.domainDir
    URL = "t3://143.192.44.41:7301"
    ManagedServer1 = q.MS1
    ManagedServer2 = q.MS2
    ManagedServer3 = q.MS3
    ManagedServer4 = q.MS4
    JMSServer1 = q.JMS1
    JMSServer2 = q.JMS2
    JMSServer3 = q.JMS3
    JMSServer4 = q.JMS4
    Queue1 = q.Q1
    Queue2 = q.Q2
    Queue3 = q.Q3
    Queue4 = q.Q4
    Queue5 = q.Q5
    JMS_resource = q.JMS_resource
    connect(userName, passWord, URL)
    clustHM = HashMap()
    edit()
    startEdit()
    cd('/')
    print JMS_resource
    print JmsSystemResource
    #create(JMS_resource,'JMSSystemResource')
    cd('JMSSystemResource/'+JMS_resource+'JmsResource/')
    #cd('/')
    #create(Queue1,'Queue')
    #setJNDIName('jms/'+Queue1)
    #setSubDeploymentName(JMSServer1,JMSServer2)
    #cd('/')
    #cd('JMSSystemResource/'+JMS_resource)
    #create(JMSServer1,JMSServer2, 'SubDeployment')
    save()
    activate(block="true")
    disconnect()
    print 'End of script ...'
    exit()
    ****************************************************END OF SCRIPT ***********************************************************************************************************
    Exception:
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    This Exception occurred at Sat Oct 18 18:13:50 GMT 2008.
    javax.management.AttributeNotFoundException: com.bea:Name=Sample_1,Type=Domain:JMSSystemResource
    at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:221)
    at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:224)
    at javax.management.remote.rmi.RMIConnectionImpl_1001_WLStub.getAttribute(Unknown Source)
    at weblogic.management.remote.common.RMIConnectionWrapper$11.run(ClientProviderBase.java:531)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.security.Security.runAs(Security.java:61)
    at weblogic.management.remote.common.RMIConnectionWrapper.getAttribute(ClientProviderBase.java:529)
    at javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.getAttribute(RMIConnector.java:857)
    at weblogic.management.scripting.BrowseHandler.regularPush(BrowseHandler.java:420)
    at weblogic.management.scripting.BrowseHandler.splitPush(BrowseHandler.java:145)
    at weblogic.management.scripting.BrowseHandler.cd(BrowseHandler.java:640)
    at weblogic.management.scripting.WLScriptContext.cd(WLScriptContext.java:195)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:160)
    at org.python.core.PyMethod.__call__(PyMethod.java:96)
    at org.python.core.PyObject.__call__(PyObject.java:270)
    at org.python.core.PyObject.invoke(PyObject.java:2041)
    at org.python.pycode._pyx19.cd$5(<iostream>:161)
    at org.python.pycode._pyx19.call_function(<iostream>)
    at org.python.core.PyTableCode.call(PyTableCode.java:208)
    at org.python.core.PyTableCode.call(PyTableCode.java:267)
    at org.python.core.PyFunction.__call__(PyFunction.java:172)
    at org.python.pycode._pyx18.f$0(/opt/SCRIPTS/Domain_Creation/Create_JMS.py:52)
    at org.python.pycode._pyx18.call_function(/opt/SCRIPTS/Domain_Creation/Create_JMS.py)
    at org.python.core.PyTableCode.call(PyTableCode.java:208)
    at org.python.core.PyCode.call(PyCode.java:14)
    at org.python.core.Py.runCode(Py.java:1135)
    at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:167)
    at weblogic.management.scripting.WLST.main(WLST.java:106)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at weblogic.WLST.main(WLST.java:29)
    Caused by: javax.management.AttributeNotFoundException: com.bea:Name=Sample_1,Type=Domain:JMSSystemResource
    at weblogic.management.jmx.modelmbean.WLSModelMBean.getPropertyDescriptorForAttribute(WLSModelMBean.java:1419)
    at weblogic.management.mbeanservers.internal.SecurityInterceptor.getPropertyDescriptor(SecurityInterceptor.java:842)
    at weblogic.management.mbeanservers.internal.SecurityInterceptor.checkGetSecurity(SecurityInterceptor.java:580)
    at weblogic.management.mbeanservers.internal.SecurityInterceptor.getAttribute(SecurityInterceptor.java:297)
    at weblogic.management.mbeanservers.internal.AuthenticatedSubjectInterceptor$5.run(AuthenticatedSubjectInterceptor.java:192)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.management.mbeanservers.internal.AuthenticatedSubjectInterceptor.getAttribute(AuthenticatedSubjectInterceptor.java:190)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServer.getAttribute(WLSMBeanServer.java:269)
    at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1385)
    at javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnectionImpl.java:81)
    at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1245)
    at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1348)
    at javax.management.remote.rmi.RMIConnectionImpl.getAttribute(RMIConnectionImpl.java:597)
    at javax.management.remote.rmi.RMIConnectionImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:479)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:475)
    at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:59)
    at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:1016)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    Problem invoking WLST - Traceback (innermost last):
    File "/opt/SCRIPTS/Domain_Creation/Create_JMS.py", line 52, in ?
    File "<iostream>", line 170, in cd
    WLSTException: 'Error cding to the MBean'

    Hi David,
    Thanks for replying...
    Here i am trying to create connection Factory
    i made some small changes to script and run ls() command...
    ****************************************************SCRIPT******************************************************************************
    from weblogic.descriptor import BeanAlreadyExistsException
    from java.lang.reflect import UndeclaredThrowableException
    from java.lang import System
    import javax
    from java.util import *
    from javax.management import *
    import javax.management.Attribute
    from javax import management
    from javax.management import MBeanException
    from javax.management import RuntimeMBeanException
    import javax.management.MBeanException
    from java.lang import UnsupportedOperationException
    import Domain_info as p
    import Cluster_info as q
    import sys
    from java.lang import System
    domName = p.Domain_Name
    adminServerName = p.Admin_Name
    adminServerListenPort = p.AdminPort
    adminServerListenAddress = p.AdminListen
    userName = p.username
    passWord = p.password
    domainDir = p.domainDir
    URL = "t3://143.192.44.41:7301"
    ManagedServer1 = q.MS1
    ManagedServer2 = q.MS2
    ManagedServer3 = q.MS3
    ManagedServer4 = q.MS4
    JMSServer1 = q.JMS1
    JMSServer2 = q.JMS2
    JMSServer3 = q.JMS3
    JMSServer4 = q.JMS4
    Queue1 = q.Q1
    Queue2 = q.Q2
    Queue3 = q.Q3
    Queue4 = q.Q4
    Queue5 = q.Q5
    JMS_resource = q.JMS_resource
    Connection_Factory1 = q.CF1
    connect(userName, passWord, URL)
    clustHM = HashMap()
    edit()
    startEdit()
    # Creating a JMS Connection
    ls()
    create(Connection_Factory1,"JMSConnectionFactory")
    ls()
    cd("JMSConnectionFactory/"+Connection_Factory1)
    print("Created the JMS Connection Factory ...."+Connection_Factory1)
    cmo.setJNDIName(jms/Connection_Factory1)
    #cd('/')
    #create(Queue1,'Queue')
    #setJNDIName('jms/'+Queue1)
    #setSubDeploymentName(JMSServer1,JMSServer2)
    #cd('/')
    #cd('JMSSystemResource/'+JMS_resource)
    #create(JMSServer1,JMSServer2, 'SubDeployment')
    save()
    activate(block="true")
    disconnect()
    print 'End of script ...'
    exit()
    ****************************************************************END********************************************************************************
    ls() OUTPUT
    dr-- AppDeployments
    dr-- BridgeDestinations
    dr-- Clusters
    dr-- CustomResources
    dr-- DeploymentConfiguration
    dr-- Deployments
    dr-- EmbeddedLDAP
    dr-- ErrorHandlings
    dr-- FileStores
    dr-- InternalAppDeployments
    dr-- InternalLibraries
    dr-- JDBCDataSourceFactories
    dr-- JDBCStores
    dr-- JDBCSystemResources
    dr-- JMSBridgeDestinations
    dr-- JMSInteropModules
    dr-- JMSServers
    dr-- JMSSystemResources
    dr-- JMX
    dr-- JTA
    dr-- JoltConnectionPools
    dr-- Libraries
    dr-- Log
    dr-- LogFilters
    dr-- Machines
    dr-- MailSessions
    dr-- MessagingBridges
    dr-- MigratableTargets
    dr-- RemoteSAFContexts
    dr-- SAFAgents
    dr-- SNMPAgent
    dr-- SNMPAgentDeployments
    dr-- Security
    dr-- SecurityConfiguration
    dr-- SelfTuning
    dr-- Servers
    dr-- ShutdownClasses
    dr-- SingletonServices
    dr-- StartupClasses
    dr-- SystemResources
    dr-- Targets
    dr-- VirtualHosts
    dr-- WLDFSystemResources
    dr-- WLECConnectionPools
    dr-- WSReliableDeliveryPolicies
    dr-- WTCServers
    dr-- WebAppContainer
    dr-- WebserviceSecurities
    dr-- XMLEntityCaches
    dr-- XMLRegistries
    -rw- AdminServerName Sample_AdminServer
    -rw- AdministrationMBeanAuditingEnabled false
    -rw- AdministrationPort 9002
    -rw- AdministrationPortEnabled false
    -rw- AdministrationProtocol t3s
    -rw- ArchiveConfigurationCount 0
    -rw- ClusterConstraintsEnabled false
    -rw- ConfigBackupEnabled false
    -rw- ConfigurationAuditType none
    -rw- ConfigurationVersion 10.0.1.0
    -rw- ConsoleContextPath console
    -rw- ConsoleEnabled true
    -rw- ConsoleExtensionDirectory console-ext
    -rw- DomainVersion 10.0.1.0
    -r-- LastModificationTime 0
    -rw- Name Sample_1
    -rw- Notes null
    -rw- Parent null
    -rw- ProductionModeEnabled false
    -r-- RootDirectory /opt/Dev/Sample_1
    -r-- Type Domain
    -r-x freezeCurrentValue Void : String(attributeName)
    -r-x isSet Boolean : String(propertyName)
    -r-x restoreDefaultValue Void : String(attributeName)
    -r-x unSet Void : String(propertyName)
    No stack trace available.
    Problem invoking WLST - Traceback (innermost last):
    File "/opt/SCRIPTS/Domain_Creation/Create_JMS.py", line 60, in ?
    File "<iostream>", line 511, in create
    WLSTException: 'Error occured while performing create : Cannot create MBean of type JMSConnectionFactory. You can only create MBeans children to the current cmo. \nTo view the children types that you can create, use listChildTypes().'

  • Problem with WLST in weblogic application server 10.3 on solaris 10 x86

    Hi Friends, I installed Sun Solaris 10 on my desktop x86. I am able to install oracle weblogic application server 10.3.
    I created one domain and I am trying to start AdminServer on that using WLST command.
    Before that , I started the admin server from command as normal start ( nohup ./startWebLogic.sh &) and the server started perfectly alright. After that I was trying to open admin console in firefox browser. It was opening perfectly alright.
    Now I stopped the server and checked no processes which are related to weblogic were running , and then initialized the WLST environment using the script "wlst.sh" , which is at (in my system) /usr/bea/wlserver_10.3/common/bin/wlst.sh. Now the environment had been set and the WLST offline prompt came up.
    Now I used the below WLST scirpt command
    startServer('AdminServer','mydomain','t3://localhost:7001','weblogic','weblogic1');
    and the server started perfectly alright, now what I did was , I started admin console at FireFox browser , it prompted me to enter user name and password , I gave them , and once the login is done, then in my shell window , I am seeing error as
    **wls:/offline> WLST-WLS-1263965848154: <Jan 19, 2010 11:39:24 PM CST> <Error> <HTTP> <BEA-101017> <[ServletContext@28481438[app:consoleapp module:console path:/console spec-version:2.5]] Root cause of ServletException.**
    **WLST-WLS-1263965848154: java.lang.OutOfMemoryError: PermGen space**
    **WLST-WLS-1263965848154: at java.lang.ClassLoader.defineClass1(Native Method)**
    **WLST-WLS-1263965848154: at java.lang.ClassLoader.defineClass(ClassLoader.java:616)**
    **WLST-WLS-1263965848154: at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)**
    **WLST-WLS-1263965848154: at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:344)**
    **WLST-WLS-1263965848154: at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:301)**
    **WLST-WLS-1263965848154: Truncated. see log file for complete stacktrace**
    **WLST-WLS-1263965848154: >**
    **WLST-WLS-1263965848154: <Jan 19, 2010 11:39:24 PM CST> <Error> <JMX> <BEA-149500> <An exception occurred while registering the MBean com.bea:Name=mydomain,Type=SNMPAgentRuntime.**
    **WLST-WLS-1263965848154: java.lang.OutOfMemoryError: PermGen space**
    **WLST-WLS-1263965848154: at java.lang.ClassLoader.defineClass1(Native Method)**
    **WLST-WLS-1263965848154: at java.lang.ClassLoader.defineClass(ClassLoader.java:616)**
    **WLST-WLS-1263965848154: at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)**
    **WLST-WLS-1263965848154: at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)**
    **WLST-WLS-1263965848154: at java.net.URLClassLoader.access$000(URLClassLoader.java:56)**
    **WLST-WLS-1263965848154: Truncated. see log file for complete stacktrace**
    **WLST-WLS-1263965848154: >**
    **WLST-WLS-1263965848154: Exception in thread "[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'" java.lang.OutOfMemoryError: PermGen space**
    So I thought I have less memory consuming for this weblogic admin server and opened up ,
    _/usr/bea/wlserver_10.3/common/bin/commEnv.sh_
    and changed the memory arguments as
    Sun)
    JAVA_VM=-server
    MEM_ARGS="-Xms1024m -Xmx1024m -XX:MaxPermSize=1024m" <---- previously these were 32m and 200m and MaxPermSize
    and also in /usr/bea/wlserver10.3/common/bin/bin/setDomainEnv.sh_
    and in this file also I changed the memory arguments as
    *if [ "${JAVA_VENDOR}" = "Sun" ] ; then*
    *WLS_MEM_ARGS_64BIT="-Xms256m -Xmx512m"*
    *export WLS_MEM_ARGS_64BIT*
    *WLS_MEM_ARGS_32BIT="-Xms1024m -Xmx1024m"*
    *export WLS_MEM_ARGS_32BIT*
    and restarted the server using the WLST command and again tried to open the admin console on a browser, same error is showing.
    (1) Environment : Sun Solaris x86
    (2) JDK : sun jdk 1.6._17
    Please help me what I am doing wrong here and please let me know the solution.
    I was trying to install jrockit 1.6 on this since my OS is sun solaris X86 , there is no compatible jrockit version is not there.
    Thanks a lot
    Peter

    Hi Peter,
    As you have mentioned in your Post that
    MEM_ARGS="-Xms1024m -Xmx1024m -XX:MaxPermSize=1024m" <---- previously these were 32m and 200m and MaxPermSize
    The Setting you have provided is wrong ...that is the reason you are gettingjava.lang.OutOfMemoryError: PermGen space. There is a RRation between PermSize and the maximum Heap Size...
    Just a Bit Explaination:
    Formula:
    (OS Level)Process Size = Java Heap (+) Native Space (+) (2-3% OS related Memory)
    PermSize : It's a Netive Memory Area Outside of the Heap, Where ClassLoading kind of things happens. In an operating System like Windows Default Process Size is 2GB (2048MB) default (It doesnt matter How much RAM do u have 2GB or 4GB or more)...until we dont change it by setting OS level parameter to increase the process size..Usually in OS like Solaris/Linux we get 4GB process size as well.
    Now Lets take the default Process Size=2GB (Windows), Now As you have set the -Xmx512M, we can assume that rest of the memory 1536 Mb is available for Native codes.
    (ProcessSize - HeapSize) = Native (+) (2-3% OS related Memory)
    2048 MB - 512 MB = 1536 MB
    THUMB RULES:
    <h3><font color=red>
    MaxPermSize = (MaxHeapSize/3) ----Very Special Cases
    MaxPermSize = (MaxHeapSize/4) ----Recommended
    </font></h3>
    In your Case -Xmx (Max Heap Size) and -XX:MaxPermSize both were same ....That is the reason you are getting unexpected results. These should be in proper ration.
    What should be the exact setting of these parameters depends on the Environment /Applications etc...
    But Just try -Xmx1024m -Xms1024m -XX:MaxPermSize256m
    Another recommendation for fine tuning always keep (Xmx MaxHeapSize & Xms InitialHeapSize same).
    Thanks
    Jay SenSharma
    http://jaysensharma.wordpress.com (WebLogic Wonders Are Here)
    Edited by: Jay SenSharma on Jan 20, 2010 5:33 PM

  • Built-in wlst ant task does not work in weblogic 10.3.1

    Hi,
    We have an installer script that deploys an ear file to a weblogic managed server. The script also invokes the build-tin wlst ant task to bounce the managed server. However, in version 10.3.1 the wlst task seems to be broken. I get this error:
    [echo] [wlst] sys-package-mgr: can't create package cache dir, '/u00/webadmin/product/10.3.1/WLS/wlserver_10.3/server/lib/weblogic.jar/./java
    tmp/wlstTemp/packages'
    [echo] [wlst] java.io.IOException: No such file or directory
    [echo] [wlst] at java.io.UnixFileSystem.createFileExclusively(Native Method)
    [echo] [wlst] at java.io.File.checkAndCreate(File.java:1704)
    [echo] [wlst] at java.io.File.createTempFile(File.java:1792)
    [echo] [wlst] at java.io.File.createTempFile(File.java:1828)
    [echo] [wlst] at com.bea.plateng.domain.script.jython.WLST_offline.getWLSTOfflineInitFilePath(WLST_offline.java:240)
    [echo] [wlst] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [echo] [wlst] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [echo] [wlst] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [echo] [wlst] at java.lang.reflect.Method.invoke(Method.java:597)
    [echo] [wlst] at weblogic.management.scripting.utils.WLSTUtil.getOfflineWLSTScriptPath(WLSTUtil.java:63)
    [echo] [wlst] at weblogic.management.scripting.utils.WLSTUtil.setupOffline(WLSTUtil.java:214)
    [echo] [wlst] at weblogic.management.scripting.utils.WLSTInterpreter.<init>(WLSTInterpreter.java:133)
    [echo] [wlst] at weblogic.management.scripting.utils.WLSTInterpreter.<init>(WLSTInterpreter.java:75)
    [echo] [wlst] at weblogic.ant.taskdefs.management.WLSTTask.execute(WLSTTask.java:103)
    [echo] [wlst] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    Obviously that is not a valid directory...so I am wondering what it is trying to do, and why. The wlst task worked perfectly in 10.3.0. No changes were made when attempting to run the script against 10.3.0 and 10.3.1, which tells me that something is different with the 10.3.1 setup. Here is the ant code I am running:
    <target name="init-taskdefs">
    <taskdef resource="net/sf/antcontrib/antcontrib.properties">
    <classpath>
    <pathelement location="ant-ext/ant-contrib.jar" />
    </classpath>
    </taskdef>
    <taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy" />
    <taskdef name="wlst" classname="weblogic.ant.taskdefs.management.WLSTTask" />
    </target>
    <macrodef name="wlShutdownServer">
    <attribute name="adminUser" default="${deploy.admin.username}" />
    <attribute name="adminPassword" default="${deploy.admin.password}" />
    <attribute name="adminUrl" default="${deploy.admin.url}" />
    <attribute name="serverTarget" />
    <sequential>
    <trycatch property="server.error">
    <try>
    <wlst failonerror="true"
    arguments="@{adminUser} @{adminPassword} @{adminUrl} @{serverTarget}">
    <script>
    adminUser=sys.argv[0]
    adminPassword=sys.argv[1]
    adminUrl=sys.argv[2]
    serverTarget=sys.argv[3]
    connect(adminUser,adminPassword,adminUrl)
    target=getMBean("/Servers/"+serverTarget)
    if target == None:
    target=getMBean("/Clusters/"+serverTarget)
    type="Cluster"
    else:
    type="Server"
    print 'Shutting down '+serverTarget+'...'
    shutdown(serverTarget,type,'true',15,force='true')
    print serverTarget+' was shut down successfully.'
    </script>
    </wlst>
    <!-- setDomainEnv.sh must have been called to set DOMAIN_HOME. Remove all leftover .lok files to allow server
    to start back up again. -->
    <echo message="Deleting any lok files that have not been removed..." />
    <delete failonerror="false">
    <fileset dir="${env.DOMAIN_HOME}/servers/@{serverTarget}" includes="**/*.lok"/>
    </delete>
    </try>
    <catch>
    <fail message="@{serverTarget} shutdown failed. ${server.error}" />
    </catch>
    <finally/>
    </trycatch>
    </sequential>
    </macrodef>
    Any help would be appreciated. Thanks!

    Well, it looks like passing something like "-Djava.io.tmpdir=/var/tmp/javatmp/`date +%Y%m%d`" to ant did the trick. I had to make sure that directory existed first, otherwise it threw a java ioexception.
    I still don't understand what changes between 10.3.0 and 10.3.1 to necessitate this change.

  • Follow-up on Ravi's User Exits example

    Hi,
    Ravi's user exit example:
    You have a content data source with fields say customer,sale org, profit center and amount. You wish to add sales manager to this extractor. You <b><u>locate</u></b> the table and <u><b>field name and append that field to the extractor</b></u> and write a code to pick that field when the extractor extracts data. This piece of code is called exit. What it does is the system reads the customer code.
    In the above example explaining customer exists, regarding the field, can you clarify “locate the field”. I read that if this field were available in the LIS communication structure that would be an enhancement to the structure where we only move the field from the left to the right (extract structure). In this case an append structure will be generated in the corresponding Include structure.
    In the case of the user exit, my understanding is that the field in question, in this example, Sales Manager, is not available in the LIS Communication structure so I was expecting that you would state “create the field” but you said “locate the field”. Did you mean that, and if so, locate from where? Because if it is being located from the LIS communication structure then I would not expect a user exit, at least from my understanding.
    Thanks.

    Hi Amanda,
    Yes, a field can be created when none of the SAP defined fields are solving the issue on hand. In this case too User exits are used. These fields are then appended to the tables.
    So all fields are in some table or the other. The field that you require has to be located in these tables and appended to the extractor. This again requires User Exits.
    For LO Cockpit extractors, if the field is already available in the extracstructure in LBWE then it can be moved from left to right and no extra coding is required.
    Hope this helps.
    Kumar

  • WLST command line utility "storeUserConfig()"  is not working for 12c OHS

    Hi All,
    I am facing issue with WLST command line utility with "*storeUserConfig()*" command.
    I have installed Standalone OHS 12c (Not managed OHS with WLS), configure and start the Node Manager.
    I start the WLST command line utility from : <MW_HOME>/ohs/common/bin/wlst.sh
    I connect node manager with : nmConnect('weblogic', 'welcome1', nmType='plain', domainName='base_domain')
    wls:/offline> nmConnect('weblogic', 'welcome1', nmType='plain', domainName='base_domain')
    Connecting to Node Manager ...
    Successfully Connected to Node Manager.
    wls:/nm/base_domain> nmStart(serverName='ohs10', serverType='OHS')
    Starting server ohs10 ...
    Successfully started server ohs10 ...
    Now When I am running storeUserConfig(), it's giving me below error :
    wls:/nm/base_domain> storeUserConfig()
    Traceback (innermost last):
    File "<console>", line 1, in ?
    NameError: storeUserConfig
    I also try with storeUserConfig('/scratch/12cORC/security/myuserconfigfile.secure', '/scratch/12cORC/security/myuserkeyfile.secure') which also give same error.
    I am not able to recognize this error. What should I need to do to create the User config file ?
    Please suggest me the solution.
    I am referring this doc : http://docs.oracle.com/cd/E15586_01/web.1111/e13813/reference.htm#
    Thanks,
    Amit Nagar

    It's probably a little late for the original poster, but in case anybody else stumbles on this thread (like me today), I found a workable solution to this problem:
    For a Standalone HTTP Server there exists in $domain_home/bin a command startComponent.sh or (on Windows) startComponent.cmd. This accepts as parameter the ComponentName which will typically be ohs1 and as second parameter storeUserConfig. Documentation on this can be found here:
    http://docs.oracle.com/middleware/1212/webtier/HSADM/getstart.htm#CHDJGIII (scroll down to
    4.3.2.3 Starting Oracle HTTP Server Instances from the Command Line).
    startComponent.sh ohs1 storeUserConfig
    Unfortunately this doesn't tell you where you'll find the config and key-File. However, on a second invocation I found that - at least on windows where I tested this - they get written into c:\users\<username>\.wlst so I'd expect them in the home directory on unix. After copying the files to a more common location, I was able to reference them the usual way (formatted for better readability):
    wls:/offline> nmConnect(userConfigFile='C:/app/Middleware/Oracle_Home/user_projects/domains/base_domain/nodemanager/security/nm-cfg-base_domain.props',
    userKeyFile='C:/app/Middleware/Oracle_Home/user_projects/domains/base_domain/nodemanager/security/nm-key-base_domain.props',
    host='localhost',
    port='5556',
    domainName='base_domain')
    Connecting to Node Manager ...
    Successfully Connected to Node Manager.
    Best Regards
    Holger

  • How do you use WLST to get a deployed Apps name?

    I am writing an application update script to make updating our environments quicker/easier with the following code from an ant build file:
    <wlst debug="true" failOnError="true">
    <script>
    connect('login','pwd','t3://...')
    updateApplication('${app.name}',block='true')
    </script>
    </wlst>
    However, b/c our application has a version in the manifest file, our application name looks like this:
    AppName-BuildNumber-TimeOfBuild
    Since the TimeOfBuild is always different from build to build it is impossible to hard code this value. Is there a way to get the application's name using WLST?
    connect(...)
    cd('AppDeployments')
    This shows me all applications deployed on the server, but inorder to go any farther I need the name of a specific app. I'm sure I am just overlooking an mbean somewhere, but I can't seem to find it! Any ideas??
    Thanks.
    Message was edited by:
    bftanner

    Ok, so I figured out how to get an applications name but I can't get the following script to work from an ant build file:
    <wlst debug="true" failonerror="false">
    <script>
    connect('system','weblogic','t3://...')
    apps=cmo.getAppDeployments()
    for app in apps:
    if app.getName().startswith("4X"):
    stopApplication(app,block='true')
    undeploy(app.getName(),targets='MS1,MS2',block='true')
    deploy('4X','//box/domains/applications/4X.ear',targets='MS1,MS2',stageMode='stage',block='true')
    apps=cmo.getAppDeployments()
    for app in apps:
    if app.getName().startswith("4X"):
         startApplication(app.getName(),block='true')
    </script>
    </wlst>
    When this is run I get the following error:
    BUILD FAILED
    C:\docume~1\dtanner\desktop\RELupdate.xml:134: Error executing the script snippe
    t
    connect('system','weblogic','t3://192.168.0.250:
    7001')
    apps=cmo.getAppDeployments()
    for app in apps:
    if app.getName().startswith("reporting-r
    eport"):
    stopApplication(app,block='true'
    undeploy(app,targets='MS1,MS2',b
    lock='true')
    deploy('reporting-report-server','//bfediapp3/do
    mains/applications/reporting-report-server.war',targets='MS1,MS2',stageMode='sta
    ge',block='true')
    apps=cmo.getAppDeployments()
    for app in apps:
    if app.getName().startswith("reporting-r
    eport"):
    startApplication(app,block='true
    due to:
    Traceback (innermost last):
    (no code object) at line 0
    SyntaxError: ('invalid syntax', ('<string>', 2, 33, '\t\t\t\tapps=cmo.getAppDepl
    oyments()'))
    Any Ideas??? Also, how can you keep the format i.e. tabs and spaces at the front of a line in these forums???
    Thanks.

  • Is there a way to create Event Generators in WLST?

    In the PO sample there is code to create JMS Event Generators using Jython. Is there a WLST equivalent?
    I tried using the JMSEventGeneratorsMBean (from com.wli.management.configuration) but got errors about the number of arguments.

    Hello Karel,
    The PO Sample does indeed use WLST, but as a Module in jython.
    thanks,
    -satya
    Karel Sprenger wrote:
    In the PO sample there is code to create JMS Event Generators using Jython. Is there a WLST equivalent?
    I tried using the JMSEventGeneratorsMBean (from com.wli.management.configuration) but got errors about the number of arguments.

  • Where on earth can I get the latest WLST since dev2dev moved for weblogic 8

    This is driving me crazy.
    I did manage to download a version of WLST as part of wli_util.jar.
    However, when I try to view my custom mbeans I get a null pointer. On another forum I found someone ask the question whats causing it and the answer was its fixed in the subsequent WLST release. But I cant find the download page for this utility anywhere. Anything I find on the web points to the old dev2dev site.
    All I want to do is view my custom mbeans. Have been spending far too much time on a task which should only take half a day. I have a solution in JBoss but we deploy to weblogic in the live environment.
    There is plenty of help/howto pages for WLST, but no place have I seen a link to a download page for this.
    I understand its packaged with Weblogic 9, but that 8.1 didnt have it and Im stuck with 8.1 running on a 1.4 JVM.
    Lastely, I did try to create this in the weblogic.interest.management forum, but clicking on the new Topic button produced an error message saying I dont have permissions to "read" this topic, which to me makes no sense since I was just viewing/searching in there for the answer.
    Couldsome nice person post the link?
    Regards
    Tim

    If you have the old uri - you can access it from the WayBackMachine on archive.org.
    you might want to open a case with customer support about missing content from dev2dev.
    If you're brave enough to post your email address, you might get someone to email it to you.
    You could also download/install/extract it from WLS 9.
    Or ask customer support to send it to you.

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

    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

    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

  • WLST, how do I suppress unwanted stack traces and make WLST less verbose?

    Hi everyone,
    I've just started out with WLST but have ended up somewhat confused. My script works as intended but is very verbose.
    Suppose I want to log in:
    try:
         connect(user, "wrong_password", url)
    except WLSTException, err:
         print str(err)
         print "Run with option \"-h\" for help"The password is wrong so I get something like this printed out by me:
    {noformat}
    Error occured while performing connect : User: wm714, failed to be authenticated. Use dumpStack() to view the full stacktrace
    {noformat}
    But I also get a totally unwanted Java stack trace (before my message):
    {noformat}This Exception occurred at Fri May 21 15:49:01 CEST 2010.
    javax.naming.AuthenticationException [Root exception is java.lang.SecurityException: User: wm714, failed to be authenticated.]
    at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:42)
    at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:783)
    at weblogic.jndi.WLInitialContextFactoryDelegate.pushSubject(WLInitialContextFactoryDelegate.java:677)
    {noformat}
    I don't want to confuse the user with all that! I found this:
    http://objectmix.com/weblogic/529822-wlst-exception-handling-unwanted-stack-trace.html
    Which discusses WLS.commandExceptionHandler.setSilent(1) I'm running on WLS 10.3.0.0 and can execute that statement but it has no effect. I didn't even know about the WLS-object and I can find no documentation on commandExceptionHandler.
    On the matter of verbosity, is there any way to get rid of stuff like:
    Location changed to domainRuntime tree. This is a read-only tree with DomainMBean as the root.
    For more help, use help(domainRuntime)I avoid using the "interactive" commands like cd and use stuff like getMBean("domainRuntime:/ServerRuntimes/" + appServer.getName()
    + "/JMSRuntime/" + appServer.getName() + ".jms/JMSServers") but I still get the clutter printed out.
    Thanks!

    Workaround:
    wlstOut = tempfile.mktemp(suffix="_wlst.txt")
    redirect(wlstOut, "false")
    ... do useful stuff
    stopRedirect()
    os.remove(wlstOut)I would have preffered to turn off the messages (yes I could try /dev/null) but this will do. A funny thing is that the stack trace I wrote about doesn't appear in the log file. Somehow "redirect" must have a nice side effect.
    /Roger

Maybe you are looking for

  • Why can't I format text in Mountain Lion's Mail.app?

    Since upgrading to Mountain Lion, Mail.app stubbornly refuses to allow me to bold or italicize my fonts.  I can underline, but I can't do any other text formatting options. Very puzzling.  Can anyone shed any light on this problem, or if they've had

  • How to see the multi bit rate streaming on the player

    Hi. I am using flash media server 4.5 . I am able to stream rtmp as well as http streaming. Now i want so stream multibitrate streaming. i am able to send the stream to the server, but i don't know how to acess it on the player. I want to know that i

  • Trading partner ID in line 000 is required for internal transaction

    Hello Team, Greetings..! I would need your suggestion on following error "Trading partner ID in line 000 is required for internal transaction" Accounting did not dropped for a credit memo, when i told user to release the invoice to accounting we got

  • Transfer Music from old ipod til new iphone

    Hi' I bought a iPhone 4, but how do I get my music from my old ipod to the new iphone. BTW. The old ipod is on one computer and my new iphone 4 is on another computer. Anyone that can help?

  • Problem in B1DE Installation

    I have installed B1DE and got the message "Sucessfully Installed" But when i Open VS.net 2003 , B1-Addon Template is not available when i select the New project(Vb.net/ C#). But in Help file says as given below. 1. Open the Microsoft Visual Studio .N