Sun N1 Service Provisioning System User's Guide for BEA WebLogic 8 Plug-In 3.0

Creating the WebLogic Infrastructure

Use the WebLogic 8 Common Tasks page as a starting point to create and manage WebLogic servers and clusters.

ProcedureHow to Create a WebLogic 8 Domain and Administration Server

You need to create a domain and Administration Server before you can set up Managed Servers to host your applications. A domain is a set of WebLogic servers that is managed by an Administration Server. All information about the domain is contained in a configuration file that is stored on the Administration Server.

When you create a new domain by installing the AdminServer component, you also:

You can use this procedure to create a new domain or you can use this procedure to register an existing domain within the provisioning system by selecting the markOnly option.


Note –

In this document, two similar terms are used: AdminServer and Administration Server. The prepackaged Sun N1 Service Provisioning System WebLogic 8 component is called the AdminServer component. AdminServer represents the provisioning system component and Administration Server represents the installed application running in the WebLogic 8 environment.


Before You Begin

To create a WebLogic 8 domain, you must belong to a user group that has the Run Component Procedures permission on the folder that contains the component. You must also have the Allow on Host Set permission for the host set on which you plan to deploy the component.

Steps
  1. Verify that your WebLogic session variables, WL_DEFAULT_USER and WL_DEFAULT_PASSWORD, are set.

    WebLogic session variables must be seven characters long and include a number.

    For more information about session variables, see Chapter 5, Session Variables, in Sun N1 Service Provisioning System 5.2 Plan and Component Developer’s Guide.

  2. In the Common Tasks section in the browser interface, click WebLogic 8.

  3. Click the Domain Management: Create link.

    The plan's Details page displays.

  4. Click Run.

    The Run page displays.

  5. In the Plan Parameters area, select the variable settings for the AdminServer component that you plan to deploy.

    • If the variable settings have been established for this component, select the appropriate settings from the menu.

    • If the settings are not available from the menu, click Select From List.

      The Select Variable Settings From List window displays.

      • To create a new set of variable settings, select Create Set.

        The following list provides commonly updated variables for the AdminServer component.

        domainName

        Required. The WebLogic domain name.

        adminPort

        Required. The default TCP port for the AdminServer virtual host to use.

        Before the domain is created, a check is performed to verify that this port is available. To fix this error, free the port and run the startAdminServer component procedure found on the AdminServer component Details page.

        secureConnect

        Optional. True specifies that the SSL port can be used to connect the Administration Server.

        startScriptWindows

        Required for Windows systems. This variable specifies the name of the domain start script for Windows Systems. The value of this variable must be a .cmd file.

        production

        Required. This variable determines whether the managed server is run in production mode. The default value of production is false. This variable can be set to true or false.

        Variables that are updated less often include configuration variables such as the following:

        adminManagedServer

        Required. The name of the managed server that hosts the domain administration console. The default value is myserver. If performing a markOnly install, set the variable to the server name used during the WebLogic install.

        adminHost

        Required. The hostname or IP address that managed servers use to connect to the Admin Server. The default value is the hostname of the Remote Agent on which the Admin Server resides.

        targetRefName

        Required. This variable becomes the name of the domain's virtual host. The substitution variable is based on the values for the host name and for the domain name. This variable follows the format :[target:sys.hostName]_weblogic_admin_ :[domainName]. For example, sqa-420_weblogic_admin_wls.

        The Select Variable Settings From List window displays.

        1. In the text field at the top of the table, type the name of the new variable settings set.

        2. To change the WebLogic Domain name, select the domainName row and type the new domain name.

        3. To change the port number for the Administration Server from the default value of 7001, select the adminPort row and type the new port number.

        4. To specify that secure HTTP be used to connect to the Administration Server, select the secureConnect row and type True in the text field.

        5. To change the path to where WebLogic is installed, select the beaHome row and type the correct path.

          The installPath variable, beaHome variable, and the WebLogic BEAHome of installation plan variable must contain the same value .

          The default value for these three variables is /usr/local/bea.


          Note –

          The value for the installPath variable is treated as a relative path to the default Remote Agent directory, unless you specify an absolute path, such as /opt or c:\mydir. For example, for a Windows Remote Agent, if you set the installPath variable to c\mydir and deploy the file to an Agent with a default home directory of c:\Program Files\N1 Service Provisioning System\agent, the file is deployed to c:\Program Files\N1 Service Provisioning System\agent\c\mydir.


        6. If necessary, modify the value of the remaining predefined variable.

          The targetRefName is pre-defined for you, although you can modify it if necessary. The targetRefName is created based on the values for the host name and for the domain name. This variable follows the format :[target:sys.hostName]_admin_:[domainName]

      • To use variable components from another component, click Import Set.

        For more information about importing variable sets, see How to Run a Plan in Sun N1 Service Provisioning System 5.2 Operation and Provisioning Guide.

        The Import Variable Settings window displays.

        1. If necessary, go to the folder that contains the component with the variable settings to import.

        2. Select the component's version.


          Note –

          Variable settings can vary between component versions.


        3. Click Import Variable Settings.

          The imported variable settings display in the table.

        4. Click Select.

  6. Select the target host.

    Target the virtual host that was created when you installed the WebLogic software. See How to Install the WebLogic Software procedure.


    Note –

    The target host must be a member of the com.sun.weblogic#InstallHS host set.


  7. If you are capturing an existing WebLogic domain within the provisioning system, select the markOnly option.

  8. Click Run Plan (Includes Preflight).

ProcedureHow to Create Multiple Domains with Different Passwords

You can create multiple domains using the same user and password. However, if you prefer to have separate passwords for each of your domains, you need to update your WebLogic user and password session variables after each domain installation.

The plan that creates new domains always uses the default session variable names, WL_DEFAULT_USER and WL_DEFAULT_PASSWORD.

Steps
  1. Install the new domain and AdminServer using the default WebLogic session variables, WL_DEFAULT_USER and WL_DEFAULT_PASSWORD.

    See How to Create a WebLogic 8 Domain and Administration Server.

  2. Go to the Session Variables page by clicking Session Variables at the top of the browser interface.

  3. Create new session variables for the newly installed AdminServer.

    These new session variables have the same value as the default variables with which you installed the AdminServer.

    Attribute Name  

    Default Session Variable Names 

    New Session Variable Names 

    adminUser

    WL_DEFAULT_USER

    WL_TEST_USR

    adminPassword

    WL_DEFAULT_PASSWORD

    WL_TEST_PWD

  4. Go to the host Details page for the AdminServer you created in step 1 and click Edit.

  5. Update the AdminServer's host type attributes.

    For example, replace the adminUser value with :[session:WL_TEST_USR].

  6. If you have another domain to install, return to the Session Variables page and update the default WebLogic session variables with the new values to be used for the next domain you plan to install.

ProcedureHow to Create a WebLogic Managed Server

You can run multiple Managed Servers in each domain to host your applications. WebLogic Managed Servers are captured and represented in the provisioning system by Server components. Throughout this book, Server refers to the provisioning system component, while Managed Server refers to the installed instance of the Managed Server running in the WebLogic 8 environment.

You can use this procedure to create a new Managed Server or you can use this procedure to register an existing Managed Server within the provisioning system by selecting the markOnly option.


Note –

If you plan to create a cluster, you need to create the Managed Servers that belong to that cluster before you create the cluster.


Before You Begin

Before you can create a WebLogic Managed Server, the following criteria must be met.

Steps
  1. In the Common Tasks section in the browser interface, click WebLogic 8.

  2. Click the Application Server Management: Create link.

    The plan's Details page displays.

  3. Click Run.

    The Run page displays.

  4. In the Plan Parameters area, select the variable settings for the ManagedServer component that you plan to deploy.

    The Server component represents the Managed Server instance within the WebLogic 8 environment.

    • If the variable settings have been established for this component, select the appropriate settings from the menu.

    • If the settings are not available from the menu, click Select From List.

      The Select Variable Settings From List window displays.

      • To create a new set of variable settings, select Create Set.

        The following list provides commonly updated variables for the ManagedServer component.

        variable set name

        Required. A name for the new variable set you create

        adminServerHostName

        Required. Name of the AdminServer virtual host that hosts the new Managed Server. This value will be in the format remoteAgentName_weblogic_admin_domainName.

        You can find the virtual host on the Hosts page. The virtual host will be of type com.sun.weblogic8#AdminServerHS.

        targetName

        Required. The new Managed Server's name. This name is used in the targetRefName variable to create the Managed Server virtual host.

        startupScriptName

        Required. The name of the Managed Server's startup script.

        The default location of the startup script is /usr/local/bea/user_projects/servers/ domainName/targetName. This location can be changed by setting the altServerRoot component variable.

        startupScriptNameWindows

        Required for Windows systems. This variable specifies the name of the domain start script for Windows Systems. The value of this variable must be a .cmd file.

        serverPort

        Required if not using SSL. The default value for this variable is 7010. If this port is not available, the Managed Server does not start and an error message displays. After you free the port, you can start the Managed Server by running the Start component procedure on the Managed Server's component Details page.

        serverSslPort

        Required if using SSL. The default value for this variable is 7020. This port must be available, otherwise the Managed Server does not start and an error message displays. After you free the port, you can start the Managed Server by running the Start component procedure on the Managed Server's component Details page.

        production

        Required. This variable determines whether the managed server is run in production mode. The default value of production is false. This variable can be set to true or false.

        webLogicUser

        Required. The UNIX user to run the WebLogic installation. This user must exist on the host to be installed and must have write permission on the beaHome directory. The default value for this variable is taken from the WebLogic software installation component.

        listenAddress

        Required. The IP address the Managed Server uses to listen.

        serverRoot

        Required. The directory used for the Managed Server.

      • To use variable components from another component, click Import Set.

        For more information about importing variable sets, see How to Run a Plan in Sun N1 Service Provisioning System 5.2 Operation and Provisioning Guide.

  5. Select the target host or target host set.

    The Managed Server resides on the Remote Agent that you target.


    Note –

    The target host must be a member of the com.sun.weblogic#AdminServer host set.


    Target the virtual host that was created when you installed the WebLogic software. See How to Install the WebLogic Software procedure.


    Note –

    The target host must be a member of the com.sun.weblogic#InstallHS host set.


  6. If you are capturing an existing WebLogic Managed Server within the provisioning system, select the markOnly option.

  7. Click Run Plan (Includes Preflight).

ProcedureHow to Create a License Component

This procedure provides the steps on how to create a license component. After the license component is created, see How to Install a License Component to install the license.

Steps
  1. In the Common Tasks section in the browser interface, click WebLogic 8.

  2. Click the License Management: Create link.

    The component's Edit page displays.

  3. Type the name of the new license component.

  4. (Optional) Type the components label and description.

  5. Select a host that has a copy of the BEA license on its file system.

  6. Navigate through the host's file system and select the license file.

  7. Click Check In Selected Item.

    The component's Check In page displays.

  8. Choose a folder on which you have edit permissions.

  9. Click Continue to Check In.

ProcedureHow to Install a License Component

Before You Begin

Before you can install a license component, one must exist within the provisioning system. See How to Create a License Component.

Steps
  1. In the Common Tasks section in the browser interface, click WebLogic 8.

  2. Click the License Management: View All link.

    The Components page displays.

  3. In the row of the license component that you plan to install, click Details.

    The component's Details page displays.

  4. In the Component Procedures table, select the Default: Install procedure and click Run.

    The plan's Run page displays.

  5. Select the target host.

    You target the AdminServer virtual host.


    Note –

    You do not need to modify the component variables for license installation.


  6. (Optional) If you want to replace an existing license, in the Plan Variables section, select the Replace Rather Than Merge With Existing License option.


    Note –

    If you choose to replace an existing license, you need to restart the WebLogic domain for the new license to take effect.


  7. Click Run Plan (Includes Preflight).

ProcedureHow to Create a WebLogic Cluster

You might need to create a cluster for the following reasons:

A cluster appears to clients as a single WebLogic Managed Server instance. The server instances that constitute a cluster can run on the same machine, or can be located on different machines. Each cluster member in a cluster must run the same version of WebLogic.

You can use this procedure to create a new cluster or you can use this procedure to register an existing cluster within the provisioning system by selecting the markOnly option.

Before You Begin

Before you create a WebLogic cluster, you must create a WebLogic domain, an Administration Server, and the Managed Servers that you plan to use in the cluster.

To create a WebLogic cluster, you must belong to a user group that has the Run Component Procedures permission on the folder that contains the component. You must also have the Allow on Host Set permission for the host set on which you plan to deploy the component.

Steps
  1. In the Common Tasks section in the browser interface, click WebLogic 8.

  2. Click the Cluster Management: Create link.

    The plan's Details page displays.

  3. Click Run.

    The Run page displays.

  4. In the Plan Parameters area, select the variable settings for the Cluster component that you plan to deploy.

    • If the variable settings have been established for this component, select the appropriate settings from the menu.

    • If the settings are not available from the menu, click Select From List.

      The Select Variable Settings From List window displays.

      • To create a new set of variable settings, select Create Set.

        The following list provides commonly updated variables for the ManagedServer component.

        variable set name

        Required. A name for the new variable set you create

        targetName

        Required. The name of the new cluster.

        clusterAddress

        Optional. This variable can be a DNS host name that maps to multiple IP addresses or a comma-separated list of single address host names or IP addresses. No value is necessary for this variable.

        multicastAddress

        This variable provides the address that cluster members can use to communicate with each other.

        multicastPort

        This variable provides the port number that cluster members can use to communicate with each other.

        The Select Variable Settings From List window displays.

        1. In the text field at the top of the table, type the name of the new variable settings set.

        2. To change the name of the new cluster, select the targetName row and type the new name.

        3. To specify the address for the cluster instance, select the clusterAddress row and type the address.

          This variable can be a DNS host name that maps to multiple IP addresses or a comma-separated list of single address host names or IP addresses. No value is necessary for this variable.

        4. To change the cluster's multicast port, select the multicastAddress row and type the new address.

          This variable provides the address that cluster members can use to communicate with each other. The default value is 237.0.0.1.

        5. To change the cluster's multicast address, select the multicastPort row and type the new port number.

          This variable provides the aport number that cluster members can use to communicate with each other. The default value is 7001.

        6. If necessary, modify the value of the remaining predefined variables.

          • The installPath is created based on the value for the AdminServer virtual host name, the domain name, and the cluster name.

          • The targetRefName is created based on the values for the host name and for the domain name. This variable follows the format :[target:sys.hostName]_admin_:[domainName]

        7. Click Save.

          The new variable settings display in the table.

        8. Click Select.

      • To use variable components from another component, click Import Set.

        For more information about importing variable sets, see How to Run a Plan in Sun N1 Service Provisioning System 5.2 Operation and Provisioning Guide.

  5. Select the target host.

    Because you can only install a cluster on an Administrative Server, the target host is the AdminServer virtual host.

  6. If you are capturing an existing WebLogic cluster within the provisioning system, select the markOnly option.

  7. Click Run Plan (Includes Preflight).

ProcedureHow to Create Cluster Members

Cluster nodes are Managed Servers assigned to a cluster. You will want to create cluster members to make your applications highly available and scalable.

When a Managed Server joins the cluster, the applications that are currently targeted to the Managed Server continue to target that server, the application deployment state is preserved. The plan that creates the cluster members automatically stops the Managed Server to add it to the cluster. After the Managed Server is added, the plan restarts the Managed Server.

You can use this procedure to create a new cluster member or you can use this procedure to register an existing cluster member within the provisioning system by selecting the markOnly option.

Before You Begin

Before you can create cluster members, the following requirements must be met.

To create a cluster member, you must belong to a user group that has the Run Component Procedures permission on the folder that contains the component. You must also have the Allow on Host Set permission for the host set on which you plan to deploy the component.

Steps
  1. In the Common Tasks section in the browser interface, click WebLogic 8.

  2. Click the Cluster Member Management: Join link.

    The plan's Details page displays.

  3. Click Run.

    The plan's Run page displays.

  4. Choose the Managed Server that you want to add to the cluster.

    • Select the Target Host by typing the Managed Server's name or selecting it from a list.

    • Select the Target Host Set from the menu.

  5. Verify that the plan variable WebLogic Cluster Name contains the correct cluster name.

  6. To specify how long the provisioning system waits before verifying that the server was restarted, type the number of seconds in the Seconds to Wait Before Failing Verify Step field.

  7. If you are capturing an existing WebLogic cluster member within the provisioning system, select the markOnly option.

  8. Click Run Plan (Includes Preflight).