This is third post in Series “Learn Oracle WebLogic with Us” .

After WebLogic installation Here, next step is to create Domain. This post cover steps to create Domain in WebLogic (Simple – Administration Server or Advanced – one Administration Server and two Managed Server in a Cluster). If you are not familiar with Domain, Administration/Managed Server or Cluster then read my post here my post here   or Oracle Documentation here

  There are multiple ways to create domain, steps mentioned here are using Configuration Manager Wizard (config.sh or config.cmd).

–For Unix/Windows start configuration wizard using $BEA_HOME/ wlserver_10.0/ commom/ bin/ config.cmd (windows) or config.sh(UNix)

–To Start configuration wizard in console mode use - config.[cmd|sh] -mode=console

Screenshot below for creating Domain in WebLogic using Configurtaion Manager in GUI mode. Start Configuration Manager using command given above (config.sh / config.cmd)

1) Create or Extend DomainIn First screen you select if you wish to Create new WebLogic Domain or Extend an Existing WebLogic Domain.

   Extending WebLogic Domainmeans you already have WebLogic Domain and want to add more Managed Server or configure cluster or configure additional applications.

weblogic 4

2) Select Domain Source

weblogic 5

3) Configure AdministratorIn below screen you define UserName and Password for WebLogic Domain and add/grant Administrator Role to that User (This user name /password will be used to start/stop domain if Mode of domain is Production and to login to domain Admin WebConsole)

weblogic 6

4) Select JDK & Start Mode -  In below screen, you define Mode in which you wish to start your domain and JDK (Sun, JRockit or any other JDK)
Production Mode- Domain is more secure, You need username password to start domain or deploy application. 
Development Mode- Not very secure, You can Autodeploy application and no need to provide username/password to start Domain.

weblogic 7

5) Customize your domain –  Using below screen you can customize your domain (Create Managed Server, Cluster, JDBC Source, JMS File Store). Select initially No to create simple domain with Just one Administration Server (You can deploy your application in Administration Server but this is not recommended in Production Instance). 
  To create Advanced Domain (one Administration Server and two Managed Server and Cluster) go to Step  8 )

weblogic 8

6) In next screen you provide Domain Name, Location of Domain.

weblogic 9

7) Finally, If you are installing on Windows, you can select to “Start Admin Server

weblogic 10

Click Done to finish Domain Installation. 

Next Step, go to Start WebLogic and access Domain Console from browser at end of this post.

.

Create Domain with one Administration Server and two Managed Server Instance in Cluster 

Steps here are to create new Domain with one Administration Server (AdminServer), two Managed Server (MS1 & MS2) in cluster (cluster_1)
- Administration Server and both Managed Server are installed on single machine (you can configure them on multiple servers as well).

.

Administration Server
Name – AdminServer
Listen Address – All IP address on machine
Listen port – 7003
SSL Listen Port – 7004

.

Managed Server 1
Name – ms1
Listen Address – All IP address on machine
Listen port – 7103
SSL Listen Port – 7104

.Managed Server 2
Name – ms2
Listen Address – All IP address on machine
Listen port – 7203
SSL Listen Port – 7204
.
Cluster Details  
Cluster Name – cluster_1
Multicast Address – 239.192.0.0
Multicast Port – 8050
Cluster Address – 127.0.0.1
Cluster Member – ms1 & ms2
8 ) Start with step 1) to 4) as shown above on screen 5) “Customize Environment” select  Yes as shown below 

weblogic 8b.

9) Configure Administration Server - configure Administration Server using this screen like Name, Listen & SSL Listen Port

weblogic 8c

10) Configure Managed Server - click on Add to add managed server. 

weblogic 8d

11) Configure Managed Server – Add two managed server (ms1:7103:7104 & ms2:7203:7204)

weblogic 8e

12) Configure Cluster – click on Add to create cluster and add Managed Server in Cluster. If you have NOT defined any managed server in previous screen, you will NOT get this screen.  

weblogic 8f

13) Configure Cluster- Define cluster with Cluster Name, Multicast Address,  Port and address.

weblogic 8g

14) Assign Server to Cluster – Use this screen to add Managed Server on Left hand side to Cluster on right hand side.

weblogic 8h

15) Assign Server to Cluster – as shown in below screen shot, We added MS1 & MS2 to cluster_1

weblogic 8i

16) Configure Machine – Use this screen if you have more than one machine in your system. In our configuration Administration Server and  all Managed Server are on single machine.

weblogic 8j

17) Review WebLogic Domain -

weblogic 8k

18) Create WebLogic Domain  – define Domain Name and Domain Location on this screen. This screen is similar to step 6) above

weblogic 8l

.

.

Start WebLogic Domain

Once you have successfully created domain, next step is to  start weblogic domain and access Administration Console. (Steps here are to start basic domain – only one Administration Server,  “Start/Stop WebLogic Server - Administration and Managed Server“ coming soon… )

Startup Script
$BEA_HOME/user_projects/domain/<domain_name>/bin/startWebLogic.sh (Unix)
$BEA_HOME\user_projects\domain\<domain_name>\bin\startWebLogic.cmd (Windows)

I installed domain with name base_domain and my BEA_HOME is c:\bea hence to start my domain -
c:\bea\user_projects\ domains\ base_domain\ bin\ startWebLogic.cmd

Access Administration Console

Default Administration Port is 7001 so use port as 7001 (else use port you entered while creating WebLogic Domain)

http://<servername>.domain:7001/console

or
http://localhost:7001/console (If you are accessing from server directly)

Login to WebLogic Admin Console using UserName/Password created during WebLogic Domain Creation.

weblogic 11

After successful login you should get screen like below.

weblogic

.

References

Oracle WebLogic Domain Configuration Guide

Related Posts for Learn WebLogic with Us


  1. Oracle WebLogic Installation Steps
  2. Domain , Administration & Managed Server, Cluster in Oracle WebLogic
  3. Create Domain in Oracle WebLogic
  4. Oracle WebLogic Server – Startup/Shutdown
  5. Oracle WebLogic Server 10g R3 10.3 is out now
  6. Deploy Application on Oracle WebLogic Server
  7. Cluster Architecture : Oracle WebLogic Server
  8. Start WebLogic Server on Linux on port 80, 443 <= 1024
  9. JDBC (Java DataBase Connectivity ) in Oracle WebLogic – Overview
  10. WebLogic Server JDBC for Database connection : Step by Step
  11. Security in Oracle WebLogic : Realm, Security Provider, Authentication, Authorization, Users
  12. Deploy ADF application to Oracle WebLogic Server
  13. Node Manager in Oracle WebLogic Server
  14. Configure Oracle HTTP Server infront of Oracle WebLogic Server mod_wl_ohs
  15. How to install weblogic server on 64 bit O.S. (Linux /Solaris) ?
  16. Oracle WebLogic Login Issue : Password is not correct (Password Lock Policy)
  17. Oracle WebLogic Server : Node Manager in nutshell
  18. Certification : 1Z0-108 Oracle WebLogic Server 10g System Administrator Certified Expert
  19. How to integrate WebLogic with Oracle Internet Directory for Login : Authentication
  20. opatch, adpatch and now “smart update” (BSU) to apply weblogic patches
  21. Disater Recovery documentation for Oracle WebLogic Server 11g (Fusion Middleware)
  22. Authentication Providers in #WebLogic – Oracle Access Manager Identity Assertion for Single Sign-On and OAM Authenticator
  23. Error while starting WebLogic Server : java.lang.NumberFormatException: null
  24. #WebLogic startup prompting from username password : boot.properties
  25. BEA-000286 : Failed to invoke startup class “JRF Startup Class” oracle.jrf.wls.JRFStartup
  26. WebLogic Kerberos (SSO) Authentication Issue : Error 401 Forbidden : No Configuration was registered that can handle the configuration named com. sun. security. jgss. krb5. accept
  27. How to reset Lost Oracle WebLogic Password for Fusion Middleware Applications
  28. Oracle WebLogic Server Certification : 1Z0-108 Practice Question and Dumps
  29. WebLogic Startup fails with Unable to obtain lock on Server may already be running
  30. Oracle Weblogic 12c Launch : Attend online on 1 Dec 2011
  31. Oracle WebLogic 12c (12.1.1) is now available to download
  32. How to Install WebLogic 12C (12.1.1) on Mac
  33. Oracle #WebLogic Server 12c : SE vs EE vs Suite License Options
  34. SSL in WebLogic (CA, KeyStore, Identity & Trust Store) : Things you must know – Part I
  35. SSL in WebLogic Server – Part II : Create KeyStore, generate CSR, Import CERT and configure KeyStore with WebLogic
  36. WebLogic Admin Server Start-up hanging at “Initializing self-tuning thread pool”
  37. Error in WebLogic Clustering : socket MaxMessage Size Exceeded Exception
  38. Changed or New Features in WebLogic 12.1.2
  39. WebLogic SSL configuration : Inconsistent security configuration Cannot convert identity certificate
  40. Dynamic Cluster in WebLogic 12.1.2 : New Features in WebLogic 12c
  41. Identity Propagation between two WebLogic Domains : Cross Domain Security VS Global Trust
  42. WebLogic Admin Server Start Up hangs at ‘Log Management’ BEA-170019 IIOP subsystem enabled
  43. Security:090294 could not get connection javax. net. ssl. SSLKeyException FATAL Alert BAD_CERTIFICATE – A corrupt or unuseable certificate was received
  44. WLST connecting to WebLogic Admin Server failed : Bootstrap to [IP:Port] failed. It is likely that the remote side declared peer gone on this JVM