This chapter describes how to create a domain template using the Domain Template Builder.
This chapter includes the following sections:
The console for the machine on which the product installation resides must support Java-based GUIs. All Windows-based consoles support Java-based GUIs; only a subset of UNIX-based consoles support Java-based GUIs.
You can start the Domain Template Builder in graphical mode from the command line.
Log in to the system on which the product is installed.
Open an MS-DOS command prompt window (on Windows) or a command shell (on UNIX).
Go to the following directory:
Windows: ORACLE_HOME\oracle_common\common\bin
UNIX: ORACLE_HOME/oracle_common/common/bin
where ORACLE_HOME is the Oracle home directory you specified when installing WebLogic Server.
Execute the following command:
Windows: config_builder.cmd
UNIX: sh config_builder.sh
Note:
When you run the config_builder.cmd
or config_builder.sh
command, the following error message might be displayed to indicate that the default cache directory is not valid:
*sys-package-mgr*: can't create package cache dir
You can change the cache directory by including the -Dpython.cachedir=
valid_directory
option in the command line.
The Template Type screen is displayed.
To create a new domain template using the Domain Template Builder in graphical mode, start the Domain Template Builder as described in Starting the Domain Template Builder.
Note:
In situations where you cannot run the Domain Template Builder in GUI mode, Oracle recommends that you use a WLST script to create the domain template. For more information, see "Creating and Using a Domain Template (Offline)" in Understanding the WebLogic Scripting Tool.
The Domain Template Builder displays a sequence of screens, in the order listed in Table 2-1. For more information on each screen, refer to the related section in Chapter 4, "Domain Template Builder Screens," or click the link in the Screen column.
Table 2-1 summarizes the steps for creating a domain template by using the Domain Template Builder.
Table 2-1 Steps for Creating a Domain Template by Using the Domain Template Builder
Screen | When Does This Screen Appear? | You Perform This Action |
---|---|---|
Always |
Choose Create a Domain Template to create a domain template. Specify the source for the domain template. Specify the destination JAR file for the domain template. Click Next to continue. |
|
Always |
Fill in each template information field. Click Next to continue. |
|
Only if applications are included in the domain or template source that you selected. |
Review the list of applications included in the domain. Deselect any applications that you do not want to include in the destination domain. Click Next to continue. |
|
Always |
Review the files that are included in the template. If necessary, add more files to the template. If necessary, remove files from the template. Click Next to continue. |
|
Always |
From the Select File list on the left, open a file to which you want to add a replacement variable. Select a string that you want to replace with a variable. Right-click to display the Replacement Variable pop-up list. In the Select File list on the left, select the check box for the file to indicate that it has been changed. Click Next to continue. |
|
Always |
Review the template summary. You can use the View drop-down list to restrict the view to a specific part of the template. If necessary, click Prev to return to a previous screen and make any changes that are needed. Click Create to continue. |
|
Always |
Wait for the template to be generated, then click Finish. |
|
Always |
Click Finish to exit the Domain Template Builder. |