Académique Documents
Professionnel Documents
Culture Documents
ADF Deployment Guide: How-To Install & Configure WebLogic Server to Run ADF 11g Applications in Production
An Oracle JDeveloper How-To Document Written by Dana Singleterry, Oracle Corporation March, 2011
Introduction
This How-To Document details a step-by-step process for creating a deployment environment for Application Development Framework (ADF) applications. Included are steps to follow in creating a managed server, applying the Java Runtime Files (JRF) for the ADF, creation of the Web Tier (HTTP Server and WebCache) and then tuning elements for your ADF application that will provide for better performance. Note that this How-To assumes a Windows Server so unless otherwise stated, starting and stopping of WebLogic takes place from the Windows Start Menu although this can also occur from the command prompt and invoking the startWebLogic.cmd. The details here can also be used on a Linux Server with some minor variations. In addition, while most of the images in this How-To illustrate WebLogic Server 10.3.3, Application Development Runtime (ADR) 11.1.1.3.0, JDeveloper 11.1.1.3.0, etc... where appropriate the most recent version and differences in the process will be outlined. The Appendix also provides a step by step approach for both Application Development Runtime (ADR) 11g (11.1.1.4.0) and 11g (11.1.1.3.0). Note: The Optional sections in the Table of Contents below are separate files so if printing the document for reference, be sure to print the Optional sections as well. Requirements Download and Install WebLogic Server Download and Install Application Development Runtime (ADR) Create a WebLogic Domain With a Managed Server Apply Java Runtime Files (JRF) to the Managed Server Optional: Download and Install Web Tier Utilities Optional: Configure Web Tier Utilities JDeveloper 11g: Utilized for development, configuration, & deployment of sample application Optional: Download and Review ADF Application (web.xml and adf-config.xml configuration for Caching/Compression) Create a connection to the Managed Server Configure a JDBC Data Source Deploy ADF Application to the Managed Server Optional: Configure HTTP Server and Set Additional Performance Parameters Within WebCache Test ADF Application and Analyze Logs for Performance Enhancements Appendix Outlined process and downloads for Application Development Runtime (ADR) 11.1.1.4.0 Outlined process and downloads for Application Development Runtime (ADR) 11.1.1.3.0 Documentation
Requirements
WebLogic Server Application Development Runtime Oracle Web Tier Oracle JDeveloper Java JDK 6 Oracle Database XE Sample Application Schema
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
1/64
7/24/13
Create a new Middleware Home directory and name it as desired. Select Next to continue.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
2/64
7/24/13
It is recommended, but not required, that you register for security updates. Enter your Oracle Support Account credentials. Select Next to continue.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
3/64
7/24/13
This is the defaul list of products and components for the installation. For the purposes of this How-To, not all are necessary. Select Next to continue.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
4/64
7/24/13
Deselect the following products and components. Server Examples Evaluation Database Oracle Coherence Select Next to continue.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
5/64
7/24/13
Both JDKs may be installed by default such that when creating a WebLogic domain, it may be configured in a development mode with the recommended Sun JDK or in a production mode with the recommended JRockit JDK. Select Next to continue.
Go with the default product installation directories or change as desired. Select Next to continue.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
6/64
7/24/13
Install the Node Manager Service for remote management and monitoring as needed. This can also be started manually if preferred. Select Next to continue.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
7/64
7/24/13
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
8/64
7/24/13
Completed installation. No need to run Quickstart at this point as the WebLogic domain will be created in a later step. Select Done when complete.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
9/64
7/24/13
The setup utility will start and the reader will be prompted to specify their JRE/JDK location. JDK 6 is required for this installation and is assumed to already be installed.
Follow the wizard instructions. Select Next to continue on the Welcome Screen.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
10/64
7/24/13
A series of Prerequisite Checks will take place to ensure requirements are met. Once verified, select NEXT to continue.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
11/64
7/24/13
Specify the installation location, this is the WebLogic installation home utilized earlier when installing WebLogic Server, for the ADR and select Next to continue.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
12/64
7/24/13
Review the Installation Summary and Save the Response File for reference. If necessary, the reader can select Back to make revisions or select the topic to change to jump to that location. Once ready, select Install to continue.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
13/64
7/24/13
After selecting Install in the previous step, installation will begin and a Progress bar will provide the status of the installation. Select Next to complete the installation.
A Installation Complete summary screen will be provided and the reader will have the option to Save the Installation Details for reference. Select Finish to exit.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
14/64
7/24/13
Install the ADR (11.1.1.3.0) on top of ADR 11.1.1.2.0. Unzip the ADR (11.1.1.3.0) installation using the archive tool of choice.
The setup utility will start and the reader will be prompted to specify your JRE/JDK location. JDK 6 is required for this installation. As before, JDK 6 is assumed to be installed.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
15/64
7/24/13
Follow the wizard instructions. Select the Next buton on the Welcome Screen.
Specify the installation location (i.e. this is the same Oracle Middleware Home as specified for the ADR 11.1.1.2.0 install completed previously) for the ADR and the select Next to continue.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
16/64
7/24/13
Review the Installation Summary and Save the Response File for reference. If necessary, the reader can select Back to make revisions or select the topic to change to jump to that location. Once ready, select Install to continue.
After selecting Install in the previous step, installation will begin and a Progress bar will provide the status of the installation.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
17/64
7/24/13
An Installation Complete summary screen will be provided and the reader will have the option to Save the Installation Summary for reference. Select Finish to exit.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
18/64
7/24/13
Once the "Oracle Fusion Middleware Configuration Wizard" launches, select "Create a new WebLogic domain" followed by selecting Next to continue.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
19/64
7/24/13
In this step select "Generate a domain configured automatically to support the following products:" and select the following options: Oracle Enterprise Manager - 11.1.1.0 [oracle_common] Oracle JRF - 11.1.1.0 [oracle_common] Select Next to continue.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
20/64
7/24/13
Specify a Domain name such as adf_domain and the Domain Location should be the location of the WebLogic Server Middleware Home install performed earlier. Specifically, this will default to the correct location based on the prior steps of this How-To. Select Next to continue.
Provide the Administrator User Name and Password. NOTE: These credentials will be used later for the Administrator console and Enterprise Manager, etc. so keep them secure.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
21/64
7/24/13
This How-To demonstrates one possible production configuration so in "Configure Server Start Mode and JDK", be sure to select "Production Mode" and the JRockit SDK from the "Available JDKs" window. Select Next to continue.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
22/64
7/24/13
On the "Select Optional Configuration" screen, select "Administration Server" and "Managed Servers, Clusters and Machines". Select Next to continue.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
23/64
7/24/13
On the "Configure the Administration Server" screen, the options are left at their defaults. Know that they can be changed as required. Select Next to continue.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
24/64
7/24/13
On the "Configure Managed Servers" screen, select the Add option and enter the credentials as outlined below. Know that these are suggestions and the reader can change these as desired. Select Next to continue.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
25/64
7/24/13
On the the "Configure Machines" screen, select Add to create a machine with the details provided here. Know that the reader can change these as required. Select Next to continue.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
26/64
7/24/13
On the "Assign Servers to Machines" screen, select a machine in the right pane, only ADFMachine in this case, and then select the ADFServer in the left pane and shuttle it to the right. This assisgns the ADFServer to the ADFMachine for purposes of management. Select Next to continue.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
27/64
7/24/13
The next few screens shows a Configuration Summary WebLogic Domain and Managed Server that is being Created. In the drop down, select "Deployment" to inspect its attributes in the Details pane.
In the drop down, select "Application" to inspect its attributes in the Details pane.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
28/64
7/24/13
In the drop down, select "Summary" to inspect its attributes in the Details pane.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
29/64
7/24/13
In the drop down, select "Machine" to inspect its attributes in the Details pane. Select Create to create the domain and the managed server.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
30/64
7/24/13
The adf_domain is created along with the manged server. The Admin Server will be started in future step so deselect the "Start Admin Server" option and select Done to complete the configuration.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
31/64
7/24/13
The new domain is created and the summary provided. At this point, the Administration Server can be started. This can also be started via the command line for Windows or Linux (i.e...\Oracle\WlsStandalone\user_projects\domains\adf_domain\bin\startWeblogic.cmd). Start the Admin Server for the adf_domain.
A terminal window will open and prompt the reader for the WebLogic Server username and password. This is the uid/pwd that was used when creating the adf_domain earlier.
Once the WebLogic Server is running, log into the WebLogic Server Administration Console (http://localhost:7001/console ) to assess the server status and to perform further configuration as required. This is the uid/pwd that was provided when creating the adf_domain earlier.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
32/64
7/24/13
As can be seen in this view, the AdminServer is running but the ADFServer is not. This can be automated as needed. In this case, the reader will have to start the ADFServer manually.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
33/64
7/24/13
Select the Control tab followed by checking the box for the ADFServer and then select Start.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
34/64
7/24/13
Select Yes on the Server Life Cycle Assistant screen to start the ADFServer.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
35/64
7/24/13
The Summary of Servers screen will indicate that the ADF Server state is RUNNING once the start task is complete.
Select the Deployments to review application and modules that have been installed to the adf_domain.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
36/64
7/24/13
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
37/64
7/24/13
Once the reader has successfully authenticated into Oracle Enterprise Manager, expand the nodes for the domain and select the ADFServer created earlier. Notice an option "Apply JRF Template". Select the option "Apply JRF Template".
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
38/64
7/24/13
Upon success, a Confirmation response will be provided indicating the JRF Template has been successfully applied to the ADFServer. Also review a summary of the server state along with default Application Deployments.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
39/64
7/24/13
At the bottom of the Oracle Enterprise Manager Summary Screen, the reader can also review a list of default Servlets and JSPs available within the server.
JDeveloper 11g: Utilized for Development, Configuration, & Deployment of Sample Application
This section describes the use of JDeveloper to optimize an ADF Application for deployment. The reader will also configure a WebLogic Server datasource, create a connection to the WebLogic Server and deploy the sample application to the Managed Server. This How-To leverages JDeveloper 11g 11.1.1.3.0, however, the most current version of Oracle JDeveloper 11g, which is 11.1.1.4.0, can also be used without any significant differences. If not already done, download and install Oracle JDeveloper 11g from the download page. Go to archives at the bottom of the download page to get JDeveloper 11g (11.1.1.3.0) . See Appendix below for process and required software when using ADR 11g 11.1.1.4.0. After downloading JDeveloper, start the installer and follow the instructions within the Wizard. For specific JDeveloper installation instructions, the reader can refer to the Installation Guide for Oracle JDeveloper.
Right select on Application Server and select "New Application Server..." from context.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
40/64
7/24/13
Provide an appropriate name for the Connection. For Connection Type select WebLogic 10.3. Select Next to continue.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
41/64
7/24/13
Provide the credentials (uid/pwd) that were created during the configuration of the Managed Server earlier in this How-To. Select Next to continue.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
42/64
7/24/13
Provide the Weblogic Hostname, Port, and domain that are required for this configuration. Select Next to continue.
Test the Connection. If all tests are successful, select Next to continue.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
43/64
7/24/13
Select Finish to complete the creation of tthe connection to the Managed Server.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
44/64
7/24/13
Change the connection type to JDBC datasource for both the AppModuleLocal and AppModuleShared by selecting the Edit Icon and making the appropriate changes to each configuration respectively.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
45/64
7/24/13
Go with the Data Source Name that is provided and then follow the same process and change the datasource for the AppModuleShared Business Component Configuration Name for consistency.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html 46/64
7/24/13
Note: After this modification, if not already completed, create the mls user in the database and load the database schema provided. As used here the user mls is created and the mls dmp file is loaded by running imp at the command line within Windows. Go with the defaults that are provided via the Oracle database import utility. A similar process should be completed for other Operating Systems. Go to the WebLogic Server Adminstration Console (http://localhost:7001/console ) and define a datasource. Use the credentials (uid/pwd) that were supplied during the creation of the Managed Server. In this case, the jndi name must be jdbc/mlsDS. Go to the Domain Selection Section | JDBC | Data Sources on the main page of the Administration Console.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
47/64
7/24/13
Select Lock & Edit to lock the server for configuration purposes.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
48/64
7/24/13
Select New to create a new datasource and supply the following parameters. Select Next to continue.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
49/64
7/24/13
Choose the Database Driver of choice as required. In this How-To, *Oracle's Driver (Thin) for Instance connections is used. Select Next to continue.
The defaults for Support of Global Transaction and One-Phase Commit are used in this part of datasource creation. Configure as required. Select Next to continue.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
50/64
7/24/13
Provide the database connection credentials specific to the application. In this How-To, use the credentials provided here. Be sure to use the database uid/pwd that was used when loading the mls schema. Select Next to continue.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
51/64
7/24/13
Select Test Configuration to ensure that the datasource credentials provided are valid. The message "Connection test succeeded" is the valid response. Select Next to continue.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
52/64
7/24/13
Select the Target Server for this new JDBC Data Source. In this case that is the ADFServer. Select Finish to complete the creation of the JDBC Data Source and to assign that datasource to a Server Target.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
53/64
7/24/13
Be sure to select Activate Changes for the new JDBC Data Source that was created.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
54/64
7/24/13
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
55/64
7/24/13
Select Deployment and the Deployment Profile Provided followed by Edit to review the deployment profile.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
56/64
7/24/13
Provide a uniques Java EE Web Copntext Root name. In this case and in the sample application, housesdemo is used. Select OK followed by OK again to save the configuration.
Right select on the HousesDemo workspace and select Deploy from context followed by the HousesDemo application.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
57/64
7/24/13
Select the Application Server connection that was created earlier. Select Next to continue.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
58/64
7/24/13
Select Deploy to selected instances in the domain and select the ADFServer to deploy to. Select Next to continue.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
59/64
7/24/13
Review the Deployment Summary and when satisfied, select Finish to begin the deployment.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
60/64
7/24/13
Back in the Application Server Navigator, expand Deployments to see that the HousesDemo is actually deployed to the server.
Log into the Administration Console (http://localhost:7001/console ), expand Environments, select Servers followed by ADF Server, then select Deployments to see that HousesDemo application is deployed to the ADFServer instance and is Active.
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
61/64
7/24/13
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
62/64
7/24/13
. At first glance of the Oracle HTTP Server access.log, the reader will notice 8 jpg hits. The complete file (access.log) for these two sessions can be viewed at once for an easy comparison. These images were cached on first access.
Looking at the second part of the log, notice a new session id, where a second browser instance was created and the same page accessed. This time, since the .jpg images were cached, there is no get for them. This is but one performance improvement that is apparent.
Appendix
The details within provide a short summary that outlines the basic steps for configuring a Managed Server utilizing ADR 11.1.1.4.0 as well as
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html 63/64
7/24/13
How-To: ADF Deployment Guide The details within provide a short summary that outlines the basic steps for configuring a Managed Server utilizing ADR 11.1.1.4.0 as well as ADR 11.1.1.3.0. Within each table links are provided for the appropriate download as well as supporting documentation. Additional documentaition is provided in the final table for further reading regarding the various utilities used in the How-To document.
Documentation
The following table provides links to documentation used in the How-To. Oracle WebLogic Server Oracle ADR Oracle Web Tier Utilities Oracle JDeveloper
www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
64/64