Create a ALSB 3.0 domain using WLST

Hi,
I have created a ALSB domain using config.sh and then I used the following script to create the template
# create doman template
readDomain('/usr/local/bea/user_projects/domains/z2esbadmin')
writeTemplate('/home/was/work/wlst/z2esbadminTemplate.jar')
exit()
The template jar file is created successfully without any warning/error
When I tried to create the domain using the template with the following comand:
createDomain('z2esbadminTemplate.jar','/home/was/work/user_projects/domains/z2esb', 'weblogic', 'weblogic')
exit()
I got the following error message:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
Error: create() failed. Do dumpStack() to see details.
Problem invoking WLST - Traceback (innermost last):
File "/home/mcas/weblogic/wlst/createEsbDomain.py", line 1, in ?
File "/tmp/WLSTOfflineIni25221.py", line 96, in createDomain
com.bea.plateng.domain.script.jython.WLSTException: com.bea.plateng.domain.script.ScriptException: com.bea.plateng.domain.ValidateException: Property "User name" of User with original name "" is invalid. The property value is duplicated.
at com.bea.plateng.domain.script.jython.CommandExceptionHandler.handleException(CommandExceptionHandler.java:51)
at com.bea.plateng.domain.script.jython.WLScriptContext.handleException(WLScriptContext.java:1468)
at com.bea.plateng.domain.script.jython.WLScriptContext.create(WLScriptContext.java:672)
at com.bea.plateng.domain.script.jython.WLScriptContext.createDomain(WLScriptContext.java:507)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:160)
at org.python.core.PyMethod.__call__(PyMethod.java:96)
at org.python.core.PyObject.__call__(PyObject.java:248)
at org.python.core.PyObject.invoke(PyObject.java:2016)
at org.python.pycode._pyx5.createDomain$21(/tmp/WLSTOfflineIni25221.py:96)
at org.python.pycode._pyx5.call_function(/tmp/WLSTOfflineIni25221.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._pyx18.f$0(/home/mcas/weblogic/wlst/createEsbDomain.py:1)
at org.python.pycode._pyx18.call_function(/home/mcas/weblogic/wlst/createEsbDomain.py)
at org.python.core.PyTableCode.call(PyTableCode.java:208)
at org.python.core.PyCode.call(PyCode.java:14)
at org.python.core.Py.runCode(Py.java:1135)
at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:167)
at weblogic.management.scripting.WLST.main(WLST.java:106)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at weblogic.WLST.main(WLST.java:29)
Caused by: com.bea.plateng.domain.script.ScriptException: com.bea.plateng.domain.ValidateException: Property "User name" of User with original name "" is invalid. The property value is duplicated.
at com.bea.plateng.domain.script.ScriptExecutor.create(ScriptExecutor.java:897)
at com.bea.plateng.domain.script.jython.ScriptProxyFactory.deepCreateProxy4SecurityType(ScriptProxyFactory.java:135)
at com.bea.plateng.domain.script.jython.WLScriptContext.create(WLScriptContext.java:646)
... 27 more
Caused by: com.bea.plateng.domain.ValidateException: Property "User name" of User with original name "" is invalid. The property value is duplicated.
at com.bea.plateng.domain.aspect.XBeanConfigAspect.selfValidate(XBeanConfigAspect.java:630)
at com.bea.plateng.domain.aspect.AbstractConfigAspect.validate(AbstractConfigAspect.java:1130)
at com.bea.plateng.domain.aspect.AbstractConfigAspect.selfSetValue(AbstractConfigAspect.java:1615)
at com.bea.plateng.domain.aspect.AbstractConfigAspect.setValueInternal(AbstractConfigAspect.java:1574)
at com.bea.plateng.domain.aspect.AbstractConfigAspect.setValue(AbstractConfigAspect.java:748)
at com.bea.plateng.domain.aspect.AbstractConfigAspect.setValue(AbstractConfigAspect.java:757)
at com.bea.plateng.domain.aspect.FilteredConfigAspect.setValue(FilteredConfigAspect.java:431)
at com.bea.plateng.domain.operation.HTableEditOperation.createSimpleConfigAspects(HTableEditOperation.java:265)
at com.bea.plateng.domain.operation.HTableEditOperation.createSimpleConfigAspects(HTableEditOperation.java:221)
at com.bea.plateng.domain.script.ScriptExecutor.create(ScriptExecutor.java:873)
... 29 more
Caused by: java.beans.PropertyVetoException: The property value is duplicated.
at com.bea.plateng.domain.event.aspect.UniqueValueValidateListener.valueChanged(UniqueValueValidateListener.java:127)
at com.bea.plateng.domain.event.aspect.ConfigAspectValueListener.vetoableChange(ConfigAspectValueListener.java:138)
at com.bea.plateng.common.comdev.MVetoableChangeSupport.fireVetoableChange(MVetoableChangeSupport.java:189)
at com.bea.plateng.common.comdev.MVetoableChangeSupport.fireVetoableChange(MVetoableChangeSupport.java:156)
at com.bea.plateng.common.comdev.MVetoableChangeSupport.fireVetoableChange(MVetoableChangeSupport.java:139)
at com.bea.plateng.domain.aspect.XBeanConfigAspect.selfValidate(XBeanConfigAspect.java:620)
... 38 more
com.bea.plateng.domain.script.jython.WLSTException: com.bea.plateng.domain.script.jython.WLSTException: com.bea.plateng.domain.script.ScriptException: com.bea.plateng.domain.ValidateException: Property "User name" of User with original name "" is invalid. The property value is duplicated.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
I did exactly the same thing for a normal weblogic domain (not alsb) and it works fine. Do I have to do something different for creating ALSB 3.0 domain?
Thanks,
Nathan

Well, we've had exactly the same issues.
From our experience even the most trivial tasks involving ALSB/OSB, WLST and Templates fail. Not just a single error, but every time we've tried something different to work around an issue we came across the script blew up with yet another error. After a couple of painful days we came to the conclusion that at least with WL10/ALSB3 templates and scripting are just too premature and too buggy to be of any use.
And at least from the ALSB Release Notes and Metalink it doesn't look like these issues have been addressed with subsequent releases.
We've resorted to creating the domain from scratch instead of using templates of our own domains created with the config wizard.
Cheers,
Jan

Similar Messages

  • 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

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

  • Creating a new domain using WLST

    Hi,
    I am trying to write a WLST script to create a new domain without using an existing template. (Similar to the first option of "Generate a domain configured automatically to support the following BEA products" option when using the domain configuration wizrd). I found the createDomain command but am not able to see an option to create a domain without using a template. Does anyone know if I can create a domain without using a template? Here is the command and its syntax.
    createDomain(domainTemplate, domainDir, user, password)
    Can I skip the domainTemplate section to create a new domain without basing it on an existing one?
    Thanks.

    You might be able to use configToScript but you would have to be connected.
    <siva01> wrote in message news:[email protected]..
    Hi,
    I am trying to write a WLST script to create a new domain without using an
    existing template. (Similar to the first option of "Generate a domain
    configured automatically to support the following BEA products" option when
    using the domain configuration wizrd). I found the createDomain command but
    am not able to see an option to create a domain without using a template.
    Does anyone know if I can create a domain without using a template? Here is
    the command and its syntax.
    createDomain(domainTemplate, domainDir, user, password)
    Can I skip the domainTemplate section to create a new domain without basing
    it on an existing one?
    Thanks.

  • How to create a JMS persistent file store using WLST in WLS 9.0?

    Anybody have a good example of this? When I try to create a fileStore and set it on my jms server I am getting the following error: "TypeError: setPersistentStore(): 1st arg can't be coerced to weblogic.management.configuration.PersistentStoreMBean'
    Thanks :)

    Hi,
    First Create Persistent Store ( FileStore / JDBCStore).
    File Store Creation is as follows:
    Store = create("PStore","FileStore")
    Set it's File Directory and Targets.
    then Create JMS Server and set its Persistent Store as File Store. Set JMS Server Target.

  • OSB  - Creating SLA Alerts using WLST

    Hi,
    I'd like to create SLA Alerts on proxy services using WLST rather than via the service bus console.
    The MBean described at:
    http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/javadoc/com/bea/wli/sb/management/configuration/ProxyServiceConfigurationMBean.html
    only seem to allow enabling or disabling SLA alerts not creating them.
    Can anyone point me in the right direction?
    Thanks
    Nick

    Please refer -
    http://blogs.oracle.com/MarkSmith/entry/osb_alerts_purging_is_essentia
    From the blog -
    The components that make up WLDF will be targeted to a single managed server in a clustered environment or to the Admin server in a single server environment. To establish what managed server this is, check to see where the WLI Aggregator application is targeted to. The WLDF data will be stored under this single managed server in the following location: //domain_name/servers/server_name/data/store/diagnostics/Check that on which server WLI Aggregator application is targeted and connect to that server from your script.
    Regards,
    Anuj

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

  • SOA Domain using Silent mode

    Hi
    Can anybody tell me how to create a SOA domain using WLST?
    --Thanks in Advance                                                                                                                                                                               

    Hi
    I am getting the below exception any idea?
    Error: readTemplate() failed. Do dumpStack() to see details.
    Problem invoking WLST – Traceback (innermost last):
    File “c:\oracle\silentdomain.py”, line 3, in ?
    File “C:\Users\test\AppData\Local\Temp\WLSTOfflineIni1709266438475496258.py
    “, line 17, in readTemplate
    The template to read must be a jar file containing a valid domain configuration
    at com.oracle.cie.domain.script.jython.CommandExceptionHandler.handleExc
    eption(CommandExceptionHandler.java:51)
    at com.oracle.cie.domain.script.jython.WLScriptContext.handleException(W
    LScriptContext.java:1538)
    at com.oracle.cie.domain.script.jython.WLScriptContext.readTemplate(WLSc
    riptContext.java:340)
    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)
    com.oracle.cie.domain.script.jython.WLSTException: com.oracle.cie.domain.script.
    jython.WLSTException: com.oracle.cie.domain.script.ScriptException: unable to pa
    rse “template-info.xml” from template jar “C:\oracle\wlserver_10.3\common\templates\domains\wls.jar
    The template to read must be a jar file containing a valid domain configuration

  • Error while packing domain using pack.cmd

    Hi,
    I am trying to pack my domain from HOST A using command :
    pack -managed=true -domain=C:\Oracle\Middleware\user_projects\domains\Edlink -template=C:\Oracle\edlink.jar -log=c:\oracle\edlink.log -template_name="template_name"
    and wants to unpack it on HOST B
    But I am able to see below errors in my pack log file:
    2014-09-01 16:52:57,825 INFO  [runScript] com.bea.plateng.domain.script.ScriptExecutor - read domain from "C:\Oracle\Middleware\user_projects\domains\Edlink"
    2014-09-01 16:52:59,672 ERROR [runScript] com.bea.plateng.domain.jdbc.TemplateDatabaseInfoHelper - FATAL ERROR: database.xml validation error!
    2014-09-01 16:52:59,673 ERROR [runScript] com.bea.plateng.domain.jdbc.TemplateDatabaseInfoHelper - database XML parsing failed: error: cvc-complex-type.2.4a: Expected element 'sql-statement@http://xmlns.oracle.com/weblogic/template-database' instead of 'datasource-mapping@http://xmlns.oracle.com/weblogic/template-database' here in element test@http://xmlns.oracle.com/weblogic/template-database
    2014-09-01 16:52:59,673 ERROR [runScript] com.bea.plateng.domain.jdbc.TemplateDatabaseInfoHelper - fail to parse database.xml
    java.lang.Exception: Database.xml validation failed.
    at com.bea.plateng.domain.jdbc.TemplateDatabaseInfoHelper.parseTemplateDatabaseInfo(TemplateDatabaseInfoHelper.java:582)
    at com.bea.plateng.domain.TemplateBuilder.parseDomainDirectory(TemplateBuilder.java:835)
    at com.bea.plateng.domain.TemplateBuilder.buildDomainTemplate(TemplateBuilder.java:1342)
    at com.bea.plateng.domain.TemplateBuilder.buildNewDomainTemplate(TemplateBuilder.java:1287)
    at com.bea.plateng.domain.TemplateBuilder.buildNewDomainTemplate(TemplateBuilder.java:1279)
    at com.bea.plateng.domain.script.ScriptExecutor.readTemplate(ScriptExecutor.java:416)
    at com.bea.plateng.domain.script.ScriptParserClassic$StateMachine.processRead(ScriptParserClassic.java:524)
    at com.bea.plateng.domain.script.ScriptParserClassic$StateMachine.execute(ScriptParserClassic.java:428)
    at com.bea.plateng.domain.script.ScriptParserClassic.parseAndRun(ScriptParserClassic.java:150)
    at com.bea.plateng.domain.script.ScriptParserClassic.doExecute(ScriptParserClassic.java:113)
    at com.bea.plateng.domain.script.ScriptParser.execute(ScriptParser.java:73)
    at com.bea.plateng.domain.script.ScriptParser.execute(ScriptParser.java:36)
    at com.bea.plateng.wizard.domain.helpers.Executor.runSilentScript(Executor.java:66)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.bea.plateng.wizard.domain.silent.tasks.RunScriptTask.runScriptWithExecutor(RunScriptTask.java:552)
    at com.bea.plateng.wizard.domain.silent.tasks.RunScriptTask.execute(RunScriptTask.java:336)
    at com.bea.plateng.wizard.silent.tasks.AbstractSilentTask.run(AbstractSilentTask.java:28)
    at java.lang.Thread.run(Thread.java:662)
    2014-09-01 16:53:00,446 WARN  [runScript] com.bea.plateng.domain.aspect.XBeanConfigAspect - Unable to locate property:Target on type:class com.bea.plateng.domain.xml.configxb.impl.MachineTypeImpl
    2014-09-01 16:53:00,451 WARN  [runScript] com.bea.plateng.domain.aspect.XBeanConfigAspect - Unable to locate property:Target on type:class com.bea.plateng.domain.xml.configxb.impl.ClusterTypeImpl
    2014-09-01 16:53:00,451 WARN  [runScript] com.bea.plateng.domain.aspect.XBeanConfigAspect - Unable to locate property:Target on type:class com.bea.plateng.domain.xml.configxb.impl.ServerTypeImpl
    2014-09-01 16:53:00,451 WARN  [runScript] com.bea.plateng.domain.aspect.XBeanConfigAspect - Unable to locate property:Target on type:class com.bea.plateng.domain.xml.configxb.impl.ServerTypeImpl
    2014-09-01 16:53:00,482 INFO  [runScript] com.bea.plateng.domain.script.ScriptExecutor - succeed: read domain from "C:\Oracle\Middleware\user_projects\domains\Edlink"
    2014-09-01 16:53:00,484 INFO  [runScript] com.bea.plateng.domain.script.ScriptExecutor - set config option Managed to "true"
    2014-09-01 16:53:00,532 INFO  [runScript] com.bea.plateng.domain.script.ScriptExecutor - succeed: set config option Managed to "true"
    2014-09-01 16:53:00,534 INFO  [runScript] com.bea.plateng.domain.script.ScriptExecutor - write template to "C:\Oracle\edlink.jar"
    2014-09-01 16:53:03,449 INFO  [Thread-1] com.bea.plateng.domain.TemplateGenerator - Template Generation Successfull!
    2014-09-01 16:53:03,480 INFO  [runScript] com.bea.plateng.domain.script.ScriptExecutor - succeed: write template to "C:\Oracle\edlink.jar"
    2014-09-01 16:53:03,481 INFO  [runScript] com.bea.plateng.domain.script.ScriptExecutor - close template
    2014-09-01 16:53:03,481 INFO  [runScript] com.bea.plateng.domain.script.ScriptExecutor - succeed: close template
    I have faced this problem earlier also but that time I used tar.sh and untar.sh scripts provided by our engineering team, but this time I don't have.
    also it seems there is some ongoing bug with pack.sh/cmd & unpack.sh/cmd
    thus it fails to compress the domain into a jar everytime
    FYI: I am using
    WebLogic server with portal 10.3.2
    with DB as MSSQL Server
    on windows platform
    Solution to this post would be appreciable.
    Thanks
    Punit

    The issue seems to be similar to this bug:
    Bug 13624207 - ISSUE WHEN USING PACK/UNPACK COMMAND WHILE CREATING DOMAIN USING WLST.
    Please try posting here:
    WebLogic Portal
    Best Regards
    Luz

  • How to set XPoweredByHeaderLevel to NONE using wlst

    How to set XPoweredByHeaderLevel to NONE using wlst (by default the value is SHORT).
    I mean, I have created a domain using wlst.
    Now I want to set XPoweredByHeaderLevel of WebAppContainerMBean to NONE using wlst.
    It will be helpful if a sample python(Jython) script is provided.
    Please help.

    Here is a quick Jython example of how to do what you want:
    #assuming you already have correct imports for wlst module
    #connect to the AdminServer using proper credentials and host information
    wlst.connect(username, password, host_info)
    #extract domain name
    domainName = wlst.domainName
    #start an edit session and navigate to the WebAppContainerMBean
    wlst.edit()
    wlst.cd("/WebAppContainer/" + domainName)
    wlst.startEdit()
    #set the value of the XPoweredByHeaderLevel attribute to "NONE"
    wlst.cmo.setXPoweredByHeaderLevel("NONE")
    #activate the change
    wlst.activate()

  • Automatic Generation of JMS event generator using WLST script

    is there any way to create and deploy JMS event generator using WLST script. i am using weblogic server 10.3.1

    You could see this informantion here:
    http://docs.oracle.com/cd/E14981_01/wli/docs1031/deploy/cluster.html#wp1519038

  • Help creating project specific ALSB Customization file using WLST

    I asked this question in August in another forum and was redirected here, but never followed up. I'm hopeful someone has done this...
    Is it possible to create an ALSB CUstomization file for a single project using WLST?
    If so, does anyone have an example they would be wiling to share. I've been beating my head against the wall for almost 2 days (well, months now...) , and I'm REALLy starting to get a headache from it now....
    We're running WLS 9.2 MP2 and ALSB 2.6 RP1
    Any help is greatly appreciated,
    Brian

    Brian, OSB specific questions are best directed in the SOA Suite forum:
    SOA Suite
    It looks like there is an ALSBConfigurationMBean with a customize method, but I have not worked with it and it does not sound like that will give you precisely what you want:
    http://edocs.bea.com/alsb/docs261/javadoc/com/bea/wli/sb/management/configuration/ALSBConfigurationMBean.html#customize(java.util.List)

  • 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

  • Using WLST from jython to create a new domain

    Hi,
    I am trying to create a new domain using the description outlined in the blog of Mr. Satya Ghattu. But I must be overlooking something REALLY basic.
    I have created this script which should create a new domain:
    import wl as myWLST
    #import os, re, java
    #from os.path import dirname, exists, splitext, join
    #from zipfile import ZipFile, ZIP_DEFLATED
    #Common defines
    password = 'weblogic'
    #Create the server see http://dev2dev.bea.com/blog/sghattu/archive/2005/10/wlst_beaworld_s.html
    def createServerDomain(templateFile, domainHome):
        """Create the server using the normal template"""
        print "Setting up the server"
        # Read the default template that comes with WLS installation
        myWLST.readTemplate(templateFile)
        myWLST.cd("Security/base_domain/User/weblogic")
        myWLST.cmo.setUserPassword(password)
        myWLST.setOption('OverwriteDomain', "true")
        myWLST.cd("/")
        myWLST.cd("Servers/AdminServer")
        myWLST.cmo.setName("myserver")
        myWLST.writeDomain(domainHome)
        myWLST.closeTemplate()
    createServerDomain("~/bea/bea100/wlserver_10.0/common/templates/domains/wls.jar", "~/bea/bea100/user_projects/domains/scriptcreated");The script runs until the line containing
      myWLST.cmo.setUserPassword(password)where it fails with the error:
      Setting up the server
      Traceback (innermost last):
        File "bea.py", line 24, in ?
        File "bea.py", line 16, in createServerDomain
      AttributeError: setUserPasswordDoes anybody have any ideas as to what could cause this???
    The wls version I am trying this on is WLS 10.0 on a Fedora core 6 linux box.
    I am starting the script as:
      java -classpath $BEA_HOME/wlserver_10.0/server/lib/weblogic.jar:~/bea/bea100/wlserver_10.0/common/lib/jython.jar org.python.util.jython bea.pywhere bea.py is the script.
    Any help will be vastly appreciated :)
    Take care.

    Hi,
    I was also faced the same problem using Jython in 9.2. But it got resolved by giving username as "weblogic" and password as "weblogic". Because the template what we are using has predefined username and password. Except weblogic it wont accept any other words.
    --Nag..,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

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

Maybe you are looking for