A Oracle WebLogic Server Installation Example

There are different ways of installing Oracle WebLogic Server. This topic contains an example to install Oracle WebLogic Server.

This topic contains the following sections that describe software requirements and WebLogic Server installation and configuration:

Installing WebLogic Server

The Advanced Management Console requires Java SE Development Kit 8 Downloads, update 65 or later, and WebLogic Server supported versions, such as 12.1.3 or 12.2.1. See Software Prerequisites and System Requirements for Advanced Management Console Components.

Note:

The version of WebLogic Server as mentioned in Installing the Oracle WebLogic Server in the Oracle Fusion Middleware Installing and Configuring Oracle WebLogic Server and Coherence guide may not be the default one. Ensure to download the correct version.

Setting Up the Environment for WebLogic Server

The Advanced Management Console server initialization web page is not protected and can be accessed by any user.

Note:

This topic is based on Oracle WebLogic Server version 12.1.3. Other versions may need different configurations. In the future releases of the Advanced Management Console, there aren’t any plans to continue supporting Oracle WebLogic Server 12.1.3.

To set up the required environment variables for WebLogic Server:

  1. Define the environment variable, JAVA_HOME, and set it to JDK 8, for example, C:\java\jdk1.8.0_121.
  2. For a Windows operating system, run configure.cmd from the extracted WebLogic Server folder, which is MW_HOME.

    For a Linux operating system, run configure.sh from the extracted WebLogic Server folder, which is MW_HOME.

  3. When prompted to create a new domain, select N. You need to create the domain folder later.

Creating a WebLogic Server Domain

To create a WebLogic Server domain:

  1. Define JAVA_HOME. See Setting Up the Environment for WebLogic Server.
  2. For a Windows operating system, run the config.cmd file from the WebLogic Server installed directory, %MW_HOME%\oracle_common\common\bin\config.cmd.

    For a Linux operating system, run the config.sh file from the WebLogic Server installed directory, %MW_HOME%/oracle_common/common/bin/config.sh.

  3. Ensure that Create a New Domain is selected, and then select the folder for the new domain. The default folder is %MW_HOME%\user_projects\domains\base_domain. The domain name is base_domain, which can be changed.
  4. Click Next.
  5. In the Templates step, select Create Domain Using Product Templates, and then select the Basic WebLogic Server Domain template. Click Next.
  6. In the Administrator Account step, configure the administrative manager admin account. Click Next.
  7. In the Domain Mode and JDK step, click the domain mode option as Production and specify the JDK if it is different from the bootstrap JDK. Click Next.
  8. In the Advanced Configuration step, do not select any of the check boxes for Administration Server, Node Manager, and Managed Servers, Clusters, and Coherence. Click Next.
  9. For all the Views in Deployment, Application, and Service screens, do not change the default folder options.
  10. Click Create to create the domain.
  11. When the Domain Created Successfully message is displayed, select Next.
  12. In the Configuration Success step, click the check box for Start Admin Server to start the server. Click Finish.

In the Advanced Management Console documentation, the directory %MW_HOME%\user_projects\domains\domain1 represents DOMAIN_HOME.

Starting a WebLogic Server Administration Server

To log in to the WebLogic Server administration server:

  1. For a Windows operating system, start the administration server with %DOMAIN_HOME%\startWebLogic.cmd.

    For a Linux operating system, start the administration server with %DOMAIN_HOME%/startWebLogic.sh.

  2. If the SSL port is configured for the WebLogic Sever Administration Server, then in the browser, go to the default URL https://localhost:7002/console. Otherwise, in the browser, go to the default URL http://localhost:7001/console.
  3. Use your administrative credentials to log in to the server.

Creating and Configuring a WebLogic Server Managed Server

Domains include a special Oracle WebLogic Server instance called the Administration Server, which is the central point from which you configure and manage all resources in the domain. Typically, you configure a domain to include additional Oracle WebLogic Server instances called Managed Servers.

Follow this example method to create a Managed Server for the WebLogic Server:

  1. Define the environment variable, JAVA_HOME. See Setting Up the Environment for WebLogic Server.
  2. For a Windows operating system, run %DOMAIN_HOME%\bin\setDomainEnv.cmd, which is required to set the environment.

    For a Linux operating system, run %DOMAIN_HOME%/bin/setDomainEnv.sh, which is required to set the environment.

  3. For a Windows operating system, start the node manager with %DOMAIN_HOME%\bin\startNodeManager.cmd. If the node manager does not start, then edit %DOMAIN_HOME%\nodemanager\nodemanager.properties and set NativeVersionEnabled=false.

    For a Linux operating system, start the node manager with %DOMAIN_HOME%/bin/startNodeManager.sh. If the node manager does not start, then edit %DOMAIN_HOME%/nodemanager/nodemanager.properties and set NativeVersionEnabled=false.

  4. Start the administrative server and log in to the server as described in Starting a WebLogic Server Administration Server.
  5. From the Domain Structure block in the left panel, go to Environment and select Machines. Create a new machine. Enter any unique name in the Name field and then enter the host name (for example, localhost) and server listen port that matches the node manager settings. Click Finish to create the machine.
  6. From the Domain Structure block in the left panel, go to Environment and select Servers. Create a new server. Enter any unique name in the Name field and then enter the host name and server listen port. Ensure that the new server listen port must be unique from the existing Administration Server listen port. Click Finish to create the server.
  7. From the Domain Structure block in the left panel, go to Environment and select Servers. Click the server you created in step 6. In the Configuration tab associate this server to the new machine you created in step 5.
  8. Click the Control tab and then click the check box for the associated server and machine. Then click Start to start the server.
  9. In the browser, go to https://hostname:port and verify that the server is running. The Advanced Management Console uses HTTPS only for communication between the Advanced Management Console server and clients. See Trusted HTTPS Certificate.

Configuring LDAP Security Server in WebLogic Server

You can configure your Oracle WebLogic server to connect to Lightweight Directory Access Protocol (LDAP) server, so that the Advanced Management Console can communicate with the WebLogic Server, without having to connect to the LDAP

This topic contains sample instructions to configure the LDAP security provider in the WebLogic server, so that the WebLogic server gets connected to the LDAP server. The type of LDAP being configured in this example is OpenLDAP. This means OpenLDAP (external provider) server runs on localhost or on a remote server. If a different type of LDAP server is used, then there are chances of these instructions varying.

To configure WebLogic server to connect to the LDAP server:

  1. Add a new security provider in the WebLogic server:
    1. Log in to WebLogic server admin console.
    2. Click Domain, and select Security realms, and then myrealm.
    3. Click Providers tab and then select New.
    4. Enter a name for the new provider, for example, LDAP.
    5. Set Provider Type to LDAPAuthenticator.
    6. Click Save.
      A Provider is created.
  2. Configure the provider:
    1. Select the Provider that you just created.
    2. Click Provider Specific tab.
    3. Enter the following details in the following sections:
      Note that these are sample values only. You need to enter these values, based on the values configured on the LDAP server. Therefore, these values vary based on how the LDAP is set up.
    • Connection section:

      • Host: localhost

      • Port: <portnumber>

      • Principal: cn=admin,dc=oracle,dc=com

      • Credential: welcome0

    • Users section:

      • User Base DNcn=users,ou=amc,dc=oracle,dc=com

        Note:

        This value is based on the configuration of the LDAP server. You can set other values for the User Base DN field based on the LDAP server configuration.
      • All Users Filter(objectclass=person)

      • User Name Attribute: uid

      • User Object Class: person

    • Groups section:

      • Group Base DB: cn=groups,ou=amc,dc=oracle,dc=com

        Note:

        This value is based on the configuration of the LDAP server. You can set other values for the User Base DN field based on the LDAP server configuration.
      • All Groups Filter(objectclass=groupOfNames)

      • Group From Name Filter(&(cn=%g)(objectclass=groupOfNames))

    • Static Groups section:

      • Static Group Name Attribute: cn

      • Static Group Object ClassgroupOfNames

      • Static member DN attributemember

      • Static Group DNs from Member DN Filter(&(member=%M)(objectclass=groupOfNames))

  3. Click Save.
  4. Restart the Admin server as well as all the managed servers.
  5. Login to the Advanced Management Console UI, and click the User sub tab in the Configuration tab and ensure that the Enable Container based authentication checkbox is selected. By default, you aren't authenticated by the external LDAP server. If you want to enable the LDAP authenticatation, then you need to enable it by selecting the checkbox.