This chapter describes how to create a new compact domain. This will create a new Oracle WebLogic Server domain and deploy the Oracle Virtual Assembly Builder Deployer Web application to an Admin Server.
This chapter contains the following sections:
A compact domain is not recommended for production purposes, and is not an officially supported configuration. You cannot create a compact domain through the Oracle WebLogic Server configuration wizard, but must instead create the compact domain manually. The Deployer is targeted to the Admin Server; no managed servers or a database are required.
To run the script to create a compact domain:
Copy the following script to the host where you installed WLS: create_ovab_deployer_domain.py.
#!/usr/bin/python
import os, sys
domainMode = 'Compact'
deployerDomainName = 'base_domain'
deployerDomain = '/<path>/user_projects/domains/base_domain'
deployerTemplateJar = '/<path>/ovab/common/templates/wls/oracle.ovab.deployer.template_12.1.2.jar'
wlsTemplateJar = '/<path>/wlserver/common/templates/wls/wls.jar'
jrfTemplateJar = '/<path>/wlserver/common/templates/wls/wls_jrf.jar'
hostName = 'example.com'
listenPort = 6868
sslListenPort = 6969
readTemplate(wlsTemplateJar, domainMode)
# configure Admin Server
cd('/Security/base_domain/User/weblogic')
cmo.setPassword('welcome1')
cd('/Server/AdminServer')
cmo.setName('AdminServer')
cmo.setStuckThreadMaxTime(1800)
cmo.setListenPort(listenPort)
cmo.setListenAddress(hostName)
create('AdminServer','SSL')
cd('SSL/AdminServer')
cmo.setEnabled(true)
cmo.setListenPort(sslListenPort)
cmo.setHostnameVerificationIgnored(true)
cmo.setHostnameVerifier(None)
cmo.setTwoWaySSLEnabled(false)
writeDomain(deployerDomain)
closeTemplate()
dumpStack()
readDomain(deployerDomain)
addTemplate(jrfTemplateJar)
addTemplate(deployerTemplateJar)
cd('/SecurityConfiguration/' + deployerDomainName)
cmo.setUseKSSForDemo(false)
updateDomain()
closeDomain()
dumpStack()
exit()
Edit the script and replace the paths, hostname and port numbers with values appropriate to your environment.
Run the script using WLST:
<mw home>/oracle_common/common/bin/wlst.sh create_ovab_deployer_domain.py