Installing and Configuring WebLogic 12c (v12.1.3) Hands-On Workshop Guide Copyright © 2014, Oracle. All rights Reserved
Hands-On Workshop – Installing and Configuring WebLogic 12c (v12.1.3)
Table of Contents Lab 1: Installing Oracle WebLogic Server 12c (v12.1.3).............................................3 1.1)
Installing WebLogic 12.1.3 using OEPE Installer on Windows.........................3
1.2) Installing WebLogic 12.1.3 and Coherence using Generic Installer on Windows.................................................................................................................. 9 Lab 2 - Configuring and Smoke-Testing a WebLogic Development Domain..............16 2.1)
Configuring a Developer WebLogic Domain.................................................16
2.2)
Smoke-Test the New WebLogic Domain:.......................................................21
2.2.1)
Starting the WebLogic Server................................................................21
2.2.2)
Checking WebLogic Server:...................................................................21
Revision History........................................................................................................ 24
Copyright © 2014, Oracle. All rights reserved. Page | 2
Hands-On Workshop – Installing and Configuring WebLogic 12c (v12.1.3)
Lab 1: Installing Oracle WebLogic Server 12c (v12.1.3) Estimated Time to Complete: 45 minutes Summary: This exercise will walk you through the installation of WebLogic Server 12c (v12.1.3) with Coherence and OEPE (Oracle Enterprise Pack for Eclipse). Note that starting with the v12.1.2 release of WebLogic server the Oracle Universal Installer (OUI) is now used (versus the old BEA installer). This lab assumes that a Windows platform will be used for the installation. There are 2 parts to this lab – the first uses the OEPE installer and the 2 nd uses the “Generic” installer. There are some subtle differences so both types of installations are shown here for reference. When you work through the workshop, only one installer type needs to be used. Relevant Links:
WebLogic Server Documentation Library – Note the new format of the documentation for 12c http://docs.oracle.com/middleware/1213/wls/index.html Official WebLogic 12.1.3 Installation Guide http://docs.oracle.com/middleware/1213/core/WLSIG/planning.htm#WL SIG237 YouTube Presentation about installing WebLogic 12.1.2 by Dave Cabelus https://www.youtube.com/watch?v=SDT3UMXSAFc The for WebLogic can be found here: http://www.oracle.com/technetwork/middleware/fusionmiddleware/s/index.html The for a JDK for running WebLogic can be found here: http://www.oracle.com/technetwork/java/javase/s/index.html
Activity Steps:
1.1) Installing WebLogic 12.1.3 using OEPE Installer on Windows This set of instructions is provided to contrast the Generic installer shown in the next section. The OEPE installer only has 5 total steps so is faster to configure but doesn’t give the ability to install the WebLogic or Coherence Examples. The “Generic Installer” has 8 steps and provides more control of what to install. The OEPE installer does install the following domain templates which aren’t available with the Generic installer: Enterprise Manager, Oracle Web Services
Copyright © 2014, Oracle. All rights reserved. Page | 3
Hands-On Workshop – Installing and Configuring WebLogic 12c (v12.1.3)
Manager, Java Required Files (JRF) for Async Web Services, SOAP over JMS, and the ADF application libraries. 1.2.1)
Go to the link shown above and “Free Oracle WebLogic Server 12c (12.1.3) and Installers for Developers” -> “Windows 32 installer including OEPE (2GB)”
The generic installer includes WebLogic Server and Coherence and is patchable via OPatch (used to be “BSU”, a.k.a: “SmartUpdate”). The Windows, Linux and Mac OS X installers add Oracle Enterprise Pack for Eclipse. Note that this is a FREE version of WebLogic Server for development 1.1.2)
Launch the Oracle WebLogic 12.1.3 installer by double-clicking on
oepe-12.1.3.1-kepler-installer-win32
1.1.3)
Wait for the install wizard to prepare for the installation
Copyright © 2014, Oracle. All rights reserved. Page | 4
Hands-On Workshop – Installing and Configuring WebLogic 12c (v12.1.3)
A command window will pop-up and start the installation wizard
1.1.4) On the Welcome Screen, click Next Note the new left-hand navigation to show progress through the installation steps.
1.2.5) On the Installation Location screen: Enter the location for the new “Oracle Home:” Recommended value for this lab: C:\Oracle\WLS_12.1.3_oepe Click Next
Copyright © 2014, Oracle. All rights reserved. Page | 5
Hands-On Workshop – Installing and Configuring WebLogic 12c (v12.1.3)
By default, this installer will install both WebLogic Server and Coherence. The generic installer found in the s directory behaves a little differently in the fact that it allows you to choose whether or not you want to install Coherence and the WebLogic samples. 1.2.6) On the Installation Summary screen, click the Install button to begin the installation process:
1.2.7)
View the Installation Progress and wait for the installation to be
completed
Copyright © 2014, Oracle. All rights reserved. Page | 6
Hands-On Workshop – Installing and Configuring WebLogic 12c (v12.1.3)
Note that during the “Generating Libraries” step, the installer generates some libraries that helps server startup times – it also generates client libraries. Select “Next” when the installation is complete
1.2.8) On the Installation Complete screen, select Finish Note that there is no longer any checkbox to “ Run QuickStart” in this installer - this is provided as a separate executable to be launched independently if desired. If you are using the generic installer, there is a quickstart checkbox used to configure the sample domains.
Copyright © 2014, Oracle. All rights reserved. Page | 7
Hands-On Workshop – Installing and Configuring WebLogic 12c (v12.1.3)
1.2.9)
Look at the directory structure that was laid-down for WebLogic 12.1.3
in your file explorer
When you compare this to a WLS 10.3.6 installation, you’ll notice that there are 4 new directories: inventory, install and oui are for the Oracle Universal Installer OPatch for patching The old “modules” directory has been nested under “oracle_common” Here’s a screenshot of a WLS 10.3.6 directory structure for comparison purposes:
Notice the patch directories as well as the version numbers of the specific products on the directory names – these were eliminated in WebLogic 12c.
Copyright © 2014, Oracle. All rights reserved. Page | 8
Hands-On Workshop – Installing and Configuring WebLogic 12c (v12.1.3)
1.2)
Installing WebLogic 12.1.3 and Coherence using Generic Installer on Windows This set of instructions is provided to contrast the OEPE installer shown in the previous section. The “Generic Installer” has 8 steps and provides more control of what to install. The OEPE installer only has 5 total steps so is faster to configure but doesn’t give the ability to install the WebLogic or Coherence Examples. The generic installer does not install the following domain templates: Enterprise Manager, Oracle Web Services Manager, Java Required Files (JRF) for Async Web Services, SOAP over JMS, and the ADF application libraries.
1.2.1)
Go to the link shown above and “Free Oracle WebLogic Server 12c (12.1.3) and Installers for Developers” -> “Generic WebLogic Server and Coherence installer (881MB)”
The generic installer includes WebLogic Server and Coherence and is patchable via OPatch (used to be “BSU”, a.k.a: “SmartUpdate”). Note that this is also a FREE version of WebLogic Server for development 1.2.2)
Before you can install any Oracle Fusion Middleware product using a
generic installer, you must and install a ed JDK on your system before attempting to run the installer. WebLogic 12.1.3 is ed with the Java 8 JDK v1.8.0_20 and above.
Copyright © 2014, Oracle. All rights reserved. Page | 9
Hands-On Workshop – Installing and Configuring WebLogic 12c (v12.1.3)
For more information about ed JDKs with WebLogic 12.1.3, see the following spreadsheet: “System Requirements and ed Platforms for Oracle Fusion Middleware 12c (12.1.3)”: 1.2.3) Launch the Oracle WebLogic 12.1.3 installer by opening an command-window in the directory where the generic was saved to. Either full-path the java command-line or set the JAVA_HOME and PATH environment variables to reflect the Java JDK. In this example, the v1.8.0_20 JDK is being used. set JAVA_HOME=C:\PROGRA~1\Java\jdk_1.8.0_20 set PATH=%JAVA_HOME%\bin;%PATH% Run the command: “java –jar fmw_12.1.3.0.0_wls.jar” and wait for the
installation files to get extracted and the pre-checks to take place
1.2.4)
Wait for the install wizard to prepare for the installation
1.2.5) On the Welcome Screen, click Next Note the new left-hand navigation to show progress through the installation steps.
Copyright © 2014, Oracle. All rights reserved. P a g e | 10
Hands-On Workshop – Installing and Configuring WebLogic 12c (v12.1.3)
1.2.6) On the Installation Location screen: Enter the location for the new “Oracle Home:” Recommended value for this lab: C:\Oracle\WLS12.1.3 Click Next
Copyright © 2014, Oracle. All rights reserved. P a g e | 11
Hands-On Workshop – Installing and Configuring WebLogic 12c (v12.1.3)
1.2.7) On the Installation Type screen, select “Complete with Examples” to install WebLogic, Coherence, and the examples for each. Select “Next” to continue:
1.2.8) Select “Next” on the Prerequisite Checks screen if all checks are successful, otherwise correct and re-launch the installer. A ed Java7 or Java8 JDK is required (ie: JDK 1.7.0_15+, or JDK 1.8.0_20+)
1.2.9) On the Specify Security Updates screen, either de-select “I wish to receive security updates via My Oracle ” or fill in your email and
and select the “Next” button
Copyright © 2014, Oracle. All rights reserved. P a g e | 12
Hands-On Workshop – Installing and Configuring WebLogic 12c (v12.1.3)
If you de-select the checkbox, select “Yes” button in the “My Oracle name/Email Address Not Specified” dialog that pops up:
1.2.10)
On the Installation Summary screen, click the Install button to
begin the installation process:
1.2.11)
Review the components that have been selected to be installed in the
Installation Summary screen then select the “Install” button.
Copyright © 2014, Oracle. All rights reserved. P a g e | 13
Hands-On Workshop – Installing and Configuring WebLogic 12c (v12.1.3)
1.2.12)
View the Installation Progress and wait for the installation to be
completed
Note that during the “Generating Libraries” step, the installer generates some libraries that helps server startup times – it also generates client libraries. 1.2.13) Select “Finish” when the installation is complete to dismiss the installation wizard. WebLogic 12.1.3 is now installed.
Copyright © 2014, Oracle. All rights reserved. P a g e | 14
Hands-On Workshop – Installing and Configuring WebLogic 12c (v12.1.3)
1.2.14)
Look at the directory structure that was laid-down by the Generic
installer for WebLogic 12.1.3 in your file explorer. Note how this is different from the directory that was installed by the OEPE installer as well as that of a WLS 10.3.6 install:
WLS 12.1.3 Generic
OEPE Installer
WLS 10.3.6
Installer Directories
Directories
Directories
Copyright © 2014, Oracle. All rights reserved. P a g e | 15
Hands-On Workshop – Installing and Configuring WebLogic 12c (v12.1.3)
Lab 2 - Configuring and Smoke-Testing a WebLogic Development Domain Estimated Time to Complete: 15 minutes Summary: This lab will walk the participants through the configuration and validation of a WebLogic development domain. This lab assumes that the generic installer was used and will reflect the pathnames from that part of Lab 2. Activity Steps:
2.1)
Configuring a Developer WebLogic Domain
Run the config wizard – this can be started by running the “ config.cmd” program in the directory: C:\Oracle\WLS_12.1.3\oracle_common\common\bin
A dialog box comes up while the configuration wizard starts up:
Copyright © 2014, Oracle. All rights reserved. P a g e | 16
Hands-On Workshop – Installing and Configuring WebLogic 12c (v12.1.3)
Note that just like the new installer, the configuration wizard now also uses the Oracle Universal Installer so has the same look-and-feel as other Oracle products like SOA Suite. Select the option to “Create a new domain” and override the base domain directory to something like “WLS_12.1.3_DevDomain” in the default directory - Then select “Next”.
The following option is automatically selected:
“Basic WebLogic Server Domain – 12.1.3.0 [wlserver]”
You don’t need to select any additional Templates for a plain old WebLogic development domain - just select “Next”. For more information on the use of Templates, look here.
Copyright © 2014, Oracle. All rights reserved. P a g e | 17
Hands-On Workshop – Installing and Configuring WebLogic 12c (v12.1.3)
Set weblogic to “welcome1”
You may use the default Java JDK that was used when WebLogic 12.1.3 was installed or select “Other JDK Location” and select a 64-bit JVM for the domain. In the future, if this WebLogic domain is extended for use with SOA, OSB, and/or BPM, a 64-bit JVM will be needed because the heapsize for all those applications together is larger than the max for a 32-bit JVM. Ensure that the “Development” Domain Mode is selected so the domain is easier to start/stop without having to provide / each time. Development mode is also easier to deploy applications to because WebLogic will poll an application directory for new artifacts to deploy.
Copyright © 2014, Oracle. All rights reserved. P a g e | 18
Hands-On Workshop – Installing and Configuring WebLogic 12c (v12.1.3)
The default domain is set to listen on port 7001 – if you want to override that port number you can modify the istration server settings or modify it after the domain is created by editing the configuration files or changing the port number in the WebLogic istration console. These steps aren’t covered in this workshop so select the “Next” button:
Review the configuration summary, then select the “ Create” button.
Monitor the configuration progress until the domain is created then select “ Next”.
Copyright © 2014, Oracle. All rights reserved. P a g e | 19
Hands-On Workshop – Installing and Configuring WebLogic 12c (v12.1.3)
After the domain is created, take note of the domain location and server URL then select “Finish” (don’t select the “Start Server” checkbox as we’ll start the server manually in the smoke-test next).
Copyright © 2014, Oracle. All rights reserved. P a g e | 20
Hands-On Workshop – Installing and Configuring WebLogic 12c (v12.1.3)
2.2) Smoke-Test the New WebLogic Domain: 2.2.1) Starting the WebLogic Server Start the WebLogic istration server by running the script “ startWebLogic.cmd” which is in the C:\Oracle\WLS_12.1.3\_projects\domains\WLS_12.1.3_DevDomain\bin directory. Two command-windows will launch starting the domain’s Server as well as the in-memory “Derby Database for the Examples Server” – this will take 10 – 20 seconds depending on the speed of your machine. You’ll know the domain is ready when the line “Server started in RUNNING mode” message appears in the console:
2.2.2) Checking WebLogic Server: You can test to be sure that WebLogic is up by going to the istration console at: http://localhost:7001/console The first time this URL is hit, the console application will be deployed onto the new WebLogic domain. In any subsequent console access, the console app will already be there so this delay only happens once.
as “weblogic”/”welcome1” (or whatever you set the weblogic to be). Copyright © 2014, Oracle. All rights reserved. P a g e | 21
Hands-On Workshop – Installing and Configuring WebLogic 12c (v12.1.3)
You should now see the WebLogic console as follows:
Copyright © 2014, Oracle. All rights reserved. P a g e | 22
Hands-On Workshop – Installing and Configuring WebLogic 12c (v12.1.3)
Open the “Environment” -> “Servers” -> “Server” and browse through this WebLogic managed server configuration.
You have successfully completed the Hands-On Workshop “Installing and Configuring WebLogic 12.1.3”
Copyright © 2014, Oracle. All rights reserved. P a g e | 23
Hands-On Workshop – Installing and Configuring WebLogic 12c (v12.1.3)
Revision History File Name
WebLogic_12.1.3_Install_and_Config_Workshop_v1.0.doc
Original Author(s)
John VanSant
Current Revision Author(s) Version
Date
Author(s)
Revision Notes
1.0
January 5, 2015
John VanSant
Original
Copyright © 2014, Oracle. All rights reserved. P a g e | 24