Using WLST to clone basic Portal domain

As a way to validate the use of WLST for our environment, I am trying to use configToScript and execfile to duplicate a basic Portal domain created using the Configuration Wizard (with no subsequent modifications). The configToScript command seems to execute with no problems but when I try to re-create the domain using exec file, I am getting the exception shown below. This happens for each Connection Pool in the configuration.
Any suggestions would be appreciated...
Environment:
OS - WinXP SP2
Java - 1.5.0_07
WLST - wlst64 (downloaded from dev2dev on 6/23)
WLP - 8.1.4
<pre>
JDBCConnectionPool with name 'cgPool' has been created successfully.
<Jun 27, 2006 3:51:31 PM EDT> <Error> <Management> <BEA-140001> <An error occurred while getting attribute Password on MBean wk7804_portalDomain:Location=portalServer,Name=cgPool,Type=JDBCConnectionPoolConfig. Method: null. Exception: com.rsa.jsafe.JSAFE_PaddingException: Could not perform unpadding: invalid pad byte..
com.rsa.jsafe.JSAFE_PaddingException: Could not perform unpadding: invalid pad byte.
at com.rsa.jsafe.JA_PKCS5Padding.performUnpadding([BIILjava.lang.Object;)I(Unknown Source)
at com.rsa.jsafe.JG_BlockCipher.decryptFinal([BI)I(Unknown Source)
at weblogic.security.internal.encryption.JSafeEncryptionServiceImpl.decryptBytes([B)[B(JSafeEncryptionServiceImpl.java:67)
at weblogic.security.internal.encryption.JSafeEncryptionServiceImpl.decryptString([B)Ljava.lang.String;(JSafeEncryptionServiceImpl.java:93)
at weblogic.security.internal.encryption.ClearOrEncryptedService.decrypt(Ljava.lang.String;)Ljava.lang.String;(ClearOrEncryptedService.java:56)
at weblogic.management.EncryptionHelper.decryptString([B)Ljava.lang.String;(EncryptionHelper.java:45)
at weblogic.management.internal.DynamicMBeanImpl.getAttribute(Ljava.lang.String;)Ljava.lang.Object;(DynamicMBeanImpl.java:624)
at weblogic.management.internal.ConfigurationMBeanImpl.getAttribute(Ljava.lang.String;)Ljava.lang.Object;(ConfigurationMBeanImpl.java:179)
at com.sun.management.jmx.MBeanServerImpl.getAttribute(Ljava.lang.Object;Ljava.lang.String;)Ljava.lang.Object;(MBeanServerImpl.java:1186)
at com.sun.management.jmx.MBeanServerImpl.getAttribute(Ljavax.management.ObjectName;Ljava.lang.String;)Ljava.lang.Object;(MBeanServerImpl.java:1156)
at weblogic.management.internal.RemoteMBeanServerImpl.getAttribute(Ljavax.management.ObjectName;Ljava.lang.String;)Ljava.lang.Object;(RemoteMBeanServerImpl.java:288)
at weblogic.management.internal.MBeanProxy.getAttribute(Ljava.lang.String;)Ljava.lang.Object;(MBeanProxy.java:610)
at weblogic.management.internal.MBeanProxy.invokeForCachingStub(Ljava.lang.String;[Ljava.lang.Object;)Ljava.lang.Object;(MBeanProxy.java:442)
at weblogic.management.configuration.JDBCConnectionPoolMBean_Stub.getPassword()Ljava.lang.String;(JDBCConnectionPoolMBean_Stub.java:1449)
at weblogic.jdbc.common.internal.ConnectionPool.getDriverProperties()Ljava.util.Properties;(ConnectionPool.java:1479)
at weblogic.jdbc.common.internal.ConnectionPool.access$500(Lweblogic.jdbc.common.internal.ConnectionPool;)Ljava.util.Properties;(ConnectionPool.java:66)
at weblogic.jdbc.common.internal.ConnectionPool$3.run()Ljava.lang.Object;(ConnectionPool.java:1084)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.security.subject.AbstractSubject;Ljava.security.PrivilegedExceptionAction;)Ljava.lang.Object;(AuthenticatedSubject.java:363)>>>     at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedExceptionAction;)Ljava.lang.Object;(SecurityManager.java:147)>>>     at weblogic.jdbc.common.internal.ConnectionPool.initJDBCParameters()V(ConnectionPool.java:1080)>>>     at weblogic.jdbc.common.internal.ConnectionPool.access$300(Lweblogic.jdbc.common.internal.ConnectionPool;)V(ConnectionPool.java:66)>>>     at weblogic.jdbc.common.internal.ConnectionPool$1.run()Ljava.lang.Object;(ConnectionPool.java:1007)>>>     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.security.subject.AbstractSubject;Ljava.security.PrivilegedExceptionAction;)Ljava.lang.Object;(AuthenticatedSubject.java:363)>>>     at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedExceptionAction;)Ljava.lang.Object;(SecurityManager.java:147)>>>     at weblogic.jdbc.common.internal.ConnectionPool.doStart(Z)V(ConnectionPool.java:1004)>>>     at weblogic.jdbc.common.internal.ConnectionPool.start(Ljava.lang.Object;)V(ConnectionPool.java:142)>>>     at weblogic.jdbc.common.internal.ConnectionPoolManager.createAndStartPool(Lweblogic.management.configuration.DeploymentMBean;)V(ConnectionPoolManager.java:306)>>>     at weblogic.jdbc.common.internal.JDBCService.addDeployment(Lweblogic.management.configuration.DeploymentMBean;)V(JDBCService.java:180)>>>     at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Lweblogic.management.configuration.DeploymentMBean;)Z(DeploymentTarget.java:337)>>>     at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Lweblogic.management.WebLogicObjectName;)Z(DeploymentTarget.java:202)>>>     at jrockit.reflect.NativeMethodInvoker.invoke0(Ljava.lang.Object;ILjava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)>>>     at jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)>>>   >>>>   <Jun 27, 2006 3:51:31 PM EDT> <Error> <JDBC> <BEA-001150> <Connection Pool "cgPool" deployment failed with the following error: com.rsa.jsafe.JSAFE_PaddingException: Couldnot perform unpadding: invalid pad byte..>...</pre>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Hi,
MailSession is a service. If you using WLST offline you have to use the <i>assign</i> command.
Check here http://e-docs.bea.com/wls/docs91/config_scripting/reference.html#1086620
Hope this helps
Ash.

Similar Messages

  • Removing Commerce Functionality from Basic Portal Config

    Is there any documentation as to how to go about removing the commerce, ad and campaign functionality from the Basic Portal Domain Configuration? Or is there an easy way to create a Portal Domain Configuration which does add this in in the first place?

    Yeah, thats easy enough. There are still a bunch of residual tables in the DB and stuff like that though. It seems that there ought to be some sort of documentation as to how to strip that stuff out.

  • 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

  • Need WLST for Weblogic portal domain 9.2.2.

    Hi,
    I am very much in-need of it. Can you please provide me the Need WLST for Weblogic portal domain 9.2.2.
    Actually, we are using weblogic 9.2.2 version.
    Actually, I created a portal domain configiuration using configuration wizard and the same I documented with screen shots.
    Now I need the wlst for the same configuration which i created the doc for.
    Please can you help me out doing this.
    If you are ok, then I will share you my doc, so that you can help me out easily.
    Please please please................
    Thanks in Advance..

    You have a few options to build a WLST script from the admin/config operations that you have performed in your development environment using console.
    OPTION 1: (WLST Recording)
    Check the below video. (The only drawback is that this video talks about the WLST recording feature which is available only on WLS10.0. Ofcourse, if you have a 10.0 installation you can still use this feature and then make some small modifications to the generated script to make it suitable for 9.2)
    http://www.youtube.com/watch?v=luhBaviP2uM
    OPTION 2: (Converting the configuration to a script)
    After you have configured your entire domain using the console, you run the configToScript command as per the below documentation (To run this you need to invoke WLST and then run the command with appropriate arguments such as path to the config.xml file etc)
    http://docs.oracle.com/cd/E13222_01/wls/docs92/config_scripting/reference.html#wp1154848
    Then you can use the generated script to create similar domains in your Test AND Production environments.
    Arun

  • Silent Script to create Basic Weblogic Portal Domain

    Has any one made a Basic Weblogic Portal Domain??
    I am trying to use the template wlp.jar but i get an error
    when i am writing the domain.
    << write Domain to "U:\test\weblogic\wlpDomain"
    fail: write Domain to "U:\test\weblogic\wlpDomain"If i use the wls.jar to create a Basic Weblogic Server Domain
    it works fine.
    Does any one have a sample that works which i can use??
    Many Thanks
    Murat

    Has any one made a Basic Weblogic Portal Domain??
    I am trying to use the template wlp.jar but i get an error
    when i am writing the domain.
    << write Domain to "U:\test\weblogic\wlpDomain"
    fail: write Domain to "U:\test\weblogic\wlpDomain"If i use the wls.jar to create a Basic Weblogic Server Domain
    it works fine.
    Does any one have a sample that works which i can use??
    Many Thanks
    Murat

  • Create a Generic Data Source and deploy a webservice on a domain using WLST

    Hello for everyone,
    I usually create generic data sources and deploy webservices on a wls domain by using the Administrator Console. I wonder if you can pass me a script sample to do this task by using WSLT. On the other hand, if you can pass me a "quick start" guide about WLST, this would be very helpful.
    Additionally, may I be able to create groups, application roles and users to a domain by using WLST?
    Thanks for your help.

    You can use standard infoobjects as well..
    You can create a view on those R/3 tables and use this view for creating a generic datsource in RSO2 transaction..
    Check the below pdf for delta in generic datasources
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33

  • Domain creation using WLST offline mode

    Hi,
    We are migrating from WL8.1SP5 to WL10MP2. After reading through the various options (WLST online, WLST offline, WLST.configToScript(), and Configuration Wizard) , I have concluded that we will use WLST in offline mode to create domains in our prod, qa, and dev environments. In 8.1 I had a silent script that would create domains for me repeatedly in any environment very easily. I want to map this script into the corresponding SOME_NAME.py script to be used for WL10MP2 domain.
    I have the BEA provided basicWLSDomain.py (please see below) script. I have difficulty in understanding more than half of that script! I know the basic concept is to traverse the MBean tree and creat and/or set parameters. But I do not know which MBean I will need to modify/create.
    Example 1:
    readTemplate("C:/bea/wlserver_10.0/common/templates/domains/wls.jar")
    cd('Servers/AdminServer')
    Q1] I went through http://e-docs.bea.com/wls/docs90/wlsmbeanref/core/index.html but could not find either ServersMBean or AdminServerMBean.
    Example 2:
    cd('/')
    create('myJMSServer', 'JMSServer')
    cd('/')
    create('myJmsSystemResource', 'JMSSystemResource')
    cd('JMSSystemResource/myJmsSystemResource/JmsResource/NO_NAME_0')
    Q2] What is a JMSSystemResource? (If I remember correctly, there is no such thing in WL8.1)
    Q3] What is JmsResource?
    Example 3:
    cd('/')
    create('myDataSource', 'JDBCSystemResource')
    cd('JDBCSystemResource/myDataSource/JdbcResource/myDataSource')
    create('myJdbcDriverParams','JDBCDriverParams')
    cd('JDBCDriverParams/NO_NAME_0')
    set('DriverName','com.pointbase.jdbc.jdbcUniversalDriver')
    set('URL','jdbc:pointbase:server://localhost/demo')
    set('PasswordEncrypted', 'PBPUBLIC')
    set('UseXADataSourceInterface', 'false')
    create('myProps','Properties')
    cd('Properties/NO_NAME_0')
    create('user', 'Property')
    cd('Property/user')
    cmo.setValue('PBPUBLIC')
    cd('/JDBCSystemResource/myDataSource/JdbcResource/myDataSource')
    create('myJdbcDataSourceParams','JDBCDataSourceParams')
    cd('JDBCDataSourceParams/NO_NAME_0')
    set('JNDIName', java.lang.String("myDataSource_jndi"))
    cd('/JDBCSystemResource/myDataSource/JdbcResource/myDataSource')
    create('myJdbcConnectionPoolParams','JDBCConnectionPoolParams')
    cd('JDBCConnectionPoolParams/NO_NAME_0')
    set('TestTableName','SYSTABLES')
    Q4] Can you please explain the above snippet line by line?
    Q5] Why are certain attributes set like this --- set('TestTableName','SYSTABLES') while certain attributes like below are set like this -- myq.setJNDIName('jms/myqueue')?
    Example 4:
    myq=create('myQueue','Queue')
    myq.setJNDIName('jms/myqueue')
    myq.setSubDeploymentName('myQueueSubDeployment')
    cd('/')
    cd('JMSSystemResource/myJmsSystemResource')
    create('myQueueSubDeployment', 'SubDeployment')
    Q6] What us a SubDeployment?
    I apologize for the long question. I would greatly appreciate any help!
    Thanks!
    Edited by: user10045656 on Oct 29, 2008 11:03 AM
    Edited by: user10045656 on Oct 29, 2008 11:06 AM

    1 - What is the best way to create a schema, for reporting application, during automated domain build process as we need to create new domains from the script and also be able to start and deploy applications on it. which will also require to have db schema for reporting application.
    My suggestion would be to execute the scripts under /neelapu/bea/post31/RC4-samples/osb_10.3/dbscripts/oracle/*.sql with your automated process. OSB requires two simple tables WLI_QS_REPORT_DATA and WLI_QS_REPORT_ATTRIBUTE.
    If reporting is not required then we can modify (I guess) in wlst offline mode to delete the below applications from domain.
    <app-deployment>
    <name>JMS Reporting Provider</name>
    <target>osb_server1</target>
    <module-type>ear</module-type>
    <source-path>/neelapu/bea/xyz/load4/Oracle_OSB1/lib/common/jmsreportprovider.ear</source-path>
    <deployment-order>125</deployment-order>
    <security-dd-model>DDOnly</security-dd-model>
    </app-deployment>
    <app-deployment>
    <name>Message Reporting Purger</name>
    <target>osb_server1</target>
    <module-type>ear</module-type>
    <source-path>/neelapu/bea/xyx/load4/Oracle_OSB1/lib/common/msgpurger.ear</source-path>
    <deployment-order>126</deployment-order>
    <security-dd-model>DDOnly</security-dd-model>
    </app-deployment>
    Thanks
    Manoj

  • Use single sign on for multiple portal domains

    Is it possible for a user to sign on once to a domain, and then be able to access other domains. What I'm trying to do is have one user registration page/login page, but use different portal server domains to present different sites, while at the same time having a type of single sign on, once a user has entered his credentials. Thus my registration process will create a new ldap user in an external directory, and i can then just point all the different domains to that External Ldap directory.

    I wouldn't recommend this because it would affect performance plus there are potential other issues like conflict that you would run into ..
    Everytime a user logs into a new session is created for him and this means a user might have multiple sessions on the server. The cookie that is also set is dependent on per portal domain so it might not work ..
    An alternative approach might be to have multiple roles and then customize the role for different views. You can modify the membership code in such a way that based on certain criteria you can assign him to a particular role, equivalent to your domain. However the problem could be if you want to provide delegated admin, currently the delegated admin is only at a domain level.

  • How do we create a jdbc onnection pool using WLST in an existing domain

    I am using WLST for creating weblogic 8.1 sp4 domain. The scripts I have create connection pools at the creation of domain. These scripts are used by other developers to create their local domains. I would like to avoid the creation of domain from scratch just to add a new connection pool
    I am looking for way to create connection pool in the existing domain. Is there a way to do this?

    You need to use WLST online. I am not sure what your exact requirements are but one good way of working this is to have a WLST script that deletes all your WL customisations, like connection pools, JMS Servers etc and then creates it. That way you can run the same script repeatedly and it will get everything up to date for you. However you have to remember that everytime you add something new you need to update your delete section. Also your deleting should not fail if the item does not exist. I hope that makes sense!
    As to the specifics of WLST examples to do this then check out the WLST examples in CodeShare.
    If you are still having issues then post another message.
    Geoff

  • Configuring weblogic domain for IAM using WLST

    Hi All,
    i have to configure a weblogic domain using wlst(off-line).i am able to do this by using wls.jar template but that domain does not contain all the deployable component which is required for IAM ,IDM.
    I don't know how to set the configuration component which is required for IAM,IDM as asked configuration wizard aske when we use GUI mode and how to give the schema details.
    please give any idea how to configure a domain(for IAM,IDM) using WLST exactly same as GUI mode .
    thanks

    I'm not sure what is your problem, but there is no compatibility issue between CSS and Bind normally.
    The docuement you referenced only says, in the background section, that the DNS server itself needs to be configured so part of your domain is handled by the CSS.
    So, your dns server handles all request for your.domain but there is one NS entry forwarding request for www.your.domain to the CSS so the CSS can answer the dns request.
    The css is not able to handle all types of dns request (ie: email server ip address request) so you can configure a 'dns forwarder' on the css to forward the request to another dns server.
    See the following for dns forwarder config example
    http://www.cisco.com/en/US/products/hw/contnetw/ps789/products_configuration_example09186a00801d3b52.shtml
    Regards,
    Gilles.
    Thanks for rating.

  • Starting admin server using WLST and NodeManager

    Hi I am trying to start admin server using WLST and NodeManager. I started nodemanager and WLST successfully. but when I am trying to nmConnect() command I am getting below errors. Please any one tell me where am I going wrong? I copied dumpStack() optput as well..
    thanks
    manohar
    C:\oracle\Middleware\wlserver_10.3\server\bin>
    C:\oracle\Middleware\wlserver_10.3\server\bin>java weblogic.WLST
    Initializing WebLogic Scripting Tool (WLST) ...
    Welcome to WebLogic Server Administration Scripting Shell
    Type help() for help on available commands
    wls:/offline> nmConnect('weblogic','weblogic','localhost','5556')
    Connecting to Node Manager ...
    <May 3, 2011 10:45:02 AM EDT> <Notice> <Security> <BEA-090898> <Ignoring the tru
    sted CA certificate "CN=T-TeleSec GlobalRoot Class 3,OU=T-Systems Trust Center,O
    =T-Systems Enterprise Services GmbH,C=DE". The loading of the trusted certificat
    e list raised a certificate parsing exception PKIX: Unsupported OID in the Algor
    ithmIdentifier object: 1.2.840.113549.1.1.11.>
    <May 3, 2011 10:45:02 AM EDT> <Notice> <Security> <BEA-090898> <Ignoring the tru
    sted CA certificate "CN=T-TeleSec GlobalRoot Class 2,OU=T-Systems Trust Center,O
    =T-Systems Enterprise Services GmbH,C=DE". The loading of the trusted certificat
    e list raised a certificate parsing exception PKIX: Unsupported OID in the Algor
    ithmIdentifier object: 1.2.840.113549.1.1.11.>
    <May 3, 2011 10:45:02 AM EDT> <Notice> <Security> <BEA-090898> <Ignoring the tru
    sted CA certificate "CN=GlobalSign,O=GlobalSign,OU=GlobalSign Root CA - R3". The
    loading of the trusted certificate list raised a certificate parsing exception
    PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <May 3, 2011 10:45:02 AM EDT> <Notice> <Security> <BEA-090898> <Ignoring the tru
    sted CA certificate "OU=Security Communication RootCA2,O=SECOM Trust Systems CO.
    \,LTD.,C=JP". The loading of the trusted certificate list raised a certificate p
    arsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.84
    0.113549.1.1.11.>
    <May 3, 2011 10:45:02 AM EDT> <Notice> <Security> <BEA-090898> <Ignoring the tru
    sted CA certificate "CN=KEYNECTIS ROOT CA,OU=ROOT,O=KEYNECTIS,C=FR". The loading
    of the trusted certificate list raised a certificate parsing exception PKIX: Un
    supported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    Traceback (innermost last):
    File "<console>", line 1, in ?
    File "<iostream>", line 123, in nmConnect
    File "<iostream>", line 646, in raiseWLSTException
    WLSTException: Error occured while performing nmConnect : Cannot connect to Node
    Manager. : I/O error while reading domain directory
    Use dumpStack() to view the full stacktrace
    wls:/offline>
    wls:/offline>
    wls:/offline>
    wls:/offline>
    wls:/offline>
    wls:/offline>
    wls:/offline> dumpStack()
    This Exception occurred at Tue May 03 10:45:03 EDT 2011.
    weblogic.nodemanager.NMException: I/O error while reading domain directory
    at weblogic.nodemanager.client.NMServerClient.checkResponse(NMServerClie
    nt.java:299)
    at weblogic.nodemanager.client.NMServerClient.checkResponse(NMServerClie
    nt.java:312)
    at weblogic.nodemanager.client.NMServerClient.connect(NMServerClient.jav
    a:248)
    at weblogic.nodemanager.client.NMServerClient.checkConnected(NMServerCli
    ent.java:199)
    at weblogic.nodemanager.client.NMServerClient.checkConnected(NMServerCli
    ent.java:205)
    at weblogic.nodemanager.client.NMServerClient.getVersion(NMServerClient.
    java:52)
    at weblogic.management.scripting.NodeManagerService.verifyConnection(Nod
    eManagerService.java:179)
    at weblogic.management.scripting.NodeManagerService.nmConnect(NodeManage
    rService.java:173)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.python.core.PyReflectedFunction.__call__(Unknown Source)
    at org.python.core.PyMethod.__call__(Unknown Source)
    at org.python.core.PyObject.__call__(Unknown Source)
    at org.python.core.PyObject.invoke(Unknown Source)
    at org.python.pycode._pyx2.nmConnect$3(<iostream>:118)
    at org.python.pycode._pyx2.call_function(<iostream>)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyFunction.__call__(Unknown Source)
    at org.python.core.PyObject.__call__(Unknown Source)
    at org.python.pycode._pyx16.f$0(<console>:1)
    at org.python.pycode._pyx16.call_function(<console>)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyCode.call(Unknown Source)
    at org.python.core.Py.runCode(Unknown Source)
    at org.python.core.Py.exec(Unknown Source)
    at org.python.util.PythonInterpreter.exec(Unknown Source)
    at org.python.util.InteractiveInterpreter.runcode(Unknown Source)
    at org.python.util.InteractiveInterpreter.runsource(Unknown Source)
    at org.python.util.InteractiveInterpreter.runsource(Unknown Source)
    at weblogic.management.scripting.WLST.main(WLST.java:180)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at weblogic.WLST.main(WLST.java:29)
    weblogic.nodemanager.NMException: I/O error while reading domain directory
    wls:/offline>
    wls:/offline>

    Hi manohar,
    Thank you, Pierluigi for encouraging Middleware Magic Team :)
    manohar, apart from what *"Pierluigi"* has suggested, additionally please notice the following messsage in your StackTrace (whih is basically a NOTICE message but does not look good)
    The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object:In your case it looks like the actual issue is your Certificate which comes by default with JDK. As mentioned in this BUG.
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6803022
    Additionally please refer to the following Thread:
    http://forums.oracle.com/forums/message.jspa?messageID=3958098#3958098
    I am suspecting that you need to do the following in order to get rid of Certificate Errors which is the ROOT cause of your issue
    Do the following: After taking a backup of *"$JAVA_HOME/jre/lib/security/cacerts"* file
    cd $JAVA_HOME/jre/lib/security
    cp -p cacerts cacerts.original
    chmod 644 cacerts
    keytool -delete -alias ttelesecglobalrootclass2ca -keystore cacerts
    keytool -delete -alias ttelesecglobalrootclass3ca -keystore cacertsAlso try with Node Manager Communication type as "*Plain*" because it looks like you are getting PKIX security certificate chain message, just to isolate the issue.
    Regards,
    Ravish Mody

  • Error in Starting weblogic Portal Domain

    I have created weblogic portal domain using configuration wizard in Weblogic portal 9 and in weblogic portal 10.
    Weblogic portal 9 it is started fine and when started in weblogic portal 10 it throwed following exception.
    weblogic.security.SecurityInitializationException: Authentication denied: Boot identity not valid; The user name and/or password from the boot identity file (boot.properties) is not valid. The boot identity may have been changed since the boot identity file was created. Please edit and update the boot identity file with the proper values of username and password. The first time the updated boot identity file is used to start the server, these new values are encrypted.
         at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.doBootAuthorization(Unknown Source)
         at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(Unknown Source)
         at weblogic.security.service.SecurityServiceManager.initialize(Unknown Source)
         at weblogic.security.SecurityService.start(SecurityService.java:141)
         at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    Can some one help me in this exception
    Thank You

    I am not sure how you got into this state, but to clear it up you can edit the boot.properties file to enter (clear text) the username and password for the server (entered when running the Configuration Wizard).
    The boot.properties file is located in your domain at:
    <domain root>/servers/AdminServer/security
    Just enter the username and password in the file:
    username=myUserName
    password=myPassword
    WebLogic Server will boot up using these values and immediately encrypt the username and password in the file.
    An alternate approach would be to delete boot.properties in which case WLS will prompt you for the id/pw each time it is started/stopped.
    Brad

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

  • Error while deploying application on portal domain

    Hi All,
    I am getting following error while deploying application on portal domain :( :( Not sure what I am missing.......
    Anyone has any idea on this???
    <Oct 6, 2010 7:49:03 AM EDT> <Warning> <com.bea.wlw.netui.pageflow.internal.WebLogicURLTemplateFactory> <BEA-000000> <In webapp <Workshop Application>, the url template <http://{url:domain}:{url:port}/{url:path}?{url:queryString}{url:currentPage}> uses the {url:port} token. The system may not pick up the correct ports if you are using a proxy server. Consider hardcoding the ports in a production environment.>
    <Oct 6, 2010 7:49:05 AM EDT> <Error> <com.bea.p13n.util.jdbc.internal.JdbcSequencer> <BEA-000000> <Cannot allocate sequence block:
    java.sql.SQLException: Cannot call commit when using distributed transactions
    at weblogic.jdbc.wrapper.JTAConnection.commit(JTAConnection.java:349)
    at com.bea.p13n.util.jdbc.internal.JdbcSequencer.allocateSequenceBlockNewTx(JdbcSequencer.java:626)
    at com.bea.p13n.util.jdbc.internal.JdbcSequencer.getNext(JdbcSequencer.java:456)
    at com.bea.netuix.application.manager.persistence.jdbc.MarkupDefinitionDelegate.createMarkupDefinition(MarkupDefinitionDelegate.java:785)
    at com.bea.netuix.application.manager.persistence.jdbc.MarkupDefinitionManagerImpl.createMarkupDefinition(MarkupDefinitionManagerImpl.java:161)
    Truncated. see log file for complete stacktrace
    >
    <Oct 6, 2010 7:49:05 AM EDT> <Error> <netuix> <BEA-423147> <Exception [javax.transaction.TransactionRolledbackException: EJB Exception: : javax.ejb.EJBException: SQL Error while trying to createMarkupDefinition: SQL [insert into PF_MARKUP_DEFINITION ( MARKUP_DEFINITION_ID, MARKUP_NAME, MARKUP_TYPE, WEBAPP_NAME, MARKUP_FILE) values (?,?,?,?,?)] database error code [0] SQL state [null]. Possible markup duplication of [
    MarkupDefinition:
    webAppName = plassPortalWeb
    type = Menu
    name = multiLevelMenu
    file = /framework/markup/menu/multilevel.menu
    beginXml = <netuix:multiLevelMenu $(markupType) $(markupName)>
    endXml = </netuix:multiLevelMenu>
    MarkupDefinitionId = null].; nested exception is: java.sql.SQLException: Cannot call commit when using distributed transactions
    java.sql.SQLException: Cannot call commit when using distributed transactions
    at weblogic.jdbc.wrapper.JTAConnection.commit(JTAConnection.java:349)
    at com.bea.p13n.util.jdbc.internal.JdbcSequencer.allocateSequenceBlockNewTx(JdbcSequencer.java:626)
    at com.bea.p13n.util.jdbc.internal.JdbcSequencer.getNext(JdbcSequencer.java:456)
    at com.bea.netuix.application.manager.persistence.jdbc.MarkupDefinitionDelegate.createMarkupDefinition(MarkupDefinitionDelegate.java:785)
    at com.bea.netuix.application.manager.persistence.jdbc.MarkupDefinitionManagerImpl.createMarkupDefinition(MarkupDefinitionManagerImpl.java:161)
    at com.bea.netuix.application.manager.persistence.jdbc.MarkupDefinitionManager_twpn9c_EOImpl.createMarkupDefinition(MarkupDefinitionManager_twpn9c_EOImpl.java:138)
    at com.bea.netuix.servlets.repository.MenuFilePersistenceManager.onNewFile(MenuFilePersistenceManager.java:160)
    at com.bea.netuix.servlets.repository.MenuFilePersistenceManager.createUpdateMenuDefinitions(MenuFilePersistenceManager.java:267)
    at com.bea.netuix.servlets.repository.MenuFilePersistenceManager.startupSync(MenuFilePersistenceManager.java:529)
    at com.bea.netuix.servlets.repository.AbstractFilePersistenceManager$StartupSync.run(AbstractFilePersistenceManager.java:155)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
    at com.bea.netuix.servlets.repository.AbstractFilePersistenceManager.startup(AbstractFilePersistenceManager.java:97)
    at com.bea.netuix.servlets.repository.MenuFilePersistenceManager.onNewFiles(MenuFilePersistenceManager.java:228)
    at com.bea.netuix.poller.FrameworkPoller.newFiles(FrameworkPoller.java:256)
    at com.bea.netuix.poller.NetuixFilePoller.start(NetuixFilePoller.java:172)
    at com.bea.netuix.servlets.manager.PortalServlet.reinitInternal(PortalServlet.java:390)
    at com.bea.netuix.servlets.manager.PortalServlet.initInternal(PortalServlet.java:261)
    at com.bea.netuix.servlets.manager.PortalServlet.access$100(PortalServlet.java:125)

    Hello Everybody,
    I solved this error by myself as follows:
    So, what I did was; I started the RemoteGui.bat (C:\usr\sap\J2E\JC00\SDM\program) and from the Undeployment tab, I selected “mainapp01” and “com.sap.engine.docs.examples”.
    The reason I undeployed the above applications was because when I was trying to deploy the mainapp01 application, it gave an error saying that “: Cannot deploy application pcbp.com/mainapp01.. Reason: Application alias [/] for application [pcbp.com/mainapp01] already exists in the HTTP Provider Service. The application that holds this alias is [sap.com/com.sap.engine.docs.examples “.
    And, then I restarted the J2EE engine and from the SAP Netweaver Developer Studio, I again deployed the mainapp01 application on the local J2EE engine and it was deployed successfully.
    Oct 10, 2006 9:45:30 AM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] INFO:
    [002]Finished Deployment
    Settings
    SDM host : RPIKOER
    SDM port : 50018
    URL to deploy : file:/C:/DOCUME1/krunalra/LOCALS1/Temp/temp9270pcbp.com~mainapp01.ear
    Result
    => successfully deployed : file:/C:/DOCUME1/krunalra/LOCALS1/Temp/temp9270pcbp.com~mainapp01.ear
    Thank You
    With Regards,
    Krunal Rana.

  • Issue while starting AdminSerever using wlst commands

    Hi, I am facing issue while trying to start the AdminServer and Managed Server via nodemanager using wlst commands. I have installelled WebLogic 11g on windows 2008 R2. Mentioned below are the steps that I followed:
    1) In Nodemanager.properties files I set following parameters to true. I did this, so that nodemanager can start the server in case of crash.
    CrashRecoveryEnabled=true
    StartScriptEnabled=true
    2) started nodemanager and then started AdminServer from the command prompt as follows:
    nmConnect('weblogic','password','10.23.226.58','5556','IMDomain','E:\Oracle\Middleware\user_projects\domains\IMDomain','ssl')
    nmStart('AdminServer')
    I dont see any errors but it seems the AdminServer do Not start properly as in the cmd window I don't see any 'started successfully' message - the message remains as *"Starting AdminServer..."*
    However in the adminServer logs I see that the status is Running (refer logs at the end) and I can also see it as Running in weblogic console.
    I really didnt care if its not giving a success message in cmd window but the problem occurs when I start the managedServer. After starting the managed server in about 10 minutes, there is a stuck thread. (I guess it is 10 mins because Stuck Thread MaxTime value is 600).
    If I set StartScriptEnabled=false, and start by directly running the startweblogic.cmd then it works fine.
    I am struggling with this for last 1 week, appreciate any help.
    LOGS.......
    Starting WLS with line:
    E:\PROGRA~1\Java\JDK16~1.0_2\bin\java -client -Xms256m -Xmx1024m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=256m -Dweblogic.Name=AdminServer -Djava.security.policy=E:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy -Djavax.xml.stream.XMLInputFactory=weblogic.xml.stax.XMLStreamInputFactory -Dweblogic.security.SSL.nojce=true -Xverify:none -da -Dplatform.home=E:\Oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=E:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dwli.home=E:\Oracle\MIDDLE~1\WLSERV~1.3\integration -Dweblogic.home=E:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.management.discover=true -Dwlw.iterativeDev=false -Dwlw.testConsole=false -Dwlw.logErrorsToConsole=false -Dweblogic.ext.dirs=E:\Oracle\MIDDLE~1\patch_wls1035\profiles\default\sysext_manifest_classpath;E:\Oracle\MIDDLE~1\patch_ocp360\profiles\default\sysext_manifest_classpath weblogic.Server
    <Mar 14, 2012 3:16:30 PM CDT> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true>
    <Mar 14, 2012 3:16:30 PM CDT> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true>
    <Mar 14, 2012 3:16:30 PM CDT> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) 64-Bit Server VM Version 20.2-b06 from Sun Microsystems Inc.>
    <Mar 14, 2012 3:16:31 PM CDT> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.5.0 Fri Apr 1 20:20:06 PDT 2011 1398638 >
    <Mar 14, 2012 3:16:32 PM CDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <Mar 14, 2012 3:16:32 PM CDT> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
    <Mar 14, 2012 3:16:32 PM CDT> <Notice> <Log Management> <BEA-170019> <The server log file E:\Oracle\Middleware\user_projects\domains\IMDomain\servers\AdminServer\logs\AdminServer.log is opened. All server side log events will be written to this file.>
    <Mar 14, 2012 3:16:36 PM CDT> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
    <Mar 14, 2012 3:16:37 PM CDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
    <Mar 14, 2012 3:16:37 PM CDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    Mar 14, 2012 3:16:39 PM com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Initializing Sun's JavaServer Faces implementation (1.2_03-b04-FCS) for context '/console'
    Mar 14, 2012 3:16:39 PM com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Completed initializing Sun's JavaServer Faces implementation (1.2_03-b04-FCS) for context '/console'
    <Mar 14, 2012 3:16:40 PM CDT> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
    <Mar 14, 2012 3:16:40 PM CDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
    <Mar 14, 2012 3:16:40 PM CDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
    <Mar 14, 2012 3:16:40 PM CDT> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 10.227.211.13:8001 for protocols iiop, t3, ldap, snmp, http.>
    <Mar 14, 2012 3:16:40 PM CDT> <Notice> <WebLogicServer> <BEA-000329> <Started WebLogic Admin Server "AdminServer" for domain "IMDomain" running in Production Mode>
    <Mar 14, 2012 3:16:40 PM CDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
    <Mar 14, 2012 3:16:40 PM CDT> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    <Mar 14, 2012 3:20:53 PM CDT> <Notice> <Security> <BEA-090171> <Loading the identity certificate and private key stored under the alias DemoIdentity from the jks keystore file E:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\DemoIdentity.jks.>
    <Mar 14, 2012 3:20:53 PM CDT> <Notice> <Security> <BEA-090169> <Loading trusted certificates from the jks keystore file E:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\DemoTrust.jks.>
    <Mar 14, 2012 3:20:53 PM CDT> <Notice> <Security> <BEA-090169> <Loading trusted certificates from the jks keystore file E:\PROGRA~1\Java\JDK16~1.0_2\jre\lib\security\cacerts.>
    <Mar 14, 2012 3:20:53 PM CDT> <Alert> <Security> <BEA-090152> <Demo trusted CA certificate is being used in production mode: [
    Version: V3
    Subject: CN=CACERT, OU=FOR TESTING ONLY, O=MyOrganization, L=MyTown, ST=MyState, C=US
    Signature Algorithm: MD5withRSA, OID = 1.2.840.113549.1.1.4
    Key: Sun RSA public key, 512 bits
    modulus: 9550192877869244258838480703390456015046425375252278279190673063544122510925482179963329236052146047356415957587628011282484772458983977898996276815440753
    public exponent: 65537
    Validity: [From: Thu Mar 21 14:12:27 CST 2002,
                   To: Tue Mar 22 15:12:27 CDT 2022]
    Issuer: CN=CACERT, OU=FOR TESTING ONLY, O=MyOrganization, L=MyTown, ST=MyState, C=US
    SerialNumber: [    33f10648 fcde0deb 4199921f d64537f4]
    Certificate Extensions: 1
    [1]: ObjectId: 2.5.29.15 Criticality=true
    KeyUsage [
    Key_CertSign
    Algorithm: [MD5withRSA]
    Signature:
    0000: 9D 26 4C 29 C8 91 C3 A7 06 C3 24 6F AE B4 F8 82 .&L)......$o....
    0010: 80 4D AA CB 7C 79 46 84 81 C4 66 95 F4 1E D8 C4 .M...yF...f.....
    0020: E9 B7 D9 7C E2 23 33 A4 B7 21 E0 AA 54 2B 4A FF .....#3..!..T+J.
    0030: CB 21 20 88 81 21 DB AC 90 54 D8 7D 79 63 23 3C .! ..!...T..yc#<
    ] The system is vulnerable to security attacks, since it trusts certificates signed by the demo trusted CA.>
    <Mar 14, 2012 3:20:53 PM CDT> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=Entrust Root Certification Authority - G2,OU=(c) 2009 Entrust\, Inc. - for authorized use only,OU=See www.entrust.net/legal-terms,O=Entrust\, Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Mar 14, 2012 3:20:53 PM CDT> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=thawte Primary Root CA - G3,OU=(c) 2008 thawte\, Inc. - For authorized use only,OU=Certification Services Division,O=thawte\, Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Mar 14, 2012 3:20:53 PM CDT> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=T-TeleSec GlobalRoot Class 3,OU=T-Systems Trust Center,O=T-Systems Enterprise Services GmbH,C=DE". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Mar 14, 2012 3:20:53 PM CDT> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=T-TeleSec GlobalRoot Class 2,OU=T-Systems Trust Center,O=T-Systems Enterprise Services GmbH,C=DE". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Mar 14, 2012 3:20:53 PM CDT> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=GlobalSign,O=GlobalSign,OU=GlobalSign Root CA - R3". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Mar 14, 2012 3:20:53 PM CDT> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "OU=Security Communication RootCA2,O=SECOM Trust Systems CO.\,LTD.,C=JP". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Mar 14, 2012 3:20:53 PM CDT> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=VeriSign Universal Root Certification Authority,OU=(c) 2008 VeriSign\, Inc. - For authorized use only,OU=VeriSign Trust Network,O=VeriSign\, Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Mar 14, 2012 3:20:53 PM CDT> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=KEYNECTIS ROOT CA,OU=ROOT,O=KEYNECTIS,C=FR". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Mar 14, 2012 3:20:53 PM CDT> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=GeoTrust Primary Certification Authority - G3,OU=(c) 2008 GeoTrust Inc. - For authorized use only,O=GeoTrust Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Mar 15, 2012 11:41:41 AM CDT> <Error> <WebLogicServer> <BEA-000337> <[STUCK] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)' has been busy for "650" seconds working on the request "weblogic.kernel.WorkManagerWrapper$1@68a3f7ed", which is more than the configured time (StuckThreadMaxTime) of "600" seconds. Stack trace:
    java.net.SocketInputStream.socketRead0(Native Method)
    java.net.SocketInputStream.read(SocketInputStream.java:129)
    weblogic.utils.io.ChunkedInputStream.read(ChunkedInputStream.java:159)
    java.io.InputStream.read(InputStream.java:85)
    com.certicom.tls.record.ReadHandler.readFragment(Unknown Source)
    com.certicom.tls.record.ReadHandler.readRecord(Unknown Source)
    com.certicom.tls.record.ReadHandler.read(Unknown Source)
    com.certicom.io.InputSSLIOStreamWrapper.read(Unknown Source)
    sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)
    sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
    sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
    java.io.InputStreamReader.read(InputStreamReader.java:167)
    java.io.BufferedReader.fill(BufferedReader.java:136)
    java.io.BufferedReader.readLine(BufferedReader.java:299)
    java.io.BufferedReader.readLine(BufferedReader.java:362)
    weblogic.nodemanager.client.NMServerClient.checkResponse(NMServerClient.java:289)
    weblogic.nodemanager.client.NMServerClient.checkResponse(NMServerClient.java:314)
    weblogic.nodemanager.client.NMServerClient.start(NMServerClient.java:102)
    weblogic.nodemanager.mbean.StartRequest.start(StartRequest.java:75)
    weblogic.nodemanager.mbean.StartRequest.execute(StartRequest.java:47)
    weblogic.kernel.WorkManagerWrapper$1.run(WorkManagerWrapper.java:63)
    weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    >
    <Mar 15, 2012 11:42:41 AM CDT> <Error> <WebLogicServer> <BEA-000337> <[STUCK] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)' has been busy for "710" seconds working on the request "weblogic.kernel.WorkManagerWrapper$1@68a3f7ed", which is more than the configured time (StuckThreadMaxTime) of "600" seconds. Stack trace:
    java.net.SocketInputStream.socketRead0(Native Method)
    java.net.SocketInputStream.read(SocketInputStream.java:129)
    weblogic.utils.io.ChunkedInputStream.read(ChunkedInputStream.java:159)
    java.io.InputStream.read(InputStream.java:85)
    com.certicom.tls.record.ReadHandler.readFragment(Unknown Source)
    com.certicom.tls.record.ReadHandler.readRecord(Unknown Source)
    com.certicom.tls.record.ReadHandler.read(Unknown Source)
    com.certicom.io.InputSSLIOStreamWrapper.read(Unknown Source)
    sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)
    sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
    sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
    java.io.InputStreamReader.read(InputStreamReader.java:167)
    java.io.BufferedReader.fill(BufferedReader.java:136)
    java.io.BufferedReader.readLine(BufferedReader.java:299)
    java.io.BufferedReader.readLine(BufferedReader.java:362)
    weblogic.nodemanager.client.NMServerClient.checkResponse(NMServerClient.java:289)
    weblogic.nodemanager.client.NMServerClient.checkResponse(NMServerClient.java:314)
    weblogic.nodemanager.client.NMServerClient.start(NMServerClient.java:102)
    weblogic.nodemanager.mbean.StartRequest.start(StartRequest.java:75)
    weblogic.nodemanager.mbean.StartRequest.execute(StartRequest.java:47)
    weblogic.kernel.WorkManagerWrapper$1.run(WorkManagerWrapper.java:63)
    weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    >

    Hi chamila,
        I never tried the example. Exception is not clear. Could you please post more stack trace from log files.
    Thanks,
    Sham

Maybe you are looking for

  • How do I access the US store from outside of the US?

    Program keeps defaulting to Italian and telling me my account name is in use by someone in the Stati Uniti. Grrr....

  • AMule known.met.new No such file or directory

    Today I've seen that Kad doesn't have nodes and this message: 2012-02-06 20:33:07: Connected to Kad (ok) 2012-02-06 20:33:35: Error: Impossible to get permissions for file '/home/user/.aMule/known.met.new' (error 2: No such file or directory) Efectiv

  • Looking for Synths

    So I recorded some synths on Garageband for my Iphone and now I'm trying to reproduce them. However when I booted up my lovely lady friends version of Garageband it was missing the synth that I had been using. She doesn't have the newest version and

  • After share moved to new Server User can't save .xls file anymore.

    Dear Forum, we have a strange problem here. Situation: A fileshare got moved from a very old Server 2000 to our new 2008 R2 Server. Ever since the departments share moved Servers she (and her colleagues) get "unsuspected file lock by user" messages.

  • Function: alm_me_notification_change

    Hi experts, i need to change cost center and wbs element in trans. iw22. i try to use this function without succeed.(i call this function and than i do commit) The sy-subrc = 0 and the "return" value is empty. thanks in advanced, Michal. Edited by: m