Configure a Weblogic Domain with Weblogic Configuration Wizard

Description

We use for this article Oracle WebLogic Server 12c (WLS 12.1.1). Weblogic Configuration Wizard is the tool that Oracle Weblogic Server provides to configure a Domain in Weblogic. It is automatically raise up after the installation process if you check the "Run QuickStart", but you can launch this utility when you want.

Using Weblogic Configuration Wizard

Weblogic Configuration Wizard is placed in the common/bin directory of the weblogic server installation directory

[oracle@oel6 bin]$ pwd
/u01/app/oracle/product/fmw/wlserver_12.1/common/bin
[oracle@oel6 bin]$ ls -la config.sh
-rwxr-x---. 1 oracle oinstall 2276 nov 20 13:34 config.sh

Execute the command and the wizard screen is shown

[oracle@oel6 bin]$ ./config.sh

Click "Create a new Weblogic domain" on welcome screen and click on Next

Fusion Middleware Configuration Wizard 093.jpg


Defaults are ok for our installation, if you need support for more products select as your needs and click on Next button

Fusion Middleware Configuration Wizard 094.jpg


Provide the domain name and the directory where the files of this domain will be placed

Fusion Middleware Configuration Wizard 095.jpg


Provide the weblogic administration user name and password

Fusion Middleware Configuration Wizard 096.jpg


Select the mode and JDK selected, modes are explained and recommended JDKs for each mode too. We will select JRockit in Developement mode

Fusion Middleware Configuration Wizard 097.jpg


Select Administration Servers and Managed, Clusters and Machines

Fusion Middleware Configuration Wizard 098.jpg


Provide a name and port for the admin server, if you have several network interfaces you can limit the listen address, for our example we want to listen on all local addresses

Fusion Middleware Configuration Wizard 099.jpg


Click on Add button and provide the name of the first managed server "Server1" for us, and the listen port

Fusion Middleware Configuration Wizard 100.jpg


Click on Next, we are not going to configure any cluster, we only have one server and it have no sense to configure a cluster for this configuration.

Fusion Middleware Configuration Wizard 101.jpg


Click on "Unix Machine" tab and click on "Add" button, provide a name for the host

Fusion Middleware Configuration Wizard 103.jpg


Select all available servers and move under the host name that you create in the previous step

Fusion Middleware Configuration Wizard 104.jpg


The summary screen is shown, click on Create button

Fusion Middleware Configuration Wizard 105.jpg


Wait while the installation is performed

Fusion Middleware Configuration Wizard 106.jpg


The process is completed, and show where are the domain directory and the administration url

Fusion Middleware Configuration Wizard 107.jpg


Start weblogic servers

Go to admin directory and find the bin directory where the start scripts are placed

[oracle@oel6 bin]$ pwd
/u01/app/oracle/admin/domains/MyDomain/bin
[oracle@oel6 bin]$ ls -la
total 56
drwxr-x---.  5 oracle oinstall  4096 nov 20 16:41 .
drwxr-x---. 10 oracle oinstall  4096 nov 20 16:41 ..
drwxr-x---.  2 oracle oinstall  4096 nov 20 16:41 nodemanager
drwxr-x---.  2 oracle oinstall  4096 nov 20 16:41 server_migration
drwxr-x---.  2 oracle oinstall  4096 nov 20 16:41 service_migration
-rwxr-x---.  1 oracle oinstall 13255 nov 20 16:41 setDomainEnv.sh
-rwxr-x---.  1 oracle oinstall  3169 nov 20 16:41 startManagedWebLogic.sh
-rwxr-x---.  1 oracle oinstall  5671 nov 20 16:41 startWebLogic.sh
-rwxr-x---.  1 oracle oinstall  2386 nov 20 16:41 stopManagedWebLogic.sh
-rwxr-x---.  1 oracle oinstall  1952 nov 20 16:41 stopWebLogic.sh

Start the AdminServer with ./startWebLogic.sh script:

[oracle@oel6 bin]$ ./startWebLogic.sh
.
.
JAVA Memory arguments: -Xms512m -Xmx512m
.
WLS Start Mode=Development
.
CLASSPATH=/u01/app/oracle/product/fmw/patch_wls1211/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/app/oracle/product/fmw/patch_ocp371/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/app/oracle/product/fmw/jrockit-jdk1.6.0_37/lib/tools.jar:/u01/app/oracle/product/fmw/wlserver_12.1/server/lib/weblogic_sp.jar:/u01/app/oracle/product/fmw/wlserver_12.1/server/lib/weblogic.jar:/u01/app/oracle/product/fmw/modules/features/weblogic.server.modules_12.1.1.0.jar:/u01/app/oracle/product/fmw/wlserver_12.1/server/lib/webservices.jar:/u01/app/oracle/product/fmw/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/u01/app/oracle/product/fmw/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:/u01/app/oracle/product/fmw/wlserver_12.1/common/derby/lib/derbyclient.jar:/u01/app/oracle/product/fmw/wlserver_12.1/server/lib/xqrl.jar
.
PATH=/u01/app/oracle/product/fmw/wlserver_12.1/server/bin:/u01/app/oracle/product/fmw/modules/org.apache.ant_1.7.1/bin:/u01/app/oracle/product/fmw/jrockit-jdk1.6.0_37/jre/bin:/u01/app/oracle/product/fmw/jrockit-jdk1.6.0_37/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/oracle/bin
.
***************************************************
*  To start WebLogic Server, use a username and   *
*  password assigned to an admin-level user.  For *
*  server administration, use the WebLogic Server *
*  console at http://hostname:port/console        *
***************************************************
starting weblogic with Java version:
java version "1.6.0_37"
Java(TM) SE Runtime Environment (build 1.6.0_37-b06)
Oracle JRockit(R) (build R28.2.5-20-152429-1.6.0_37-20120927-1915-linux-x86_64, compiled mode)
Starting WLS with line:
/u01/app/oracle/product/fmw/jrockit-jdk1.6.0_37/bin/java -jrockit   -Xms512m -Xmx512m -Dweblogic.Name=AdminServer -Djava.security.policy=/u01/app/oracle/product/fmw/wlserver_12.1/server/lib/weblogic.policy  -Xverify:none -Djava.endorsed.dirs=/u01/app/oracle/product/fmw/jrockit-jdk1.6.0_37/jre/lib/endorsed:/u01/app/oracle/product/fmw/wlserver_12.1/endorsed  -da -Dplatform.home=/u01/app/oracle/product/fmw/wlserver_12.1 -Dwls.home=/u01/app/oracle/product/fmw/wlserver_12.1/server -Dweblogic.home=/u01/app/oracle/product/fmw/wlserver_12.1/server   -Dweblogic.management.discover=true  -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=/u01/app/oracle/product/fmw/patch_wls1211/profiles/default/sysext_manifest_classpath:/u01/app/oracle/product/fmw/patch_ocp371/profiles/default/sysext_manifest_classpath  weblogic.Server
<Nov 20, 2012 4:59:22 PM CET> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true> 
<Nov 20, 2012 4:59:23 PM CET> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true> 
<Nov 20, 2012 4:59:23 PM CET> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Oracle JRockit(R) Version R28.2.5-20-152429-1.6.0_37-20120927-1915-linux-x86_64 from Oracle Corporation.> 
<Nov 20, 2012 4:59:24 PM CET> <Info> <Management> <BEA-141107> <Version: WebLogic Server Temporary Patch for 13340309 Thu Feb 16 18:30:21 IST 2012
WebLogic Server Temporary Patch for 13019800 Mon Jan 16 16:53:54 IST 2012
WebLogic Server Temporary Patch for BUG13391585 Thu Feb 02 10:18:36 IST 2012
WebLogic Server Temporary Patch for 13516712 Mon Jan 30 15:09:33 IST 2012
WebLogic Server Temporary Patch for BUG13641115 Tue Jan 31 11:19:13 IST 2012
WebLogic Server Temporary Patch for BUG13603813 Wed Feb 15 19:34:13 IST 2012
WebLogic Server Temporary Patch for 13424251 Mon Jan 30 14:32:34 IST 2012
WebLogic Server Temporary Patch for 13361720 Mon Jan 30 15:24:05 IST 2012
WebLogic Server Temporary Patch for BUG13421471 Wed Feb 01 11:24:18 IST 2012
WebLogic Server Temporary Patch for BUG13657792 Thu Feb 23 12:57:33 IST 2012
WebLogic Server 12.1.1.0  Wed Dec 7 08:40:57 PST 2011 1445491 > 
<Nov 20, 2012 4:59:26 PM CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING.> 
<Nov 20, 2012 4:59:26 PM CET> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool.> 
<Nov 20, 2012 4:59:27 PM CET> <Notice> <LoggingService> <BEA-320400> <The log file /u01/app/oracle/admin/domains/MyDomain/servers/AdminServer/logs/AdminServer.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms, such as Windows.> 
<Nov 20, 2012 4:59:27 PM CET> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to /u01/app/oracle/admin/domains/MyDomain/servers/AdminServer/logs/AdminServer.log00003. Log messages will continue to be logged in /u01/app/oracle/admin/domains/MyDomain/servers/AdminServer/logs/AdminServer.log.> 
<Nov 20, 2012 4:59:27 PM CET> <Notice> <Log Management> <BEA-170019> <The server log file /u01/app/oracle/admin/domains/MyDomain/servers/AdminServer/logs/AdminServer.log is opened. All server side log events will be written to this file.> 
<Nov 20, 2012 4:59:27 PM CET> <Critical> <WebLogicServer> <BEA-000386> <Server subsystem failed. Reason: java.lang.AssertionError: Could not obtain the localhost address. The most likely cause is an error in the network configuration of this machine.
java.lang.AssertionError: Could not obtain the localhost address. The most likely cause is an error in the network configuration of this machine.
	at weblogic.server.channels.AddressUtils$AddressMaker.getLocalHost(AddressUtils.java:38)
	at weblogic.server.channels.AddressUtils$AddressMaker.<clinit>(AddressUtils.java:33)
	at weblogic.server.channels.AddressUtils.getIPAny(AddressUtils.java:154)
	at weblogic.protocol.configuration.ChannelHelper.checkConsistency(ChannelHelper.java:59)
	at weblogic.server.channels.ChannelService.start(ChannelService.java:207)
	Truncated. see log file for complete stacktrace
Caused By: java.net.UnknownHostException: oel6.localdomain: oel6.localdomain
	at java.net.InetAddress.getLocalHost(InetAddress.java:1360)
	at weblogic.server.channels.AddressUtils$AddressMaker.getLocalHost(AddressUtils.java:36)
	at weblogic.server.channels.AddressUtils$AddressMaker.<clinit>(AddressUtils.java:33)
	at weblogic.server.channels.AddressUtils.getIPAny(AddressUtils.java:154)
	at weblogic.protocol.configuration.ChannelHelper.checkConsistency(ChannelHelper.java:60)
	Truncated. see log file for complete stacktrace
> 
<Nov 20, 2012 4:59:28 PM CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED.> 
<Nov 20, 2012 4:59:28 PM CET> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down.> 
<Nov 20, 2012 4:59:28 PM CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN.>

An error occurs related with localhost address, to temporary fix it change the hostname of the machine to localhost and start again (in environments for non testing purposes assign a right hostname in the configuration process and this error does not appear):

[oracle@oel6 bin]$ su -
Password: 
[root@localhost ~]# hostname localhost
[root@localhost ~]# exit
logout
[oracle@oel6 bin]$ ./startWebLogic.sh
.
.
JAVA Memory arguments: -Xms512m -Xmx512m
.
WLS Start Mode=Development
.
CLASSPATH=/u01/app/oracle/product/fmw/patch_wls1211/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/app/oracle/product/fmw/patch_ocp371/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/app/oracle/product/fmw/jrockit-jdk1.6.0_37/lib/tools.jar:/u01/app/oracle/product/fmw/wlserver_12.1/server/lib/weblogic_sp.jar:/u01/app/oracle/product/fmw/wlserver_12.1/server/lib/weblogic.jar:/u01/app/oracle/product/fmw/modules/features/weblogic.server.modules_12.1.1.0.jar:/u01/app/oracle/product/fmw/wlserver_12.1/server/lib/webservices.jar:/u01/app/oracle/product/fmw/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/u01/app/oracle/product/fmw/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:/u01/app/oracle/product/fmw/wlserver_12.1/common/derby/lib/derbyclient.jar:/u01/app/oracle/product/fmw/wlserver_12.1/server/lib/xqrl.jar
.
PATH=/u01/app/oracle/product/fmw/wlserver_12.1/server/bin:/u01/app/oracle/product/fmw/modules/org.apache.ant_1.7.1/bin:/u01/app/oracle/product/fmw/jrockit-jdk1.6.0_37/jre/bin:/u01/app/oracle/product/fmw/jrockit-jdk1.6.0_37/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/oracle/bin
.
***************************************************
*  To start WebLogic Server, use a username and   *
*  password assigned to an admin-level user.  For *
*  server administration, use the WebLogic Server *
*  console at http://hostname:port/console        *
***************************************************
starting weblogic with Java version:
java version "1.6.0_37"
Java(TM) SE Runtime Environment (build 1.6.0_37-b06)
Oracle JRockit(R) (build R28.2.5-20-152429-1.6.0_37-20120927-1915-linux-x86_64, compiled mode)
Starting WLS with line:
/u01/app/oracle/product/fmw/jrockit-jdk1.6.0_37/bin/java -jrockit   -Xms512m -Xmx512m -Dweblogic.Name=AdminServer -Djava.security.policy=/u01/app/oracle/product/fmw/wlserver_12.1/server/lib/weblogic.policy  -Xverify:none -Djava.endorsed.dirs=/u01/app/oracle/product/fmw/jrockit-jdk1.6.0_37/jre/lib/endorsed:/u01/app/oracle/product/fmw/wlserver_12.1/endorsed  -da -Dplatform.home=/u01/app/oracle/product/fmw/wlserver_12.1 -Dwls.home=/u01/app/oracle/product/fmw/wlserver_12.1/server -Dweblogic.home=/u01/app/oracle/product/fmw/wlserver_12.1/server   -Dweblogic.management.discover=true  -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=/u01/app/oracle/product/fmw/patch_wls1211/profiles/default/sysext_manifest_classpath:/u01/app/oracle/product/fmw/patch_ocp371/profiles/default/sysext_manifest_classpath  weblogic.Server
<Nov 20, 2012 5:09:19 PM CET> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true> 
<Nov 20, 2012 5:09:20 PM CET> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true> 
<Nov 20, 2012 5:09:21 PM CET> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Oracle JRockit(R) Version R28.2.5-20-152429-1.6.0_37-20120927-1915-linux-x86_64 from Oracle Corporation.> 
<Nov 20, 2012 5:09:22 PM CET> <Info> <Management> <BEA-141107> <Version: WebLogic Server Temporary Patch for 13340309 Thu Feb 16 18:30:21 IST 2012
WebLogic Server Temporary Patch for 13019800 Mon Jan 16 16:53:54 IST 2012
WebLogic Server Temporary Patch for BUG13391585 Thu Feb 02 10:18:36 IST 2012
WebLogic Server Temporary Patch for 13516712 Mon Jan 30 15:09:33 IST 2012
WebLogic Server Temporary Patch for BUG13641115 Tue Jan 31 11:19:13 IST 2012
WebLogic Server Temporary Patch for BUG13603813 Wed Feb 15 19:34:13 IST 2012
WebLogic Server Temporary Patch for 13424251 Mon Jan 30 14:32:34 IST 2012
WebLogic Server Temporary Patch for 13361720 Mon Jan 30 15:24:05 IST 2012
WebLogic Server Temporary Patch for BUG13421471 Wed Feb 01 11:24:18 IST 2012
WebLogic Server Temporary Patch for BUG13657792 Thu Feb 23 12:57:33 IST 2012
WebLogic Server 12.1.1.0  Wed Dec 7 08:40:57 PST 2011 1445491 > 
<Nov 20, 2012 5:09:25 PM CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING.> 
<Nov 20, 2012 5:09:25 PM CET> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool.> 
<Nov 20, 2012 5:09:27 PM CET> <Notice> <LoggingService> <BEA-320400> <The log file /u01/app/oracle/admin/domains/MyDomain/servers/AdminServer/logs/AdminServer.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms, such as Windows.> 
<Nov 20, 2012 5:09:27 PM CET> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to /u01/app/oracle/admin/domains/MyDomain/servers/AdminServer/logs/AdminServer.log00005. Log messages will continue to be logged in /u01/app/oracle/admin/domains/MyDomain/servers/AdminServer/logs/AdminServer.log.> 
<Nov 20, 2012 5:09:27 PM CET> <Notice> <Log Management> <BEA-170019> <The server log file /u01/app/oracle/admin/domains/MyDomain/servers/AdminServer/logs/AdminServer.log is opened. All server side log events will be written to this file.> 
<Nov 20, 2012 5:09:34 PM CET> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.> 
<Nov 20, 2012 5:09:42 PM CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY.> 
<Nov 20, 2012 5:09:42 PM CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING.> 
<Nov 20, 2012 5:09:43 PM CET> <Notice> <LoggingService> <BEA-320400> <The log file /u01/app/oracle/admin/domains/MyDomain/servers/AdminServer/logs/MyDomain.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms, such as Windows.> 
<Nov 20, 2012 5:09:43 PM CET> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to /u01/app/oracle/admin/domains/MyDomain/servers/AdminServer/logs/MyDomain.log00001. Log messages will continue to be logged in /u01/app/oracle/admin/domains/MyDomain/servers/AdminServer/logs/MyDomain.log.> 
<Nov 20, 2012 5:09:43 PM CET> <Notice> <Log Management> <BEA-170027> <The server has successfully established a connection with the Domain level Diagnostic Service.> 
<Nov 20, 2012 5:09:43 PM CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN.> 
<Nov 20, 2012 5:09:44 PM CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING.> 
<Nov 20, 2012 5:09:44 PM CET> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.> 
<Nov 20, 2012 5:09:44 PM CET> <Notice> <Server> <BEA-002613> <Channel "Default[3]" is now listening on 0:0:0:0:0:0:0:1:7001 for protocols iiop, t3, ldap, snmp, http.> 
<Nov 20, 2012 5:09:44 PM CET> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 192.168.1.105:7001 for protocols iiop, t3, ldap, snmp, http.> 
<Nov 20, 2012 5:09:44 PM CET> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on fe80:0:0:0:a00:27ff:fe75:4c92:7001 for protocols iiop, t3, ldap, snmp, http.> 
<Nov 20, 2012 5:09:44 PM CET> <Notice> <WebLogicServer> <BEA-000331> <Started the WebLogic Server Administration Server "AdminServer" for domain "MyDomain" running in development mode.> 
<Nov 20, 2012 5:09:44 PM CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING.> 
<Nov 20, 2012 5:09:44 PM CET> <Notice> <WebLogicServer> <BEA-000360> <The server started in RUNNING mode.>

Now weblogic AdminServer is started, check it with a browser, going to the port http://<host>:7001/console and provide the user and password used in the configuration process

Oracle WebLogic Server Administration Console - Mozilla Firefox 108.jpg


The initial screen is shown

Home Page - MyDomain - WLS Console - Mozilla Firefox 109.jpg


Go to Environment Servers and check your environment status

Summary of Servers - MyDomain - WLS Console - Mozilla Firefox 110.jpg