0 Replies Latest reply: Aug 29, 2014 12:18 AM by 2647753 RSS

    How to create a OSB12c domain using WLST script?

    2647753

      domainDir=sys.argv[1]

      domainName=sys.argv[2]

      template=sys.argv[3]

      server=sys.argv[4];

      port=sys.argv[5];

      user=sys.argv[6];

      password=sys.argv[7];

       

       

      print "args = " + str(sys.argv);

       

       

      #setOption("NoDependencyCheck", true)

      readTemplate(template)

      addTemplate("c:\\Oracle\\WebLogic_12.1.3\\osb\\common\\templates\\wls\\oracle.osb_template_12.1.3.jar")

       

      print ("setting the domain name to " + domainName)

      cd('/')

      set('Name', domainName)

       

       

      print( "configuring server " + server + " at port " +port)

      cd('Servers/'+server)

      set('Name', server)

      set('ListenAddress','')

      set('ListenPort',int(port))

       

      print("WL: Set credentials "+user+":"+password + " on domain " + domainName)

      cd('/')

      cd('Security/'+domainName+'/User/'+user )

      set('Name', user)

      cmo.setPassword(password)

       

       

      setOption('OverwriteDomain', 'true')

      writeDomain(domainDir)

       

      ==================================================

      Above is my script

      Below is the error information.  Can anyone helps? 

      Thanks.

      ===================================================

      args = ['C:\\btm\\dev\\EMaaS\\emcapms\\scripts\\wlst\\createOSBDomain.py', 'C:\\Oracle\\WebLogic_12.1.3\\user_projects\\domains\\apmaasOSBDomain', 'apmaasOSBDomain', 'C:\\Oracle\\WebLogic_12.1.3\\wlserver\\comm

      on\\templates\\wls\\wls.jar', 'AdminServer', '9001', 'weblogic', 'welcome1']

      template read

      setting the domain name to apmaasOSBDomain

      configuring server AdminServer at port 9001

      WL: Set credentials weblogic:welcome1 on domain apmaasOSBDomain

      Error: writeDomain() failed. Do dumpStack() to see details.

      Problem invoking WLST - Traceback (innermost last):

        File "C:\btm\dev\EMaaS\emcapms\scripts\wlst\createOSBDomain.py", line 43, in ?

        File "C:\Users\lliyu\AppData\Local\Temp\WLSTOfflineIni326453645186376993.py", line 73, in writeDomain

       

       

      Domain Location: C:\Oracle\WebLogic_12.1.3\user_projects\domains\apmaasOSBDomain

       

       

      Reason: oracle.security.opss.tools.lifecycle.LifecycleException: JDBC password for opss-data-source is missing for configuring security store to database.

       

       

      Exception:

       

       

      oracle.security.opss.tools.lifecycle.LifecycleException: JDBC password for opss-data-source is missing for configuring security store to database.

       

       

              at com.oracle.cie.domain.script.jython.CommandExceptionHandler.handleException(CommandExceptionHandler.java:56)

                                                                                                                              at com.oracle.cie.domain.script.jython.WLScriptContext.handleException(WLScriptContext.java:2279)

                                                                                                                                                              at com.oracle.cie.domain.script.jython.WLScriptContext.writeDomain(WLScriptContext.java:1392)

                                                                                                                                                              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)

       

       

      com.oracle.cie.domain.script.jython.WLSTException: com.oracle.cie.domain.script.jython.WLSTException: com.oracle.cie.domain.script.ScriptException: Domain Creation Failed!

       

       

      Domain Location: C:\Oracle\WebLogic_12.1.3\user_projects\domains\apmaasOSBDomain

       

       

      Reason: oracle.security.opss.tools.lifecycle.LifecycleException: JDBC password for opss-data-source is missing for configuring security store to database.

       

       

      Exception:

       

       

      oracle.security.opss.tools.lifecycle.LifecycleException: JDBC password for opss-data-source is missing for configuring security store to database.