Domain Creation

Creating a New Domain in Graphical/Console Mode:

The following example explains how to create a new WebLogic Server domain in Graphical/Console Mode

1. Start the Configuration Wizard in graphical mode.

– On Windows:

Start? Programs? BEA Products? Tools? Configuration Wizard

– On UNIX:

Go to the /common/bin subdirectory of the product installation directory. For example:

cd $BEAHOME/weblogic92/common/bin

Enter sh config.sh

2. In the Welcome window, select Create a new WebLogic domain and click Next.

3. In the Select a Domain Source window:

a. Select Generate a domain configured automatically to support the following BEA

products.

Note that the WebLogic Server check box is selected by default since it is a

prerequisite for all WebLogic domains.

b. Click Next.

4. In the Configure Administrator Username and Password window, enter a valid

username and password,

and click Next.

This username is used to boot the Administration

Server and connect to it.

5. In the Configure Server Start Mode and JDK window, specify whether to start the server

in development mode or production mode, and select which JDK to use.

Click Next.

6. In the Customize Environment and Services Settings window, indicate whether you want

to change the distribution of your domain across servers, clusters, and machines, and to

modify existing JDBC and JMS file store services. To add Managed Servers and clusters to

your domain, or change JDBC and JMS settings,

select Yes

and click Next.

The Configuration Wizard steps you through the process. To accept the default settings, leave

No selected

and click Next.

In this example, we are not customizing the domain. Leave No selected and click Next.

7. In the Create WebLogic Domain window, enter a name for the domain and specify a

location for the domain directory.

For example, since we are going to extend this domain in the next example using the

WebLogic Portal extension template, name the domain my_default_domain.

By default, the domain is created in BEA_HOME\user_projects\domains\domain, where

BEA_HOME is the directory that contains the product installation, and domain is the domain

name that you specify (my_default_domain in this example). Click Create.

8. In the Creating Domain window, once the domain has been created, do one of the

following:

– If you are creating the domain on a Windows system and you want to start the server

immediately, select the Start Admin Server check box and click Done.

– Click Done.

 

 

Creating a WebLogic Domain in 'console' Mode (Sun Solaris)

 

If you know for any Unix based operating systems remote configuration will be in console mode only. This you can do with the following command referring to Oracle WebLogic 11g as follows:

 

$ Oracle/Middleware/wlserver_10.3/common/bin/config.sh -mode=console

 

Otherwise you can do as follows where Sarangapani experimented with WebLogic 9.2 version.

$WL_HOME/common/bin

bash-3.00$ ls -la

total 168

drwxr-xr-x   2 wlsuser   wlsproject     512 Dec 18 07:56 .

drwxr-xr-x  12 wlsuser   wlsproject     512 Dec 18 07:56 ..

-rwxr-xr-x   1 wlsuser   wlsproject   13668 Dec 18 07:56 commEnv.sh

-rwxr-xr-x   1 wlsuser   wlsproject    1204 Dec 18 07:56 config.sh

-rwxr-xr-x   1 wlsuser   wlsproject    1046 Dec 18 07:56 config_builder.sh

-rwxr-xr-x   1 wlsuser   wlsproject    1752 Dec 18 07:56 pack.sh

-rwxr-xr-x   1 wlsuser   wlsproject     517 Dec 18 07:56 quickstart.sh

-rwxr-xr-x   1 wlsuser   wlsproject    3995 Dec 18 07:56 startManagedWebLogic.sh

-rwxr-xr-x   1 wlsuser   wlsproject    5441 Dec 18 07:56 startPointBase.sh

-rwxr-xr-x   1 wlsuser   wlsproject    2650 Dec 18 07:56 startPointBaseConsole.sh

-rwxr-xr-x   1 wlsuser   wlsproject    1801 Dec 18 07:56 stopPointBase.sh

-rwxr-xr-x   1 wlsuser   wlsproject    1197 Dec 18 07:56 unpack.sh

-rwxr-xr-x   1 wlsuser   wlsproject    2264 Dec 18 07:56 upgrade.sh

-rwxr-xr-x   1 wlsuser   wlsproject   26914 Dec 18 07:56 wlscontrol.sh

-rwxr-xr-x   1 wlsuser   wlsproject   13037 Dec 18 07:56 wlsifconfig.sh

-rwxr-xr-x   1 wlsuser   wlsproject     451 Dec 18 07:56 wlst.sh

bash-3.00$ ./config.sh

Unable to instantiate GUI, defaulting to console mode.

 

<---------------------------------------------------- BEA WebLogic Configuration Wizard ---------------------------------------------------->

Welcome:

--------

Choose between creating and extending a domain. Based on your selection, the Configuration Wizard guides you through the steps to

generate a new or extend an existing domain.

 ->1|Create a new WebLogic domain

    |    Create a WebLogic domain in your projects directory. 

   2|Extend an existing WebLogic domain

    |    Extend an existing WebLogic domain.  Use this option to add applications and services, or to override existing database access

    |(JDBC) and messaging (JMS) settings. You can also incorporate additional functionality in your domain, for example, by including

    |AquaLogic Service Bus.

 

 

Enter index number to select OR [Exit][Next]> 1

 

 

<---------------------------------------------------- BEA WebLogic Configuration Wizard ---------------------------------------------------->

Select Domain Source:

---------------------

Select the source from which the domain will be created. You can create the domain by selecting from the required components or by

selecting from a list of existing domain templates.

 ->1|Choose Weblogic Platform components

    |    You can choose the Weblogic component(s) that you want supported in your domain.

   2|Choose custom template

    |    Choose this option if you want to use an existing  template. This could be a custom created template using the Template Builder.

 

 

Enter index number to select OR [Exit][Previous][Next]> 1

 

 

<---------------------------------------------------- BEA WebLogic Configuration Wizard ---------------------------------------------------->

Application Template Selection:

-------------------------------

 

    Available Templates

    |_____WebLogic Server (Required)x

 

Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> 1

 

 

<---------------------------------------------------- BEA WebLogic Configuration Wizard ---------------------------------------------------->

Application Template Selection:

-------------------------------

 

    Available Templates

    |_____WebLogic Server (Required)x

    ** Invalid input, not selectable

Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]>

 

 

<---------------------------------------------------- BEA WebLogic Configuration Wizard ---------------------------------------------------->

Configure Administrator Username and Password:

----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the default administrator used to start development mode servers.

    |          Name           |                  Value                  |

   _|_________________________|_________________________________________|

   1|       *User name:       |                weblogic                 |

   2|     *User password:     |                                         |

   3| *Confirm user password: |                                         |

   4|      Description:       | This user is the default administrator. |

Use above value or select another option:

    1 - Modify "User name"

    2 - Modify "User password"

    3 - Modify "Confirm user password"

    4 - Modify "Description"

 

Enter option number to select OR [Exit][Previous][Next]> 1

 

 

<---------------------------------------------------- BEA WebLogic Configuration Wizard ---------------------------------------------------->

Configure Administrator Username and Password:

----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the default administrator used to start development mode servers.

    |          Name           |                  Value                  |

   _|_________________________|_________________________________________|

   1|       *User name:       |                weblogic                 |

   2|     *User password:     |                                         |

   3| *Confirm user password: |                                         |

   4|      Description:       | This user is the default administrator. |

 

Enter value for "User name" OR [Exit][Previous][Next]> weblogic

 

 

<---------------------------------------------------- BEA WebLogic Configuration Wizard ---------------------------------------------------->

Configure Administrator Username and Password:

----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the default administrator used to start development mode servers.

    |          Name           |                  Value                  |

   _|_________________________|_________________________________________|

   1|       *User name:       |                weblogic                 |

   2|     *User password:     |                                         |

   3| *Confirm user password: |                                         |

   4|      Description:       | This user is the default administrator. |

Use above value or select another option:

    1 - Modify "User name"

    2 - Modify "User password"

    3 - Modify "Confirm user password"

    4 - Modify "Description"

 

Enter option number to select OR [Exit][Previous][Next]> 2

 

 

<---------------------------------------------------- BEA WebLogic Configuration Wizard ---------------------------------------------------->

Configure Administrator Username and Password:

----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the default administrator used to start development mode servers.

    "*User password:" = []

 

Enter new *User password: OR [Exit][Reset][Accept]>

 

<---------------------------------------------------- BEA WebLogic Configuration Wizard ---------------------------------------------------->

Configure Administrator Username and Password:

----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the default administrator used to start development mode servers.

    |          Name           |                  Value                  |

   _|_________________________|_________________________________________|

   1|       *User name:       |                weblogic                 |

   2|     *User password:     |                ********                 |

   3| *Confirm user password: |                                         |

   4|      Description:       | This user is the default administrator. |

Use above value or select another option:

    1 - Modify "User name"

    2 - Modify "User password"

    3 - Modify "Confirm user password"

    4 - Modify "Description"

    5 - Discard Changes

 

Enter option number to select OR [Exit][Previous][Next]> 3

 

 

<---------------------------------------------------- BEA WebLogic Configuration Wizard ---------------------------------------------------->

Configure Administrator Username and Password:

----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the default administrator used to start development mode servers.

    "*Confirm user password:" = []

 

Enter new *Confirm user password: OR [Exit][Reset][Accept]>

 

<---------------------------------------------------- BEA WebLogic Configuration Wizard ---------------------------------------------------->

Configure Administrator Username and Password:

----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the default administrator used to start development mode servers.

    |          Name           |                  Value                  |

   _|_________________________|_________________________________________|

   1|       *User name:       |                weblogic                 |

   2|     *User password:     |                ********                 |

   3| *Confirm user password: |                ********                 |

   4|      Description:       | This user is the default administrator. |

Use above value or select another option:

    1 - Modify "User name"

    2 - Modify "User password"

    3 - Modify "Confirm user password"

    4 - Modify "Description"

    5 - Discard Changes

 

Enter option number to select OR [Exit][Previous][Next]>

 

 

<---------------------------------------------------- BEA WebLogic Configuration Wizard ---------------------------------------------------->

Domain Mode Configuration:

--------------------------

Enable Development or Production Mode for this domain.

 ->1|Development Mode

   2|Production Mode

 

Enter index number to select OR [Exit][Previous][Next]>

 

 

<---------------------------------------------------- BEA WebLogic Configuration Wizard ---------------------------------------------------->

Java SDK Selection:

-------------------

 ->1|Sun SDK 1.5.0_10 @ /export/home/wlsuser/bea/jdk150_10

   2|Other Java SDK

 

Enter index number to select OR [Exit][Previous][Next]> 1

 

 

<---------------------------------------------------- BEA WebLogic Configuration Wizard ---------------------------------------------------->

Choose Configuration Option:

----------------------------

    *Do you want to modify any of the preconfigured settings or defaults in your template?

    *

    *To keep the default or template settings, and proceed directly to name and create your domain, leave No selected.

   1|Yes

 ->2|No

 

 

Enter index number to select OR [Exit][Previous][Next]>

 

 

<---------------------------------------------------- BEA WebLogic Configuration Wizard ---------------------------------------------------->

Select the target domain directory for this domain:

---------------------------------------------------

    "Target Location" = [Enter new value or use default "/export/home/wlsuser/bea/user_projects/domains"]

 

Enter new Target Location OR [Exit][Previous][Next]>

 

 

<---------------------------------------------------- BEA WebLogic Configuration Wizard ---------------------------------------------------->

Edit Domain Information:

------------------------

    |  Name  |    Value    |

   _|________|_____________|

   1| *Name: | base_domain |

 

Enter value for "Name" OR [Exit][Previous][Next]>

 

 

<---------------------------------------------------- BEA WebLogic Configuration Wizard ---------------------------------------------------->

Creating Domain...

0%          25%          50%          75%          100%

[------------|------------|------------|------------]

[***************************************************]

**** Domain Created Successfully! ****

bash-3.00$