weblogic server installation

Document Sample
weblogic server installation Powered By Docstoc
					Introduction

This is a complete Weblogic tutorial. The tutorials will teach you Weblogic application server
from basic to an expert level.

Here you will learn Weblogic Administration tasks on both Windows (32-bit) and Linux(32-
bit)operating systems.

Definition:

In September 1995, Paul Ambrose and Carl Resnikoff co-founded WebLogic, Inc. After
which BEA Systems took over WebLogic, Inc in 1998 and named it BEA Weblogic. Oracle
aquired BEA in 2008 and named it Oracle Weblogic. Today, Weblogic Application server is
one of the most popular application server in the market. Oracle weblogic is a server software
application that runs on a middle tier. That is, between the database and browser-based thin
clients.

Supported Versions:

WebLogic Server 11gR1 (10.3.3)
WebLogic Server 11gR1 (10.3.2)
WebLogic Server 11g (10.3.1)
WebLogic Server 10.3
WebLogic Server 10.0
WebLogic Server 9.2
WebLogic Server 9.1
WebLogic Server 9.0
WebLogic Server 8.1
WebLogic Server 7.0
WebLogic Server 6.1
WebLogic Server 6.0
WebLogic Server 5.1
WebLogic Server 4.0
WebLogic Tengah 3.1
WebLogic Tengah 3.0.1
WebLogic Tengah
Weblogic 10.3.3 installation on Linux
In this tutorials, we are going to learn on how to install WebLogic Server 11gR1 (10.3.3) on
Linux(32-bit) platform. We will also learn the basic weblogic administration task to expert level
weblogic administration in this tutorial.

Downloads:

Weblogic server can be download from here.

You need to accept the license agreement before downloading the software.

Select the version "Oracle WebLogic Server 11gR1 (10.3.3) + Coherence - Package
Installer(standalone installer comes with the jdk)" Under Linux(32-bit JVM) column. Select
"x86: 705 MB File1".

Installation:

There are three modes of installation:

1. Graphical Mode.

2. Console Mode.

3. Silent Mode.

In Graphical mode, GUI is available to do the installation.

In Console mode, a command prompt is available to do the configuration, where a user will
input the values.

***** In Silent mode, all the details will be in an xml file and configuration is done on the basis
of the values in the xml file.Silent mode is best approach if you are trying to automate the
installation process.

Once the file is copied on the Linux server (example: /home/weblogic).

Weblogic Platform Installation Steps:

1. Change the file permission as follows.

chmod a+x wls1033_linux32.bin


2. Run the bin file to start the installation.
./wls1033_linux32.bin

Extracting 0%.....................................100%

Unable to instantiate GUI, defaulting to console mode.

<------ Oracle Installer - WebLogic 10.3.3.0 -------->


3. Welcome prompt

Welcome



This installer will guide you through the installation of WebLogic 10.3.3.0.
Type "Next" or enter to proceed to the next prompt.
If you want to change data entered previously, type "Previous".
You may quit the installer at any time by typing "Exit".

Enter [Exit][Next]> Next

<------ Oracle Installer - WebLogic 10.3.3.0 -------->


4. Home Directory Selection:

Choose Middleware Home Directory:

------------------------------------------



"Middleware Home" = [Enter new value or use default
"/root/Oracle/Middleware"]

Enter new Middleware Home OR [Exit][Previous][Next]> /usr/local/weblogic103

<------ Oracle Installer - WebLogic 10.3.3.0 -------->


Choose Middleware Home Directory:

------------------------------------------



"Middleware Home" = [/usr/local/weblogic103]

Use above value or select another option:
    1 - Enter new Middleware Home
    2 - Change to default [/root/Oracle/Middleware]

Enter option number to select OR [Exit][Previous][Next]> 1
<------ Oracle Installer - WebLogic 10.3.3.0 -------->


Choose Middleware Home Directory:

------------------------------------------



"Middleware Home" = [/usr/local/weblogic103]

Enter new Middleware Home OR [Exit][Previous][Next]> Next

<------ Oracle Installer - WebLogic 10.3.3.0 -------->


5. Security updates selection

Register for Security Updates:

------------------------------------------



Provide your email address to be informed of security issues, install the
product,
and initiate configuration manager.
http://www.oracle.com/support/policies.html

   1|Email:[]
   2|My Oracle Support Password:[]
   3|Receive Security Update:[Yes]

Enter index number to select OR [Exit][Previous][Next]> 3

<------ Oracle Installer - WebLogic 10.3.3.0 -------->



Register for Security Updates:

------------------------------------------



Provide your email address to be informed of security issues, install the
product,
and initiate configuration manager.
http://www.oracle.com/support/policies.html

"Receive Security Update:" = [Enter new value or use default "Yes"]

Enter [Yes][No]? No
<------ Oracle Installer - WebLogic 10.3.3.0 -------->


Register for Security Updates:

------------------------------------------



Provide your email address to be informed of security issues, install the
product,
and initiate configuration manager.
http://www.oracle.com/support/policies.html

"Receive Security Update:" = [Enter new value or use default "Yes"]

     ** Do you wish to bypass initiation of the configuration manager and
     ** remain uninformed of critical security issues in your configuration?

Enter [Yes][No]? Yes

<------ Oracle Installer - WebLogic 10.3.3.0 -------->


Register for Security Updates:

------------------------------------------



Provide your email address to be informed of security issues, install the
product,
and initiate configuration manager.
http://www.oracle.com/support/policies.html

   1|Email:[]
   2|My Oracle Support Password:[]
   3|Receive Security Update:[No]

Enter index number to select OR [Exit][Previous][Next]> Next

<------ Oracle Installer - WebLogic 10.3.3.0 -------->


6. Installation type selection

Choose Install Type:

------------------------------------------



Select the type of installation you wish to perform.
 ->1|Typical
    | Install the following product(s) and component(s):
    | - WebLogic Server
    | - Oracle Coherence

   2|Custom
    | Choose software products and components to install and perform
optional
       configuration.


Enter index number to select OR [Exit][Previous][Next]> 1

<------ Oracle Installer - WebLogic 10.3.3.0 -------->




7. Product Installation directory selection

Choose Product Installation Directories:

------------------------------------------



Middleware Home Directory: [/usr/local/weblogic103]

Product Installation Directories:

   1|WebLogic Server: [/usr/local/weblogic103/wlserver_10.3]
   2|Oracle Coherence: [/usr/local/weblogic103/coherence_3.5]

Enter index number to select OR [Exit][Previous][Next]> 1

<------ Oracle Installer - WebLogic 10.3.3.0 -------->


Choose Product Installation Directories:

------------------------------------------



     "WebLogic Server" = [Enter new value or use default
                          "/usr/local/weblogic103/wlserver_10.3"]

Enter new WebLogic Server OR [Exit][Previous][Next]> Next

<------ Oracle Installer - WebLogic 10.3.3.0 -------->


Choose Product Installation Directories:
------------------------------------------



Middleware Home Directory: [/usr/local/weblogic103]

Product Installation Directories:

   1|WebLogic Server: [/usr/local/weblogic103/wlserver_10.3]
   2|Oracle Coherence: [/usr/local/weblogic103/coherence_3.5]

Enter index number to select OR [Exit][Previous][Next]> Next

<------ Oracle Installer - WebLogic 10.3.3.0 -------->


8. Installation Information & Progress

The following Products and JDKs will be installed:

---------------------------------------------------------



    WebLogic Platform 10.3.3.0
    |_____WebLogic Server
    |    |_____Core Application Server
    |    |_____Administration Console
    |    |_____Configuration Wizard and Upgrade Framework
    |    |_____Web 2.0 HTTP Pub-Sub Server
    |    |_____WebLogic SCA
    |    |_____WebLogic JDBC Drivers
    |    |_____Third Party JDBC Drivers
    |    |_____WebLogic Server Clients
    |    |_____WebLogic Web Server Plugins
    |    |_____UDDI and Xquery Support
    |    |_____Evaluation Database
    |_____Oracle Coherence
    |    |_____Coherence Product Files
    |_____JDKs
         |_____SUN SDK 1.6.0_18
         |_____Oracle JRockit 1.6.0_17 SDK

    *Estimated size of installation: 1,116.1 MB


Enter [Exit][Previous][Next]> Next

<------ Oracle Installer - WebLogic 10.3.3.0 -------->

Installing files..

0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]
Installing JDK....

0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]

Creating Domains...

<------ Oracle Installer - WebLogic 10.3.3.0 -------->




8. Installation Completed

Installation Complete




Congratulations! Installation is complete.



Press [Enter] to continue or type [Exit]>




Weblogic 10.3.5 Silent Installation on Linux
Pre-requisite:

Make sure you download and install the JDK 1.6 version for 64 bit operating system. As it is
required to execute the weblogic generic installer.

Installation:

Once the file is copied on the Linux server (example: /home/weblogic).

Weblogic Platform Installation Steps:

1. Change the file permission as follows.

chmod a+x wls1035_generic.jar
2. Create a silent.xml file. The installer will read the configuration information from the
silent.xml file, so user does not have to input the values during the silent installation process.
Below is the sample silent.xml file, which you can use for the weblogic platform installation.
You can change the values according to your environment.

<?xml version="1.0" encoding="UTF-8"?>
<!-- Silent installer option: -mode=silent -silent_xml=/home/me/silent.xml --
>
<bea-installer>
   <input-fields>
   <data-value name="BEAHOME" value="/u01/oracleHome" />
   <data-value name="WLS_INSTALL_DIR" value="/u01/oracleHome/weblogic10.3.3"
/>
   <data-value name="WLW_INSTALL_DIR" value="/u01/oracleHome/workshop10.3.3"
/>
   <data-value name="COMPONENT_PATHS" value="WebLogic Server" />
   <data-value name="USE_EXTERNAL_ECLIPSE" value="false" />
   <data-value name="EXTERNAL_ECLIPSE_DIR" value="/u01/oracleHome/eclipse" />
   <data-value name="INSTALL_NODE_MANAGER_SERVICE" value="no" />
   <data-value name="NODEMGR_PORT" value="5559" />
   </input-fields>
</bea-installer>


3. Now, run the command as follows to install the weblogic on 64 bit Linux operating system.

java -d64 -jar wls1035_generic.jar -mode=silent -
silent_xml=/u01/scripts/silent.xml


That`s it the silent mode installation of weblogic platform is completed successfully on 64-bit
Linux Operating System.




Weblogic 10.3.3 installation on Windows
In this tutorials, we are going to learn on how to install WebLogic Server 11gR1 (10.3.4) on
Windows(32-bit) platform. We will also learn the basic weblogic administration task to expert
level weblogic administration in this tutorial.

Downloads:

1. Run the executable wls$VERSION_oepeXXXXXX_winXX.exe.
2. Click Next on the welcome screen as shown in the figure below.
3. Select the Middleware Home directory. You can select the default (existing one) or select any
other location.
4. Provide E-mail address for security updates and to initiate configuration manager. You can
skip it by un-checking the "I wish to receive security updates via Oracle Support".
5. Choose the Installation types. There are two options:

a. Typical --> Install the following products and components: Weblogic Server || Oracle
Coherence || Oracle Enterprise pack for Eclipse.

b. Custom --> Choose software products and components to install and perform optional
configuration.

For this tutorial, I have selected the Custom type of configuration, as shown in the figure below.
Then, Click NEXT.
6. Choose products and components - Select All, then Click NEXT.
7. Select JDK --> You can either select both "SUN JDK" and "Jrockit". for this tutorial, I have
selected Jrockit only. Then, Click NEXT.
8. Choose product installation directory. Click NEXT.
9. Install windows service(Select "NO" - we will configure it later). Click NEXT.
10. Validate the installation summary. Click NEXT.
11. Congratulation, Installation is completed successfully. Click Done.
What is a weblogic server domain?

A domain is the basic administration unit for Weblogic Server instances. A domain consists of an
Administration Server and Managed application servers and resources. The main configuration
file in the domain is config.xml, which is in the domain directory(where you install your
weblogic server domain) under config directory.

You can use Administration Server to do the configuration tasks. A web based console comes
with the domain installation, where an administrator can login and perform the administration
tasks.

Weblogic domain can have multiple servers in a cluster or multiple clusters. A domain can have
an Administration Server which can act as an Administration Server and managed server. This
architecture is mostly used by the developers in developing and deploying applications in there
local environments.
Production and Development Modes

Weblogic domain can be configured in two different modes:

1.Development Mode

2.Production Mode

1. Development Mode: In the development mode of configuration, Weblogic server domain has
minimum security and is used for the development of application purposes. In this mode, you
can also auto-deploy the application.

2. Productions Mode: This is the final mode of the domain configuration, where you deploy the
application which will be directly used by the customers. This is a very important environment,
with maximum security.

Now, as we got a general idea on what a weblogic server domain is, we will now configure the
weblogic server domain on Linux operating system.

Go to the weblogic platform home (/usr/local/weblogic103 - as setup in platform installation
tutorials). Under the /usr/local/weblogic103/wlserver_10.3/common/bin look for file name
"config.sh".

1. Run the config file for the domain configuration.

./config.sh
Unable to instantiate GUI, defaulting to console mode.


<------------------- Fusion Middleware Configuration Wizard -----------------
--->


Welcome:

-------------



Choose between creating and extending a domain. Based on your selection, the
Configuration Wizard guides you through the steps to generate a new or extend
an
existing domain.

 ->1|Create a new WebLogic domain
    |    Create a WebLogic domain in your projects directory.

   2|Extend an existing WebLogic domain
    |    Use this option to add new components to an existing domain and
modify configuration settings.
Enter index number to select OR [Exit][Next]> Next


2. Select the source from which the domain will be created.

<------------------- Fusion Middleware Configuration Wizard -----------------
--->


Select Domain Source:

-------------------------



Select the source from which the domain will be created. You can create the
domain by selecting from the required components or by selecting from a list
of
existing domain templates.

 ->1|Choose Weblogic Platform components
    |    You can choose the Weblogic component(s) that you want supported in
your domain.

   2|Choose custom template
    |    Choose this option if you want to use an existing template. This
could be a custom created template using the Template Builder.

Enter index number to select OR [Exit][Previous][Next]> Next


3. Select the domain template.

<------------------- Fusion Middleware Configuration Wizard -----------------
--->


Application Template Selection:

-----------------------------------



    Available Templates
    |_____Basic WebLogic Server Domain - 10.3.3.0 [wlserver_10.3]x
    |_____WebLogic Advanced Web Services for JAX-RPC Extension - 10.3.3.0
[wlserver_10.3] [2]
    |_____WebLogic Advanced Web Services for JAX-WS Extension - 10.3.3.0
[wlserver_10.3] [3]

Enter number exactly as it appears in brackets to toggle selection OR
[Exit][Previous][Next]>Next
4. Editing the domain information.

<------------------- Fusion Middleware Configuration Wizard -----------------
--->


Edit Domain Information:

-----------------------------



    | Name |      Value    |
   _|________|_____________|
   1| *Name: | base_domain |

Enter value for "Name" OR [Exit][Previous][Next]> devdomain

<------------------- Fusion Middleware Configuration Wizard -----------------
--->


Edit Domain Information:

-----------------------------



    | Name |     Value     |
   _|________|____________|
   1| *Name: | devdomain |

Use above value or select another option:
    1 - Modify "Name"
    2 - Discard Changes

Enter option number to select OR [Exit][Previous][Next]> Next

<------------------- Fusion Middleware Configuration Wizard -----------------
--->


5. Select the target domain directory for this domain.

Select the target domain directory for this domain:

-----------------------------------------------------------
    "Target Location" = [Enter new value or use default
"/usr/local/weblogic103/user_projects/domains"]

Enter new Target Location OR [Exit][Previous][Next]> Next

<------------------- Fusion Middleware Configuration Wizard -----------------
--->


6. Configure Administrator UserName and Password.

<------------------- Fusion Middleware Configuration Wizard -----------------
--->


Configure Administrator User Name and Password:

Create a user to be assigned to the Administrator role. This user is the default administrator used
to start development mode servers.


    |          Name           |                  Value                  |
   _|_________________________|_________________________________________|
   1|         *Name:          |                weblogic                 |
   2|     *User password:     |                                         |
   3| *Confirm user password: |                                         |
   4|      Description:       | This user is the default administrator. |

Use above value or select another option:
    1 - Modify "Name"
    2 - Modify "User password"
    3 - Modify "Confirm user password"
    4 - Modify "Description"

Enter option number to select OR [Exit][Previous][Next]> 2

<------------------- Fusion Middleware Configuration Wizard -----------------
--->


Configure Administrator User Name and Password:

------------------------------------------------------------



Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.

    |          Name           |                  Value                  |
   _|_________________________|_________________________________________|
   1|         *Name:          |                weblogic                 |
   2|     *User password:     |                ********                 |
   3| *Confirm user password: |                                         |
   4|       Description:           | This user is the default administrator. |

Use above value or select another option:
    1 - Modify "Name"
    2 - Modify "User password"
    3 - Modify "Confirm user password"
    4 - Modify "Description"
    5 - Discard Changes

Enter option number to select OR [Exit][Previous][Next]> 3

<------------------- Fusion Middleware Configuration Wizard -----------------
--->


Configure Administrator User Name and Password:

------------------------------------------------------------



Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.

    |          Name           |                  Value                  |
   _|_________________________|_________________________________________|
   1|         *Name:          |                weblogic                 |
   2|     *User password:     |               **********                |
   3| *Confirm user password: |               **********                |
   4|      Description:       | This user is the default administrator. |

Use above value or select another option:
    1 - Modify "Name"
    2 - Modify "User password"
    3 - Modify "Confirm user password"
    4 - Modify "Description"
    5 - Discard Changes

Enter option number to select OR [Exit][Previous][Next]> Next

<------------------- Fusion Middleware Configuration Wizard -----------------
--->


7. Select Domain configuration mode.

Domain Mode Configuration:

--------------------------------



Enable Development or Production Mode for this domain.

 ->1|Development Mode
   2|Production Mode

Enter index number to select OR [Exit][Previous][Next]> 1

<------------------- Fusion Middleware Configuration Wizard -----------------
--->


8. Select Java SDK from the below options.

Java SDK Selection:

-------------------------



 ->1|JRockit SDK 1.6.0_17 @ /usr/local/weblogic103/jrockit_160_17_R28.0.0-679
   2|Sun SDK 1.6.0_18 @ /usr/local/weblogic103/jdk160_18
   3|Other Java SDK

Enter index number to select OR [Exit][Previous][Next]> 1

<------------------- Fusion Middleware Configuration Wizard -----------------
--->


9. Select Optional selection. We will just configure the Administration Server. We will configure
other weblogic server resources from the weblogic administration console.

Select Optional Configuration:

------------------------------------



   1|Administration Server [x]
   2|Managed Servers, Clusters and Machines [ ]
   3|RDBMS Security Store [ ]

Enter index number to select OR [Exit][Previous][Next]> Next

<------------------- Fusion Middleware Configuration Wizard -----------------
--->


Configure the Administration Server:

-------------------------------------------
Enter adminstration server configurations. Each WebLogic Server domain must
have one Administration Server. The Administration Server hosts the
Administration
Console which is used to perform administrative tasks.

    |       Name       |        Value        |
   _|__________________|_____________________|
   1|      *Name:      |     AdminServer     |
   2| *Listen address: | All Local Addresses |
   3|   Listen port:   |        7001         |
   4| SSL listen port: |         N/A         |
   5|   SSL enabled:   |        false        |

Use above value or select another option:
    1 - Modify "Name"
    2 - Modify "Listen address"
    3 - Modify "Listen port"
    4 - Modify "SSL enabled"

Enter option number to select OR [Exit][Previous][Next]> 2

<------------------- Fusion Middleware Configuration Wizard -----------------
--->


Configure the Administration Server:

-------------------------------------------



Enter adminstration server configurations. Each WebLogic Server domain must
have one Administration Server. The Administration Server hosts the
Administration
Console which is used to perform administrative tasks.

    |       Name          |    Value    |
   _|__________________   |_____________|
   1|      *Name:         | AdminServer |
   2| *Listen address:    | localhost |
   3|   Listen port:      |    7001     |
   4| SSL listen port:    |     N/A     |
   5|   SSL enabled:      |    false    |

Use above value or select another option:
    1 - Modify "Name"
    2 - Modify "Listen address"
    3 - Modify "Listen port"
    4 - Modify "SSL enabled"
    5 - Discard Changes

Enter option number to select OR [Exit][Previous][Next]> Next

<------------------- Fusion Middleware Configuration Wizard -----------------
--->
10. Weblogic domain progress.

Creating Domain...

0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]


**** Domain Created Successfully! ****




Weblogic Boot Properties
In this section, we are going to learn on how to create boot.properties fil in weblogic. Using
boot.properties, you can control the server startup without passing the username and password.

1. Create a boot.properties file.

Create a plain text file called boot.properties with the following content:

username=weblogic

password=weblogic01

2. Copy the boot.properties to the following location:

/usr/local/weblogic103/user_projects/domains/devdomain/servers/managedserver1/security




Weblogic Machine Configuration
n this tutorial, we are going to learn on how to configure machines in weblogic using the
weblogic administration console.
1.Login to Administration Console, using the administrator username and password.

2.On left panel, look for Environment --> Machines

3.On Right Panel, Click NEW

4.On the next screen, fill the details as follows:

 Name             Machine-managedserver1
 Machine OS       Unix

5.Click Ok

6.Completed, Weblogic machine is created successfully.




Weblogic Control
In this section, we are going to learn on how to start/stop/resume weblogic server using the
weblogic administration console and using scripts.

Believe it or not, but weblogic control is the most common activity for a weblogic server
administrator.

In this section, we are going to learn in detail:-

1. Starting and Stopping the Weblogic Administration Server and Weblogic Managed Server
using the scripts provided during with the domain creation.

2. Create Custom Scripts.

3. Starting and Stopping the Weblogic Administration Server and Weblogic Managed Server
using custom scripts (modified version of default scripts).

4. Starting and Stopping the Weblogic Server using the Nodemanager.
Weblogic JMS
In this tutorial, we are going to learn about JMS (Java Messaging Service) with the weblogic
server. Before we proceed with the tutorial, Let`s go through some JMS definitions.

JMS (Java Messaging Service)

A message is a request that contains information needed to coordinate communication between
different applications.

In other words, For sending the messages between the different Java clients the Java Message
Service(JMS) uses a Java Message Oriented Middleware API.

Weblogic JMS Architecture




Here is the list of the major components of the WebLogic JMS Server architecture.

JMS Server --> Hosts the modules and associated persistent store that reside on a WebLogic
Server instance.
JMS modules --> Contains the resource configuration (such as queues, topics, and connections
factories)

JMS Application --> Producer or a consumer.

JNDI (Java Naming and Directory Interface) --> JNDI provides the resource lookup facility.

Persistent Store --> File or JDBC store to store the persistent messages.

In coming lessons, we are going to learn on how to configure JMS resources in weblogic server
environment.




Weblogic JDBC
In this tutorial, we are going to learn about JDBC (Java Database Connectivity) with the
weblogic server. Before we proceed with the tutorial, Let`s go through some JDBC definitions.

JDBC (Java Database Connectivity)

In weblogic Server container, you can configure the datasources to connect to the databases.
Each datasource created in a domain contains connection pools which consists of database
connections, which are created during the initial startup of the server.

JDBC Connectivity Diagram:

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:86
posted:2/17/2012
language:English
pages:32