This chapter describes how to create an extension template using the Domain Template Builder.
The process for creating an extension template is similar to the process for creating a domain template. The resulting template does not configure the Administration Server, administrator username and password, security realm, and Node Manager, or specify Start menu entries. These domain settings are already defined in the domain you are extending.
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:
On Windows: ORACLE_HOME\oracle_common\common\bin
On UNIX: ORACLE_HOME/oracle_common/common/bin
Execute the following command:
On Windows: config_builder.cmd
On UNIX: sh config_builder.sh
Note:
When you run theconfig_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. Then select the Create Extension Template option to display the Create Extension Template screen (similar to the Template Type screen).
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 extension 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 3-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 3-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 Extension Template to create an extension template. Specify the source for the extension template. Specify the destination JAR file for the extension template. Click Next to continue. |
|
Always |
Update each template information field as needed. Click Next to continue. |
|
Only if applications are included in the domain or template source that you selected. |
Select the check box for each application that you want to include in the extension template. Deselect the check box for each application that you do not want to include in the extension template. 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. |