title: Weblogic domain creating using wlst scripts
body: <p>I'm trying to create a weblogic domain by script. When I create it using config.sh wizard, it works as smoothly as it should. However, when trying to use WLST, I'm getting an error:</p>
  <pre><code>Initializing WebLogic Scripting Tool (WLST) ...
  
  Welcome to WebLogic Server Administration Scripting Shell
  
  Type help() for help on available commands
  
  wls:/offline&gt; selectTemplate('Basic WebLogic Server Domain','12.2.1.1')
  Error: selectTemplate() failed. Do dumpStack() to see details.
  Error: No domain or domain template has been read.
  wls:/offline&gt;selectTemplate('Oracle Service Bus Reference Configuration', '12.2.1.4.0')
  wls:/offline/&gt;loadTemplates()
  wls:/offline/base_domain&gt;
  wls:/offline/base_domain&gt;cd('Servers/AdminServer')
  wls:/offline/base_domain/Server/AdminServer&gt;set('ListenAddress','')
  wls:/offline/base_domain/Server/AdminServer&gt;set('ListenPort', 7001)
  wls:/offline/base_domain/Server/AdminServer&gt;
  wls:/offline/base_domain/Server/AdminServer&gt;create('AdminServer','SSL')
  Proxy for AdminServer: Name=AdminServer, Type=SSL
  wls:/offline/base_domain/Server/AdminServer&gt;cd('SSL/AdminServer')
  wls:/offline/base_domain/Server/AdminServer/SSL/AdminServer&gt;set('Enabled', 'False')
  wls:/offline/base_domain/Server/AdminServer/SSL/AdminServer&gt;set('ListenPort', 7002)
  wls:/offline/base_domain/Server/AdminServer/SSL/AdminServer&gt;
  wls:/offline/base_domain/Server/AdminServer/SSL/AdminServer&gt;cd('/')
  wls:/offline/base_domain&gt;
  wls:/offline/base_domain&gt;cd('Security/base_domain/User/weblogic')
  wls:/offline/base_domain/Security/base_domain/User/weblogic&gt;cmo.setPassword('weblogic123')
  wls:/offline/base_domain/Security/base_domain/User/weblogic&gt;writeDomain('/home/oracle/12.2.1/user_projects/domains/osb25_domain')
  com.oracle.cie.domain.script.ScriptException: 64254: Error occurred in &quot;OPSS Processing&quot; phase execution
  64254: Encountered error: oracle.security.opss.tools.lifecycle.LifecycleException: JDBC password for opss-audit-DBDS is missing for configuring security store to database.
  
  </code></pre>
  <p>Does anyone has a sample script to create a domain with OSB on 12.2?</p>
  <p>@edit:
  After updating templates, like this:</p>
  <pre><code>selectTemplate('Basic WebLogic Server Domain', '12.2.1.3.0')
  selectTemplate('Oracle Service Bus Reference Configuration', '12.2.1.4.0')
  loadTemplates()
  </code></pre>
  <p>I wonder how to specify the password they ask? Any suggestion?</p>
  <p>I get this:</p>
  <pre><code>com.oracle.cie.domain.script.ScriptException: 64254: Error occurred in &quot;OPSS Processing&quot; phase execution
  64254: Encountered error: oracle.security.opss.tools.lifecycle.LifecycleException: JDBC password for opss-audit-DBDS is missing for configuring security store to database.
  
  </code></pre>
  <p>And to be honest, I don't find the documentation very useful.
  <a href="https://docs.oracle.com/middleware/1221/wls/WLSTG/domains.htm#WLSTG406" rel="nofollow noreferrer">https://docs.oracle.com/middleware/1221/wls/WLSTG/domains.htm#WLSTG406</a></p>