How to create the weblogic Domain

In previous post , we have learned Weblogic installation.

How to perform weblogic installation

I would be explaining weblogic domain creation in this post

What is Weblogic domainA domain is an interrelated set of WebLogic Server resources managed as a unit. A domain includes one or more administration servers and managed servers. Various clients use the administration server to configure the system. The managed server is used to run actual applications.

1) First set all the environment variable

JAVA_HOME=/u00/app/oracle/jdk1.70_21
export JAVA_HOME
MW_HOME=/u00/app/oracle/weblogic
export MW_HOME
WL_HOME=/u00/app/oracle/weblogic/wlserver_10.3
export WL_HOME

2)   Now we will be creating  the weblogic domain.Initially it will just host Admin Server.  We can add Manage server through GUI

cd $WL_HOME/common/bin

./config.sh

weblogicd_1

Choose the first option “Create a weblogic domain”
weblogicd_2

Choose the first option “Generate a domain automatically configured to support the following product”

weblogicd_3

Enter the domain name and Location. We would be creating test_domain at the following location /u00/app/oracle/weblogic/user_projects/domain. This is also the standard location for domain creation and click next

weblogicd_4

Configure the weblogic administrator username and password and click next

weblogicd_5

Choose Production mode and give the location of the JDK installed and click next

weblogicd_6

Choose option Administration server only as we are just configuring administration server initially and click next

weblogicd_7

Give the name of Admin server, port and click next

weblogic domain

Check the configuration summary and click next

weblogic domain creation

This present will show all the processing being done and then present the domain location and Admin URL.Click done to exit this page

 

How to start the Administration Server

1)  Log in as the oracle user on the  machine tech.com where the weblogic server is installed  and set the below environment variable

JAVA_HOME=/u00/app/oracle/jdk1.70_21
export JAVA_HOME
MW_HOME=/u00/app/oracle/weblogic
export MW_HOME
WL_HOME=/u00/app/oracle/weblogic/wlserver_10.3
export WL_HOME

DOMAIN_NAME=/u00/app/oracle/weblogic/user_projects/domain/test_domain

export DOMIAN name

2) Navigate to below folder

cd $DOMAIN_HOME/bin

3) Start the Administration Server:
[oracle@tech.com]$ ./startWebLogic.sh
4) The server will initiate the startup process and ask for the WebLogic Administrator
username and password:
Enter username to boot WebLogic server:
Enter password to boot WebLogic server:
5) Type weblogic   as the username and the <password> value you previously specified
during domain creation.
6). WebLogic Administration Server will start.

The Administration Server is now running and waiting for connections in the host and port
that are specified during domain creation at http://tech.com:7005/console.
<Started the WebLogic Server Administration Server
“AdminServer” for domain “test_domain” running in production
mode.>

How to avoid entering  the weblogic username and password and start it in background

1. Go to the Administration Server root folder:
$ cd $DOMAIN_HOME/servers/AdminServer
2. Create and enter a new directory:
$ mkdir security
$ cd security
3. Create a new file called boot.properties with weblogic as the username and the
<password> value you specified:
$ echo -ne “username=weblogic\npassword=
<password>” > boot.properties

$ cat boot.properties
username=weblogic
password=<password>

The next time you start WebLogic Administration Server, it will use the credentials
from the boot.properties file. The file will also be encrypted:
cat boot.properties
password={PES}I0giDJGR0FATHnfPsoZvpmF/Ipc\=
username={PES}PsS/IccG3VgZv6LP1zj+Ro1JBDb2ZE\=
4) start the weblogic server in background

nohup ./startWebLogic.sh &
[1] <7585>
The <7585> value is the process ID of the Administration Server. The standard output (stdout) and standard error (stderr) of the process will be appended
to a file called $DOMAIN_HOME/bin/nohup.out.

5) Check the boot.properties , the entries will be encrypted

 

How to access the Administration server Console

1) Open internet explorer and navigate to

http://tech.com:7005/console

It will open the below page

weblogic domain

2) enter the weblogic username and password to login to console

Hope you like this post on weblogic domain creation with screen shot.Please do provide the screen shot.

Related articles

Oracle weblogic server

Weblogic: Sun JDK and Oracle Jrocket

How to Stop-start weblogic Server