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

Similar Messages

  • WLST Domain Creation using JRF template throws SQLRecoverableException

    I am working on domain creation using templates and included the JRF template to use OPSS functionality.
    I have run the RCU utility to create the required components that will have necessary tables to host OPSS data and also tested that it works with CC_STB user that i will use to connect from WLS.
    I am able to ping the database server having RCU components from the VM where i want to create and configure the domain but when i configure the LocalSvcTblDataSource with the same ip address and try to setup the OPSS datasources, it gives me "Internal Exception: java.sql.SQLRecoverableException: IO Error: Unknown host specified Error Code: 17002"
    Below is my WLST python script:
    #=======================================================================================
    # Open a domain template.
    #=======================================================================================
    readTemplate("/u01/app/mw/Oracle_Home/wlserver/common/templates/wls/wls.jar")
    #=======================================================================================
    # Update the domain to enable the WebLogic Server domain with JRF and EM.
    #=======================================================================================
    addTemplate('/u01/app/mw/Oracle_Home/oracle_common/common/templates/wls/oracle.jrf_template_12.1.2.jar')
    addTemplate('/u01/app/mw/Oracle_Home/em/common/templates/wls/oracle.em_wls_template_12.1.2.jar')
    #=======================================================================================
    # Configure the Administration Server and SSL port.
    # To enable access by both local and remote processes, you should not set the
    # listen address for the server instance (that is, it should be left blank or not set).
    # In this case, the server instance will determine the address of the machine and
    # listen on it.
    #=======================================================================================
    cd('Servers/AdminServer')
    set('ListenAddress','')
    set('ListenPort', 7001)
    create('AdminServer','SSL')
    cd('SSL/AdminServer')
    set('Enabled', 'True')
    set('ListenPort', 7002)
    #=======================================================================================
    # Define the user password for weblogic.
    #=======================================================================================
    cd('/')
    cd('Security/base_domain/User/weblogic')
    # Please set password here before using this script, e.g. cmo.setPassword('value')
    cmo.setPassword('password')
    #=======================================================================================
    # Create and configure a JDBC Data Source, and sets the JDBC user.
    #=======================================================================================
    # Get RCU Configuration using RCU service table (STB) schema credentials
    cd('/')
    cd('JDBCSystemResource/LocalSvcTblDataSource/JdbcResource/LocalSvcTblDataSource')
    cd('JDBCDriverParams/NO_NAME_0')
    set('DriverName','oracle.jdbc.OracleDriver')
    set('URL','jdbc:oracle:thin:@XX.XX.XX.XX:15210/xe')
    set('PasswordEncrypted', 'password')
    set('UseXADataSourceInterface', 'false')
    cd('Properties/NO_NAME_0')
    cd('Property/user')
    cmo.setValue('CC_STB')
    getDatabaseDefaults()
    #=======================================================================================
    # Write the domain and close the domain template.
    #=======================================================================================
    setOption('OverwriteDomain', 'true')
    writeDomain('/u01/data/user_projects/domains/cc_domain')
    closeTemplate()
    #=======================================================================================
    # Exit WLST.
    #=======================================================================================
    exit()
    And the complete exception trace.
    Internal Exception: java.sql.SQLRecoverableException: IO Error: Unknown host specified
    Error Code: 17002
    Error: writeDomain() failed. Do dumpStack() to see details.
    wls:/offline/base_domain>dumpStack();
    com.oracle.cie.domain.script.jython.WLSTException: com.oracle.cie.domain.script.ScriptException: Domain Creation Failed!
    Domain Location: /u01/data/user_projects/domains/cc_domain
    Reason: oracle.security.opss.tools.lifecycle.LifecycleException: oracle.security.jps.service.policystore.PolicyStoreException: javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.4.2.v20130514-5956486): org.eclipse.persistence.exceptions.DatabaseException
    Internal Exception: java.sql.SQLRecoverableException: IO Error: Unknown host specified
    Error Code: 17002
    Exception:
    oracle.security.opss.tools.lifecycle.LifecycleException: oracle.security.jps.service.policystore.PolicyStoreException: javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.4.2.v20130514-5956486): org.eclipse.persistence.exceptions.DatabaseException
    Internal Exception: java.sql.SQLRecoverableException: IO Error: Unknown host specified
    Error Code: 17002
      at com.oracle.cie.domain.script.jython.CommandExceptionHandler.handleException(CommandExceptionHandler.java:55)
      at com.oracle.cie.domain.script.jython.WLScriptContext.handleException(WLScriptContext.java:1967)
      at com.oracle.cie.domain.script.jython.WLScriptContext.writeDomain(WLScriptContext.java:1126)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      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.PyInstance.invoke(Unknown Source)
      at org.python.pycode._pyx5.writeDomain$15(/tmp/WLSTOfflineIni4846195865917165143.py:73)
      at org.python.pycode._pyx5.call_function(/tmp/WLSTOfflineIni4846195865917165143.py)
      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.pycode._pyx93.f$0(<console>:1)
      at org.python.pycode._pyx93.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:219)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at weblogic.WLST.main(WLST.java:29)
    Caused by: com.oracle.cie.domain.script.ScriptException: Domain Creation Failed!
    Domain Location: /u01/data/user_projects/domains/cc_domain
    Reason: oracle.security.opss.tools.lifecycle.LifecycleException: oracle.security.jps.service.policystore.PolicyStoreException: javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.4.2.v20130514-5956486): org.eclipse.persistence.exceptions.DatabaseException
    Internal Exception: java.sql.SQLRecoverableException: IO Error: Unknown host specified
    Error Code: 17002
    Exception:
    oracle.security.opss.tools.lifecycle.LifecycleException: oracle.security.jps.service.policystore.PolicyStoreException: javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.4.2.v20130514-5956486): org.eclipse.persistence.exceptions.DatabaseException
    Internal Exception: java.sql.SQLRecoverableException: IO Error: Unknown host specified
    Error Code: 17002
      at com.oracle.cie.domain.script.ScriptExecutor.runGenerator(ScriptExecutor.java:3706)
      at com.oracle.cie.domain.script.ScriptExecutor.writeDomain(ScriptExecutor.java:991)
      at com.oracle.cie.domain.script.jython.WLScriptContext.writeDomain(WLScriptContext.java:1117)
      ... 29 more
    Caused by: com.oracle.cie.domain.security.external.ConfigSecurityException: oracle.security.opss.tools.lifecycle.LifecycleException: oracle.security.jps.service.policystore.PolicyStoreException: javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.4.2.v20130514-5956486): org.eclipse.persistence.exceptions.DatabaseException
    Internal Exception: java.sql.SQLRecoverableException: IO Error: Unknown host specified
    Error Code: 17002
      at oracle.security.opss.tools.lifecycle.cie.OpssSecurityConfiguration.initializeSubsystem(OpssSecurityConfiguration.java:129)
      at com.oracle.cie.domain.DomainGenerator.run(DomainGenerator.java:315)
      at java.lang.Thread.run(Thread.java:744)
    Caused by: oracle.security.opss.tools.lifecycle.LifecycleException: oracle.security.jps.service.policystore.PolicyStoreException: javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.4.2.v20130514-5956486): org.eclipse.persistence.exceptions.DatabaseException
    Internal Exception: java.sql.SQLRecoverableException: IO Error: Unknown host specified
    Error Code: 17002
      at oracle.security.opss.tools.lifecycle.OpssDomainConfigImpl.checkIfFarmExists(OpssDomainConfigImpl.java:708)
      at oracle.security.opss.tools.lifecycle.OpssDomainConfigImpl.configureDBSecurityStore(OpssDomainConfigImpl.java:339)
      at oracle.security.opss.tools.lifecycle.OpssDomainConfigImpl.initializeSubsystem(OpssDomainConfigImpl.java:166)
      at oracle.security.opss.tools.lifecycle.cie.OpssSecurityConfiguration.initializeSubsystem(OpssSecurityConfiguration.java:126)
      ... 2 more
    Caused by: oracle.security.jps.service.policystore.PolicyStoreException: javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.4.2.v20130514-5956486): org.eclipse.persistence.exceptions.DatabaseException
    Internal Exception: java.sql.SQLRecoverableException: IO Error: Unknown host specified
    Error Code: 17002
      at oracle.security.jps.internal.policystore.rdbms.JpsDBDataManager.processJPAException(JpsDBDataManager.java:2088)
      at oracle.security.jps.internal.policystore.rdbms.JpsDBDataManager.init(JpsDBDataManager.java:955)
      at oracle.security.jps.internal.policystore.rdbms.JpsDBDataManager.beginTransaction(JpsDBDataManager.java:1459)
      at oracle.security.jps.internal.policystore.rdbms.JpsDBDataManager.beginTransaction(JpsDBDataManager.java:1455)
      at oracle.security.jps.internal.common.rdbms.util.JpsDbBootstrapImpl.<init>(JpsDbBootstrapImpl.java:162)
      at oracle.security.opss.tools.lifecycle.OpssDomainConfigImpl.checkIfFarmExists(OpssDomainConfigImpl.java:679)
      ... 5 more
    Caused by: javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.4.2.v20130514-5956486): org.eclipse.persistence.exceptions.DatabaseException
    Internal Exception: java.sql.SQLRecoverableException: IO Error: Unknown host specified
    Error Code: 17002
      at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:614)
      at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.getDatabaseSession(EntityManagerFactoryDelegate.java:186)
      at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.createEntityManagerImpl(EntityManagerFactoryDelegate.java:278)
      at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:304)
      at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:282)
      at oracle.security.jps.internal.policystore.rdbms.JpsDBDataManager.getVersion(JpsDBDataManager.java:1027)
      at oracle.security.jps.internal.policystore.rdbms.JpsDBDataManager.getEMFAndSubject(JpsDBDataManager.java:1124)
      at oracle.security.jps.internal.policystore.rdbms.JpsDBDataManager.init(JpsDBDataManager.java:907)
      ... 9 more
    Caused by: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.4.2.v20130514-5956486): org.eclipse.persistence.exceptions.DatabaseException
    Internal Exception: java.sql.SQLRecoverableException: IO Error: Unknown host specified
    Error Code: 17002
      at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:324)
      at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:319)
      at org.eclipse.persistence.sessions.DefaultConnector.connect(DefaultConnector.java:138)
      at org.eclipse.persistence.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:162)
      at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:690)
      at org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:215)
      at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:554)
      ... 16 more
    Caused by: java.sql.SQLRecoverableException: IO Error: Unknown host specified
      at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:465)
      at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:546)
      at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:232)
      at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
      at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
      at java.sql.DriverManager.getConnection(DriverManager.java:571)
      at java.sql.DriverManager.getConnection(DriverManager.java:187)
      at org.eclipse.persistence.sessions.DefaultConnector.connect(DefaultConnector.java:98)
      ... 20 more
    Caused by: oracle.net.ns.NetException: Unknown host specified
      at oracle.net.resolver.HostnameNamingAdapter.resolve(HostnameNamingAdapter.java:191)
      at oracle.net.resolver.NameResolver.resolveName(NameResolver.java:133)
      at oracle.net.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:416)
      at oracle.net.ns.NSProtocol.establishConnection(NSProtocol.java:687)
      at oracle.net.ns.NSProtocol.connect(NSProtocol.java:247)
      at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1109)
      at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:316)
      ... 27 more
    Any help/pointers/hints will be helpful
    Thanks,
    Santosh

    Hi Micheal,
    Thanks a Lot for your response.
    We have checked the OS requirements :
    System Itanium 11i (11.31) B.11.31.0803.318a Base Quality Pack Bundle for HP-UX 11i v3, March 2008+
    Response:
    ======
    We have the higher version installed for this quality pack.
    QPKBASE B.11.31.1109.367a Base Quality Pack Bundle for HP-UX 11i v3, September 2011
    2) Required Packages : HPDesktopDev (version B.11.31.01)
    Response:
    =======
    This package is also installed.
    X11MotifDevKit B.11.31.01 HP-UX Desktop Developer's Toolkit - X11, Motif, and Imake
    3) Required Operating System Patches
    PHKL_36248
    PHKL_36249
    PHSS_37202
    PHSS_37501
    PHCO_38050
    PHSS_38139
    Response:
    ========
    We have the supersets for these patches installed. The installation logs also confirm these patches at the OS level.
    Check Name:Patches
    Check Description:This is a prerequisite condition to test whether the patches recommended for installing the product are available on the system.
    Checking for PHKL_36248; found PHKL_36248. Passed
    Checking for PHKL_36249; found PHKL_36249. Passed
    Checking for PHSS_37202; found PHSS_37202. Passed
    Checking for PHSS_37501; found PHSS_37501. Passed
    Checking for PHCO_38050; found PHCO_38050. Passed
    Checking for PHSS_38139; found PHSS_38139. Passed
    Check complete. The overall result of this check is: Passed
    Regards
    Sumit Kapila

  • How to create users and groups using WLST Offline with Weblogic 8.1.4

    How to create users and groups using WLST Offline with Weblogic 8.1.4?
    Any ideas?

    Hi this is how i created a user using WLST Offline?
    cd('/Security/' + domainName)
    # Delete the default user name weblogic
    # incase you want to remove the defualt user weblogic
    delete('weblogic','User')
    # Creating a new user defined
    create(userName, 'User')
    # Setting the password of the user you created.
    cd ('/Security/' + domainName + '/User/' + userName)
    cmo.setPassword(password)
    Regards
    Makenzo

  • Setup SAML 2.0 Service Provider using WLST Offline

    Is this possible http://weblogic.sys-con.com/node/1455841 to do using WLST offline?

    I enabled "DebugSecurityAtn" as suggested - and "DebugHttpSessions" as well.
    Unfortunately, I'm still not sure what's happening though.
    Here are all my "Authentication Providers" in the order listed in the Console:
    - DefaultAuthenticator : Control Flags=SUFFICIENT
    - DefaultIdentityAsserter : No "Active Type"
    - saml2IA (SAML 2.0 Identity Assertion Provider)
    - samlauth (SAML Authentication Provider): SUFFICIENT
    This is an except of the updated server log:
    <SecuritySAMLAtn> <SAMLIALoginModule: commit(): SAML IA LoginModule Group Added>
    <SecurityAtn> <weblogic.security.service.internal.WLSJAASLoginServiceImpl$ServiceImpl.authenticate login succeeded and myuser was not previously locked out>
    <SecurityAtn> <com.bea.common.security.internal.service.IdentityCacheServiceImpl.cachedIdentity(Subject: 3
    Principal = class weblogic.security.principal.WLSUserImpl("myuser")
    Principal = class weblogic.security.principal.WLSGroupImpl("grp_a")
    Principal = class weblogic.security.principal.WLSGroupImpl("grp_b")
    )>
    <HttpSessions> <[HTTP Session:100046]Creating new session with ID: nVm... for Web application: /saml2.>
    <SecuritySAML2Service> <Using redirect URL from request cache: 'https://localhost:1234/MyApp/secure/index.html'>
    <SecuritySAML2Service> <Redirecting to URL: https://localhost:1234/MyApp/secure/index.html>
    <HttpSessions> <[HTTP Session:100078]HTTPSession with id: "nVm..." is of size 84 bytes.>
    <SecuritySAML2Service> <SAML2Filter: Processing request on URI '/MyApp/secure/index.html;jsessionid=nVm...'>
    <SecuritySAML2Service> <getServiceTypeFromURI(): request URI is not a service URI>
    <SecuritySAML2Service> <getServiceTypeFromURI(): returning service type 'SPinitiator'>
    Thank you,
    Patrick

  • Error during weblogic domain creation using template.

    Hi,
    I have 2 machines(lets say Old and New). I have installed weblogic 10.3.5 in my Old machine where in I have used RCU 11.1.1.50. I have created a template of this domain. Now I have Weblogic 10.3.6 in my New machine and have used RCU 11.1.1.6.0. I am creating domain using the template created from Old machine where I am getting this error:
    Component Schema=SOA Infrastructure
    Driver=oracle.jdbc.xa.client.OracleXADataSource
    URL=jdbc:oracle:thin:@localhost:1521/fcubs
    User=DEV_SOAINFRA
    Password=******
    SQL Test=select 1 from schema_version_registry where owner=(select user from dual) and mr_type='SOAINFRA' and version='11.1.1.5.0'
    CFGFWK-60850:  Test Failed!
    CFGFWK-60853:  A connection was established to the database but no rows were returned from the test SQL statement.
    Component Schema=User Messaging Service
    Driver=oracle.jdbc.OracleDriver
    URL=jdbc:oracle:thin:@localhost:1521/fcubs
    User=DEV_ORASDPM
    Password=******
    SQL Test=select 1 from schema_version_registry where owner=(select user from dual) and mr_type='ORASDPM' and version='11.1.1.2.0'
    CFGFWK-60850:  Test Failed!
    CFGFWK-60853:  A connection was established to the database but no rows were returned from the test SQL statement.
    Component Schema=OWSM MDS Schema
    Driver=oracle.jdbc.OracleDriver
    URL=jdbc:oracle:thin:@localhost:1521/fcubs
    User=DEV_MDS
    Password=******
    SQL Test=select 1 from schema_version_registry where
    +                    owner=(select user from dual) and mr_type='MDS' and+
    +                    version='11.1.1.5.0'+
    CFGFWK-60850:  Test Failed!
    CFGFWK-60853:  A connection was established to the database but no rows were returned from the test SQL statement.
    Component Schema=SOA MDS Schema
    Driver=oracle.jdbc.OracleDriver
    URL=jdbc:oracle:thin:@localhost:1521/fcubs
    User=DEV_MDS
    Password=******
    SQL Test=select 1 from schema_version_registry where owner=(select user from dual) and mr_type='MDS' and version='11.1.1.5.0'
    CFGFWK-60850:  Test Failed!
    CFGFWK-60853:  A connection was established to the database but no rows were returned from the test SQL statement.
    Please help.
    Abhay

    You may simply ignore these errors. They are harmless.
    As you created the template using older version, it is trying to find older version entry in new schema created by higher version of RCU and hence it is expected to fail.
    Regards,
    Anuj

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

  • 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

  • Cannot create TransactionParams of ConnectionFactory with WLST Offline

    Hello dear WL users and geeks,
    I'm trying to automate the creation of a weblogic domain using WLST Offline but I've got some problem with the configuration of a JMS ConnectionFactory : I don't know how to activate the XA-Connection factory setting.
    Ok, here is the WLST code, results and thoughs are in comments (##) :
    ==================
    ## I start with a fresh install of Oracle Weblogic Server 11g R1 (10.3.3) (also tried 10.3.1, same problem) and use the Configuration Wizard to
    ## create a new Weblogic domain using the default "Basic Weblogic server domain template".
    ## First, read the domain
    readDomain('Oracle/Middleware/user_projects/domains/base_domain/')
    ## Create a JMSServer
    create('MyJMSServer', 'JMSServer')
    assign('JMSServer', 'MyJMSServer', 'Server', 'AdminServer')
    ## Create a JMS Module
    create('TestModule', 'JMSSystemResource')
    ## And now a ConnectionFactory
    cd('/JMSSystemResource/TestModule/JmsResource/NO_NAME_0')
    fact=create('TestConnFactory', 'ConnectionFactory')
    fact.setJNDIName('someJNDIName')
    updateDomain()
    ## Ok, let's see what is defined :
    cd ('/JMSSystemResource/TestModule/JmsResource/NO_NAME_0/ConnectionFactory/TestConnFactory')
    ls()
    ## -rw- DefaultTargetingEnabled false
    ## -rw- JNDIName someJNDIName
    ## -rw- LocalJNDIName null
    ## -rw- Name TestConnFactory
    ## -rw- Notes null
    ## -rw- SubDeploymentName null
    ## Uh oh. Why are the 'directories' TransactionParams and SecurityParams missing ? How am I supposed to edit the TransactionParams ?
    ## Maybe there is a createTransactionParams method ?
    dir(fact)
    ## ['JNDIName', 'class', 'clientParams', 'defaultDeliveryParams', 'defaultTargetingEnabled', 'equals', 'flowControlParams', 'getClass',
    ## 'getClientParams', 'getDefaultDeliveryParams', 'getFlowControlParams', 'getInvocationHandler', 'getJNDIName', 'getLoadBalancingParams',
    ## 'getLocalJNDIName', 'getName', 'getNotes', 'getProxyClass', 'getSecurityParams', 'getSubDeploymentName', 'getTransactionParams',
    ## 'hashCode', 'isDefaultTargetingEnabled', 'isProxyClass', 'isSet', 'loadBalancingParams', 'localJNDIName', 'name', 'newProxyInstance', 'notes',
    ## 'notify', 'notifyAll', 'securityParams', 'setDefaultTargetingEnabled', 'setJNDIName', 'setLocalJNDIName', 'setName', 'setNotes',
    ## 'setSubDeploymentName', 'subDeploymentName', 'toString', 'transactionParams', 'unSet', 'wait']
    ## If I try to invoke any method related to transactionParams, I've got a null pointer exception
    ==================
    Ok, now I'll use the web admin console to edit the transaction parameters : I start the Weblogic Server and go to the web-based Administration console.
    In the Domain Structure tree, I go to base_domain > Services > Messaging > JMS Modules.
    Then I click on my 'TestModule' module and then on my 'TestConnFactory' Connection Factory.
    I go in the 'Transaction' tab and I enable the XAConnectionFactory checkbox.
    Finally, I click on the save button.
    Let's start a new WLST Offline session and see what's new :
    ==================
    ## Read the domain
    readDomain('Oracle/Middleware/user_projects/domains/base_domain/')
    ## Check what is defined in my ConnectionFactory
    cd ('/JMSSystemResource/TestModule/JmsResource/NO_NAME_0/ConnectionFactory/TestConnFactory')
    ls()
    ## Hey look, the TransactionParams appeared :
    ## drw- TransactionParams
    ## -rw- DefaultTargetingEnabled true
    ## -rw- JNDIName someJNDIName
    ## -rw- LocalJNDIName null
    ## -rw- Name TestConnFactory
    ## -rw- Notes null
    ## -rw- SubDeploymentName null
    ## Go in there :
    cd('TransactionParams/NO_NAME_0')
    ls()
    ## -rw- TransactionTimeout 3600
    ## -rw- XAConnectionFactoryEnabled                    true
    ==================
    So :
    - Why the TransactionParams setting is not directly created or available when a new ConnectionFactory is created ?
    - How can I create a JMS ConnectionFactory and edit its TransactionParams using only WLST Offline (i.e., without the admin console and without WSLT online) ?
    Any help appreciated,
    Thanks !

    Ok, I found a solution :
    =============
    cd ('/JMSSystemResource/TestModule/JmsResource/NO_NAME_0/ConnectionFactory/TestConnFactory')
    create('DUMMY', 'TransactionParams')
    ls('TransactionParams/NO_NAME_0')
    ## -rw- TransactionTimeout 0
    ## -rw- XAConnectionFactoryEnabled false
    =============
    But it seems strange to have to create a dummy TransactionParams. Is it the correct way to do it ?

  • [WLST offline] How to create a JMSJDBCStore?

    How do I create a JMSJDBCStore using WLST offline?
    I would expect the following code line to work:
    mrjStore = create('myStore', 'JMSJDBCStore')
    Unfortunately I get a Java exception when I execute the code.
    I can create JMSFileStores without problems.
    Rgds,
    Henrik

    Hello Henrik,
    The code you used to create a JMSJDBCStore is correct. I think the
    problem is that you did not have the required JDBCConnectionPools before
    this line. At least one pool should be available before you can create a
    JMSJDBCStore. This kind of check is enforced for some other operations.
    One example is that you can't create a JDBCMultiPool if you do not have
    a JDBCConnectionPool. Below is an example of JMSJDBCStore creation that
    works:
    readTemplate('c:/bea813/weblogic81/common/templates/domains/wls.jar')
    cd('Security/mydomain/User/weblogic')
    set('Password', 'weblogic')
    cd('/')
    pool=create('myPool', 'JDBCConnectionPool')
    cd('JDBCConnectionPool/myPool')
    set('DriverName', 'oracle.jdbc.driver.OracleDriver')
    set('URL',
    'jdbc:oracle:thin:@my-oracle-server:my-oracle-server-port:my-oracle-sid')
    set('Properties', 'user=scott')
    set('Password', 'tiger')
    cd('/')
    store=create('myStore', 'JMSJDBCStore')
    store.setConnectionPool(pool)
    store.setPrefixName('myPoolPre')
    writeDomain('d:/temp/domains/wls/wls_0709')
    closeTemplate()
    exit()
    BTW, I have changed the exception message to make this cause clearer but
    the dev2dev post would not have this update for some time.
    Thanks,
    -satya
    Henrik S. Pedersen wrote:
    >
    >
    >
    How do I create a JMSJDBCStore using WLST offline?
    I would expect the following code line to work:
    mrjStore = create('myStore', 'JMSJDBCStore')
    Unfortunately I get a Java exception when I execute the code.
    I can create JMSFileStores without problems.
    Rgds,
    Henrik

  • WLST offline configuration

    Hi
    I am trying to add an authenticator (LDAP) in the WLST offline configuration script.
    Basically, pretty simple
    e.g.
    cd('/')
    cd('Security/mydomain')
    cd('User/weblogic')
    cmo.setPassword('weblogic')
    #mytest=create('testIPlanetProvider','com.bea.providers.IPlanetAuthenticator')
    But, I dont seem to be able to create the authenticator. I am using wls sp4 and trying to create a WLS domain. I am also, using WLST offline.
    Any help would be appreciated.
    Thanks
    Ronnie

    Hello Ronnie,
    Configuring 3rd party security providers via wlst offline is not possible, please use online wlst.
    Thanks,
    -satya

  • WLST offline - Changing AdminServer name

    Using WLST offline to create a domain by reading a template.
    This creates a default admin server with name AdminServer.
    Is there anyway to change the admin server's name from AdminServer to something else using WLST? or is there a way to override the default value?
    Thanks

    What is the problem?
    <i><b>cd('/Servers/AdminServer')
    set('Name','myName')</b></i>

  • Create() method in WLST Offline

    Can I create an Authentication Provider using WLST offline?
    I know how to do this online but in offline mode it doesn't work!:-(
    And what is the full list of types i can create using WLST offline?

    Here is the function:
    <p><i>def createSomeAuthenticationProvider(beanName):
    cd('/SecurityConfiguration/myDomain/Realms/myrealm')<br>
    theBean = cmo.lookupAuthenticationProvider(beanName)<br>
    if theBean == None:<br>
    cmo.createAuthenticationProvider(beanName,<b>"com.someCompany.SomeAuthenticationProvider"</b>)</i></p>
    And you also should set the parameter <b>-Dweblogic.alternateTypesDirectory=[path to archive with your provider class]</b> to make Provider type visible to weblogic

  • WLST Offline Assign Application component

    Hi, this is what I can do
    assign('AppDeployment.SubDeployment','MyApp.*', 'Target', 'cluster1')
    but if I try to do this I get an error
    assign('AppDeployment.SubDeployment','MyApp.MyFaxEmailProcessSendingEjb.jar', 'Target', 'cluster1')
    here is the error
    assign() failed. Do dumpStack() to see details
    dumpStack()
    com.bea.plateng.domain.script.jython.WLSTException: com.bea.plateng.domain.script.ScriptException: U
    nable to find the specified application or service
    at com.bea.plateng.domain.script.jython.CommandExceptionHandler.handleException(CommandExcep
    tionHandler.java:51)
    at com.bea.plateng.domain.script.jython.WLScriptContext.handleException(WLScriptContext.java
    :1333)
    at com.bea.plateng.domain.script.jython.WLScriptContext.assign(WLScriptContext.java:859)
    at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)L
    java.lang.Object;(Unknown Source)
    at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;
    (Unknown Source)
    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:248)
    at org.python.core.PyObject.invoke(PyObject.java:2016)
    at org.python.pycode._pyx5.assign$10(C:\WINNT\Temp\WLSTOfflineIni9379.py:62)
    at org.python.pycode._pyx5.call_function(ILorg.python.core.PyFrame;)Lorg.python.core.PyObjec
    t;(C:\WINNT\Temp\WLSTOfflineIni9379.py:???)
    at org.python.core.PyTableCode.call(PyTableCode.java:208)
    at org.python.core.PyTableCode.call(PyTableCode.java:404)
    at org.python.core.PyFunction.__call__(PyFunction.java:184)
    at org.python.core.PyObject.__call__(PyObject.java:314)
    at org.python.pycode._pyx434.f$0(<console>:1)
    at org.python.pycode._pyx434.call_function(ILorg.python.core.PyFrame;)Lorg.python.core.PyObj
    ect;(<console>:???)
    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.core.Py.exec(Py.java:1157)
    at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:148)
    at org.python.util.InteractiveInterpreter.runcode(InteractiveInterpreter.java:89)
    at org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java:70)
    Caused by: com.bea.plateng.domain.script.ScriptException: Unable to find the specified application o
    r service
    at com.bea.plateng.domain.script.ScriptExecutor.doSvcAssignmentByName(ScriptExecutor.java:27
    98)
    at com.bea.plateng.domain.script.ScriptExecutor.processAssignmentByName(ScriptExecutor.java:
    1302)
    at com.bea.plateng.domain.script.jython.WLScriptContext.assign(WLScriptContext.java:855)
    at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)L
    java.lang.Object;(Unknown Source)
    at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;
    (Unknown Source)
    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:248)
    at org.python.core.PyObject.invoke(PyObject.java:2016)
    at org.python.pycode._pyx5.assign$10(C:\WINNT\Temp\WLSTOfflineIni9379.py:62)
    at org.python.pycode._pyx5.call_function(ILorg.python.core.PyFrame;)Lorg.python.core.PyObjec
    t;(C:\WINNT\Temp\WLSTOfflineIni9379.py:???)
    at org.python.core.PyTableCode.call(PyTableCode.java:208)
    at org.python.core.PyTableCode.call(PyTableCode.java:404)
    at org.python.core.PyFunction.__call__(PyFunction.java:184)
    at org.python.core.PyObject.__call__(PyObject.java:314)
    at org.python.pycode._pyx434.f$0(<console>:1)
    at org.python.pycode._pyx434.call_function(ILorg.python.core.PyFrame;)Lorg.python.core.PyObj
    ect;(<console>:???)
    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.core.Py.exec(Py.java:1157)
    at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:148)
    at org.python.util.InteractiveInterpreter.runcode(InteractiveInterpreter.java:89)
    at org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java:70)
    at org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java:44)
    at weblogic.management.scripting.WLST.main(WLST.java:142)
    I wonder why because the subDployment (component) is really there...
    please help
    Message was edited by:
    Ashanty

    Hello Henrik,
    It should be "assign servers to a machine". So the code will look like:
    create('BEA_Server', 'Server')
    create('myMachine', 'Machine')
    assign('Server', 'BEA_Server','Machine', 'myMachine')
    Thanks,
    -satya
    Henrik S. Pedersen wrote:
    I've created machines and servers using WLST offline on Weblogic 8.1sp2.
    How do I assign a machine to a server?
    I would expect something like:
    assign ("Machine","machinea","Server","servera")
    "machinea" is the machine that I created, and "servera" is the server.
    Unfortunately this does not work. I get the following error message:
    "Cannot recognize the service assignment type: machine_server"
    Kind regards,
    Henrik

  • [WLST offline] How to assign machines to servers?

    I've created machines and servers using WLST offline on Weblogic 8.1sp2.
    How do I assign a machine to a server?
    I would expect something like:
    assign ("Machine","machinea","Server","servera")
    "machinea" is the machine that I created, and "servera" is the server.
    Unfortunately this does not work. I get the following error message:
    "Cannot recognize the service assignment type: machine_server"
    Kind regards,
    Henrik

    Hello Henrik,
    It should be "assign servers to a machine". So the code will look like:
    create('BEA_Server', 'Server')
    create('myMachine', 'Machine')
    assign('Server', 'BEA_Server','Machine', 'myMachine')
    Thanks,
    -satya
    Henrik S. Pedersen wrote:
    I've created machines and servers using WLST offline on Weblogic 8.1sp2.
    How do I assign a machine to a server?
    I would expect something like:
    assign ("Machine","machinea","Server","servera")
    "machinea" is the machine that I created, and "servera" is the server.
    Unfortunately this does not work. I get the following error message:
    "Cannot recognize the service assignment type: machine_server"
    Kind regards,
    Henrik

  • Creating Global Roles in 9.1 using WLST

    Hi,
    Did anyone try creating Global Roles in Weblogic 9.1 ?
    Since in Weblogic 9.1, the Authorizer and Role Mapper providers are XACML based, I am not sure if we can use WLST offline to create global roles.
    Can someone please shed some light on this.
    Thanks -agreddy

    As far as i know you could never create roles via WLST offline, only via WLST online.
    Thanks,
    -satya
    BEA Blog: http://dev2dev.bea.com/blog/sghattu/

Maybe you are looking for