weblogic middleware practices for flexcube

Upload: merid-tilahun

Post on 05-Jul-2018

225 views

Category:

Documents


2 download

TRANSCRIPT

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    1/69

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    2/69

    Configuring Weblogic Server

    Table of Contents

    1.  CONFIGURING WEBLOGIC SERVER ..................................................................................................... 1-1 

    1.1  I NTRODUCTION ........................................................................................................................................... 1-1 1.1.1   Domain ............. ........... .......... .......... ........... .......... ........... .......... ........... .......... ........... .......... .......... .... 1-1 1.1.2  WebLogic Domain Structure.............................................................................................................. 1-1 1.1.3   Administration Server .......... ........... .......... ........... .......... ........... .......... .......... ........... .......... ........... ..... 1-2 1.1.4   Managed Server ........... .......... ........... .......... .......... ........... .......... ........... .......... ........... .......... ........... ... 1-2 1.1.5   Managed Server Cluster .......... .......... ........... .......... ........... .......... .......... ........... .......... ........... .......... .. 1-2 1.1.6    Node Manager .................... .......... .......... ........... .......... ........... .......... ........... .......... ........... .......... ....... 1-2 

    1.2  DOMAIN CREATION .................................................................................................................................... 1-3 1.2.1   Environment details ......... ........... ........... .......... ........... .......... .......... ........... .......... ........... .......... ......... 1-3 1.2.2  Start Node Manager........................................................................................................................... 1-3 1.2.3   Enable Graphical User Interface (GUI) .......... ........... .......... .......... ........... .......... ........... .......... ......... 1-5 

    1.2.4   Fusion Middleware Configuration Wizard .......... .......... ........... .......... .......... ........... .......... ........... ..... 1-5 1.3  PACK AND UNPACK DOMAIN ..................................................................................................................... 1-21 1.4  JVM TUNING ............................................................................................................................................ 1-22 1.5  MANAGED SERVER STARTUP USING SCRIPT (STARTWEBLOGIC.SH) .......................................................... 1-25 1.6  STARTING ADMIN SERVER  ........................................................................................................................ 1-27 1.7  STARTING MANAGED SERVERS ................................................................................................................. 1-29 

    1.7.1  Verifying machine status .................................................................................................................. 1-31 1.8  DATA SOURCE CREATION AND JDBC CONFIGURATION FOR ORACLE DATABASE SINGLE I NSTANCE ....... 1-33 1.9  MULTI DATA SOURCE CREATION AND JDBC CONFIGURATION FOR ORACLE RAC .................................. 1-43 1.10  JDBC TUNING .......................................................................................................................................... 1-51 1.11  ORACLE WEBLOGIC PROXY ..................................................................................................................... 1-52 

    1.11.1   Proxy Plug-in Deployment options ......... ........... .......... ........... .......... ........... .......... ........... .......... ..... 1-52 1.11.2  Cluster Creation .............................................................................................................................. 1-52 1.11.3

      Managed Server Creation ........... ........... .......... ........... .......... ........... .......... .......... ........... .......... ....... 1-54

     1.11.4  Creating proxy.war file .................................................................................................................... 1-56  1.11.5   Proxy Plug-in Deployment .......... ........... .......... ........... .......... ........... .......... .......... ........... .......... ....... 1-58 

    2.  APPENDIX A: ................................................................................................................................................. 2-1 

    2.1  I NTRODUCTION ........................................................................................................................................... 2-1 

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    3/69

     1-1

    1. Configuring WebLogic Server

    1.1 IntroductionThis chapter provides a step by step process to configure Weblogic Server. To start with, thechapter provides a brief description on the following:

      Domain

      Weblogic Domain Structure

       Administrator Server

      Managed Server

      Managed Server Cluster

      Node Manager

    1.1.1 Domain

     A domain is the basic administration unit for WebLogic Server instances. A domain consists ofone or more WebLogic Server instances (and their associated resources) that you manage with asingle Administration Server. You can define multiple domains based on different systemadministrators' responsibilities, application boundaries, or geographical locations of servers.Conversely, a single domain can be used to centralize all WebLogic Server administrationactivities.

    Each WebLogic Server domain must have one server instance that acts as the AdministrationServer. You use the Administration Server, via the Administration Console or using the commandline in order to configure all other server instances and resources in the domain.

    1.1.2 WebLogic Domain Structure

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    4/69

     1-2

    1.1.3 Administration Server

     A domain includes one WebLogic Server instance that is configured as an Administration Server. All changes to configuration and deployment of applications are done through the AdministrationServer.

    The Administration Server provides a central point for managing the domain and providing accessto the WebLogic Server administration tools. These tools include the following: 

      WebLogic Server Administration Console: Graphical user interface to the AdministrationServer.

      WebLogic Server Node Manager: A Java program that lets you start and stop serverinstances—both Administration Servers and Managed Servers—remotely, and to monitorand automatically restart them after an unexpected failure.

    1.1.4 Managed Server

    In a domain, server instances other than the Administration Server are referred to as ManagedServers. Managed servers host the components and associated resources that constitute your

    applications—for example, JSPs and EJBs. When a Managed Server starts up, it connects to thedomain's Administration Server to obtain configuration and deployment settings.

    In a domain with only a single WebLogic Server instance, that single server works as both theadministration server and managed server.

    1.1.5 Managed Server Cluster

    Two or more Managed Servers can be configured as a WebLogic Server cluster to increaseapplication scalability and availability. In a WebLogic Server cluster, most resources and servicesare deployed to each Managed Server (as opposed to a single Managed Server,) enablingfailover and load balancing.

    The servers within a cluster can either run on the same machine or reside in different machines.To the client, a cluster appears as a single WebLogic Server instance.

    1.1.6 Node Manager

    The Managed Servers in a production WebLogic Server environment are often distributed acrossmultiple machines and geographic locations.

    Node Manager is a Java utility that runs as separate process from WebLogic Server and allowsyou to perform common operations tasks for a Managed Server, regardless of its location withrespect to its Administration Server. While use of Node Manager is optional, it provides valuablebenefits if your WebLogic Server environment hosts applications with high availabilityrequirements.

    If you run Node Manager on a machine that hosts Managed Servers, you can start and stop theManaged Servers remotely using the Administration Console or from the command line. NodeManager can also automatically restart a Managed Server after an unexpected failure.

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    5/69

     1-3

    1.2 Domain Creation

    The following sections provides step-by-step WebLogic Server configuration for Oracle FCUBScovering:

      Managed server Creation

      Cluster Creation

      Node Creation

    This example, helps you to create a domain with 2 managed servers. The managed servers aregoing to be created on 2 different physical servers (nodes). This requires Weblogic Server ofsame version to be installed on both the machines and services (Weblogic and node manager)should be up.

    1.2.1 Environment details

    This document has been prepared based on a test conducted in Linux servers running Red HatEnterprise Linux Server release 5.5 (Tikanga). The machine configuration is given below,

    Node1

    Hostname: IPL187DOR

    IP Address: 10.184.74.187

    CPU details: 8 core Intel(R) Xeon(R) CPU E5540 @ 2.53GHz

    Physical memory: 24GB

    Node2

    Hostname: IPL186DOR

    IP Address: 10.184.74.186

    CPU details: 8 core Intel(R) Xeon(R) CPU E5540 @ 2.53GHz

    Physical memory: 24GB

    1.2.2 Start Node Manager

    Start node manager in both servers before creating domain. Any domain created before creationof Node Manager Service will not be accessible via node Manager (even after restarting nodemanager), solution is to run the WLST command “nmEnroll” to enroll that domain with the Node

    Manager.

    If the domain is created after the Node Manager Service has been installed should not have to beenrolled against the Node Manager. The Node Manager should automatically be 'reachable' bythe domain.

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    6/69

     1-4

    How to check whether nodemanager is already running?

    The way to verify the nodemanager status is to check whether node manager process is running.

    ps  –ef|grep weblogic.nodemanager.javaHome

    If the above command returns the process details then node manager is running.

    If nodemanager is not running in any of the server, start it using startNodeManager.sh scriptunder $WLSHOME/server/bin directory to start Nodemanager.

    In IPL186DOR,

    In IPL187DOR,

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    7/69

     1-5

    1.2.3 Enable Graphical User Interface (GUI)

    Establish a telnet or SSH connection to 10.184.74.187 server. Start X-manager in windowsdesktop. Export DISPLAY environment variable to the machine IP where x-manager is running.

    Syntax: export DISPLAY=:

    Example: export DISPLAY=10.184.86.240:0.0

    Test using xclock,

    1.2.4 Fusion Middleware Configuration Wizard

    Weblogic domain creation and configuration will be done from server 10.184.74.187.

    From server 10.184.74.187 launch fusion Middleware configuration wizard using config.sh under$WLS_HOME/common/bin directory,

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    8/69

     1-6

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    9/69

     1-7

    Choose “Create a new Weblogic domain” option. Click on Next,

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    10/69

     1-8

    Select Domain Source. Click on Next,

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    11/69

     1-9

    Specify Domain Name and location.

    Click on Next,

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    12/69

     1-10

    Configure Administrator User Name and password

    Use this screen to define the default WebLogic Administrator account for the domain. Thisaccount is used to boot and connect to the domain's Administration Server.

    Note: This is the credentials used to access Administration console.

    Click on Next,

    Select Server Start Mode as “production mode” and choose JDK. Click on next,  

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    13/69

     1-11

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    14/69

     1-12

    Select the options Administration Server and Managed Servers, Clusters and Machines. Clicknext,

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    15/69

     1-13

    Configure Administration server Listen address and port

    Note: The default Listen port is 7001. This could be changed to any other free port. Please makea note of this port; it’s essential for launching the Admin console post domain creation.

    In this configuration 8990 port is input.

    This completes Admin Server configuration.

    The next screen takes us to Managed Server configuration.

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    16/69

     1-14

    Configure Managed Server

    Note: Every 75 concurrent users require one managed server. I.e. for 300 concurrent FCUBSusers, it is recommended to have 4 managed servers.

    Click on Add button to add the desired number of Managed Servers.

    This completes managed server configurations.

    The next screen takes us to Cluster creation and configuration.

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    17/69

     1-15

    Cluster configuration,

    Click on Add button to add a new cluster. Input the cluster name. Choose multicast option forCluster messaging mode.

    Note: The default multicast address and port will be 239.192.0.0 and 7001 respectively. Adifferent address and port can be chosen if it is already in use.

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    18/69

     1-16

    Select the managed servers in the left pane and assign them to the cluster by clicking the rightarrow button.

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    19/69

     1-17

     After assigning managed servers to cluster,

    That completes Cluster configuration. On clicking next, the machine configuration screen isdisplayed.

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    20/69

     1-18

    Configure machines

    Click on Add button to add the desired number of nodes.

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    21/69

     1-19

    Assign managed servers to Nodes

    In this scenario, based on the host on which the managed server is created, the managed serversare assigned to respective Nodes.

    Select the managed Server(s) in the left pane and assign them to the desired Node by clicking

    the right arrow button.

     As per the above configuration, managed server fcubs1 will start in server 10.184.74.187 andlisten to port 8991 & Managed server fcubs2 will start in server 10.184.74.186 and listen to port8992.

    This completes the Machine creation and configuration. Click Next.

    Verify the details. Click on “Create” button to create domain, 

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    22/69

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    23/69

     1-21

    The Admin Server console will be something like:

    http://:/console

    : Host on which domain was created.

    : The port specified at the Administration Server configuration page.

    In this case the Admin Console URL is: http://10.184.74.187:8990/console

    1.3 Pack and unpack domain

    The domain structure is expected to be copied to the second server (IPL186DOR) during domaincreation. In some cases the domain structure (domain directories and scripts) will not becopied to the second node (IPL186DOR) of the weblogic clusters. Use pack and unpack utility

    provided under $WLSHOME//common/bin,

    Pack: Domain in 10.184.74.187 server,

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    24/69

     1-22

    ./pack.sh -managed=true -domain=/oraint2/middleware/wls1035/user_projects/domains/FCUBSCL -template=/tmp/FCUBSCL.jar -template_name="FCUBSCL"

    Unpack: FTP FCUBSCL.jar in binary mode to server 10.184.74.186 under /tmp area and unpackthe domain using unpack utility provided under $WLSHOME//common/bin,

    ./unpack.sh -domain=/oraint1/weblogic10.5/Oracle/Middleware/user_projects/domains/FCUBSCL-template=/tmp/FCUBSCL.jar

    1.4 JVM Tuning

    This section of the document provides JVM optimization for Oracle FLEXCUBE UBS.

    Basically the JAVA minimum and maximum head size needs to be reset for 32 and 64 bit

    environments. Both the minimum and maximum heap size is set to 1.5GB and 2GB in case of 32bit and 64 bit environments respectively.

    How to find whether the JVM is 32bit or 64bit?

    Go to $JAVA_HOME/bin directory. Check java version using,

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    25/69

     1-23

    ./java –d64  –version

    64 bit JVM shows the version details where as 32bit throws an error.

    To change the JVM heap parameters modify setDomainEnv.sh under domain FCUBSCL in bothservers.

    This file is located at “$WL_HOME/user_projects/domains/$WLS_DOMAIN/bin” 

    Use USER_MEM_ARGS variable to override the standard memory arguments passed to java.

    32 bit JVM:

    USER_MEM_ARGS=”-Xms1536M –Xmx1536M –XX:MaxPermSize=512M” 

    export USER_MEM_ARGS

    64 bit JVM:

    USER_MEM_ARGS=”-Xms2048M –Xmx2048M –XX:MaxPermSize=512M” 

    export USER_MEM_ARGS

    In server IPL187DOR,

    File setDomain.sh under directory/oraint2/middleware/wls1035/user_projects/domains/FCUBSCL/bin

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    26/69

     1-24

    In server IPL186DOR,

    File setDomain.sh under directory/oraint1/weblogic10.5/Oracle/Middleware/user_projects/domains/FCUBSCL/bin

    Note: Take a backup of the file before editing the same.

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    27/69

     1-25

    1.5 Managed server startup using script (startWeblogic.sh)

    It is recommended to start managed servers using scripts (startWeblogic.sh) when the managedservers are started from weblogic console. To enable this set the following properties inNodemanager.properties file in both servers,

    StartScriptEnabled=true

    StartScriptName=$DOMAIN_HOME/bin/startWebLogic.sh

    Example:

    StartScriptEnabled=true

    StartScriptName=/oraint2/middleware/wls1035/user_projects/domains/fcubs113/bin/startWebLogic.sh

    Nodemanager.properties can be found under $WLSHOME/ common/ nodemanager

    In server 10.184.74.187

    Nodemanager.properties location:/oraint2/middleware/wls1035/wlserver_10.3/common/nodemanager/ Nodemanager.properties

    Under 10.184.74.186 server,

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    28/69

     1-26

    Nodemanager.properties location:

    /oraint1/weblogic10.5/Oracle/Middleware/wlserver_10.3/common/nodemanager

    Note:  Node manager must be restarted in all servers (10.184.74.187 & 10.184.74.186) toactivate this setting

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    29/69

     1-27

    How to restart node manager?

      Find out node manager pid using ps -ef|grep weblogic.nodemanager.javaHome 

      Change directory to $WLSHOME/server/bin

      Kill the unix process using kill -9

      Verify that the node manager is killed by tail –f nohup.out

      Start node manager using nohup ./startNodeManager.sh &

      Verify nodemanager is started using tail –f nohup.out

    Same way restart nodemanager in server 10.184.74.186.

    1.6 Starting Admin server

    Use startWeblogic.sh under $DOMAIN_HOME/bin to start admin server in 10.184.74.187 server,

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    30/69

     1-28

    In this example startWeblogic.sh script is under/oraint2/middleware/wls1035/user_projects/domains/FCUBSCL/bin/ under server 10.184.74.187

    Note: Refer Appendix A on possible admin server start-up problems.

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    31/69

     1-29

    1.7 Starting managed servers

    Login to Administration console using URL http://10.184.74.187:8990/console, 

    User name and password is set during domain creation as follows,

    Username: weblogic

    Password: weblogic123

    http://10.184.74.187:8990/consolehttp://10.184.74.187:8990/consolehttp://10.184.74.187:8990/consolehttp://10.184.74.187:8990/console

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    32/69

     1-30

    This screen provides details of both managed servers which are currently down. Both managed

    servers are part of FCUBSCL domain.

    Fcubs1 managed server is associated with machine1 that is 10.184.74.187 server. Machine forfcubs2 managed server is machine2 that is 10.184.74.

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    33/69

     1-31

    1.7.1 Verifying machine status

    Before starting the managed servers ensure that all the machines are reachable,

    Domain structure -> Machines -> machine1 -> Monitoring -> node Manager Status

    Domain structure -> Machines -> machine2 -> Monitoring -> node Manager Status

    Node manager Status should be Reachable

    Select the managed servers and click on start button to start the managed server,

    Domain structure -> Environment -> servers -> control

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    34/69

     1-32

    Managed server Status will be changed to running,

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    35/69

     1-33

    1.8 Data Source creation and JDBC Configuration for OracleDatabase Single Instance

    3 valid data sources are required to launch FLEXCUBE application. JNDI names of those are,

    1. jdbc/fcjdevDS

    2. jdbc/fcjSchedulerDS

    3. jdbc/fcjdevDSBranch

    Note:

     jdbc/fcjdevDS and jdbc/fcjSchedulerDS should be NonXA.

     jdbc/fcjdevDSBranch should be XA

    Click on Services -> Data Sources on the left pane

    Click on Lock & edit button. Then click on New -> Generic data source

    4. Data source: jdbc/fcjdevDS

    Provide the following details,

    Name: FCUBSDS

    JNDI Name: jdbc/fcjdevDS

    Database Type: Oracle

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    36/69

     1-34

    Choose Database Driver :

    Oracle Driver (Thin) for instance connections ; Versions:9.0.1 and later

    Uncheck “Support Global Transaction” option. Click on Next button,

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    37/69

     1-35

    Input the Oracle database details and click Next.

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    38/69

     1-36

    Click on “Test Configuration” 

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    39/69

     1-37

    Select target as cluster “FCCLUSTER”. Click on Finish 

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    40/69

     1-38

    Click on “Activate Changes” button to active the change,  

    1. Create data source jdbc/fcjSchedulerDS similar to jdbc/fcjdevDS

    2. Data source: jdbc/fcjdevDSBranch

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    41/69

     1-39

    Enter JDBC data Source Properties,

    Choose driver

    Oracle’s Driver (Thin XA) for instance connections; Versions 9.0.1 and later  

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    42/69

     1-40

    Enter database connection details,

    Test configuration,

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    43/69

     1-41

    Select target as cluster. Click onFinish

     

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    44/69

     1-42

    Click on activate Changes to activate the changes. Data sources are created as follows,

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    45/69

     1-43

    1.9 Multi Data Source creation and JDBC Configuration forOracle RAC

    Create respective number of Data sources as the number of nodes in Oracle RAC.

    In this scenario, there are two nodes in Oracle RAC. Hence two data sources are created:FCUBS_DS1 and FCUBS_DS2 pointing to Node1 and Node of Oracle RAC respectively.

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    46/69

     1-44

    Enter name, JNDI name and database type,

    Choose driver

    Oracle’s Dr iver (Thin) for RAC service-instance connections; Versions:10 and later

    Uncheck “Support Global transactions” 

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    47/69

     1-45

    Input the Oracle database details and click Next.

    The “Host Name” should point to the VIP and NOT the PUBLIC IP of the Oracle RAC node.

    Click Test Configuration and check if the database connectivity is successful. Click Next onsuccess.

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    48/69

     1-46

    Choose target as FCCLUSTER. Click on Finish

    Click on “activate changes” 

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    49/69

     1-47

    Similarly another data source FCUBS_DS2 should be created for second node of Oracle RAC.

     As per the summary screen FCUBS_DS1 and FCUBS_DS2 JDBC connections have beencreated successfully.

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    50/69

     1-48

    Now click on Multi Data Sources option under Services -> JDBC on the left pane.

    Click on New button.

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    51/69

     1-49

    Enter multi data source name, JNDI name and database type,

    Select target for multi data source as FCCLUSTER,

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    52/69

     1-50

    Choose Non-XA driver

    Choose both data sources

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    53/69

     1-51

     Activate the changes

    Similarly create a multi datasource for jdbc/fcjdevDSBranch

    1.10 JDBC Tuning

    PARAMETER VALUE Navigate To

    Connection Reserve time out 30 Secs

    JTA Time out seconds 900 1.Login to Weblogic Server console.

    2.Click on the domain name (ex: FCUBS) which is under'Domain Structure'.3. Go to Configuration->JTA, parameter and values isfound on the right side panel of console.

    Test Frequency 60

    Inactive connection time out 30

    Initial Capacity 15

    Max capacity 15 It is preferred to be 150% of total concurrent users

    Shrink Frequency 0

    Thread Max Time (Server->Configuration->Tuning->StuckThread Max Time)

    900

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    54/69

     1-52

    Test Connection on Reserve(Connection Pool->Advance)

    Checked

    Session Timeout 900 1.Login to Weblogic Server console2.Click on Deployments which is under 'Domain

    Structure'.3. Click on the deployed FCJ application from right sidepanel.4. Click on FCJNeoWeb from ‘Modules and components’ 5. Go to Configuration General, the parameter values canbe found here.

    1.11 Oracle WebLogic Proxy

    1.11.1 Proxy Plug-in Deployment options

    Proxy Plug-in could be deployed in Clustered or Non-Clustered mode based on Applicationserver deployment architecture. In Active-Active deployment model, it is recommended to haveseparate WebLogic Cluster for Proxy.

    1.11.2 Cluster Creation

    This step required only for Active-Active deployment model of Application servers.

    Launch the Application Server Admin URL and navigate to Domain -> Environment -> Clusters

     And then add New Cluster for Proxy as Proxy Plug-in could be deployed in Cluster mode.

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    55/69

     1-53

    Enter the following details,

    Name: Proxy-cluster

    Messaging Mode: Multicast

    Multicast Address: 239.192.0.10

    Multicast port: 8909

    Click OK to proceed with cluster creation.

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    56/69

     1-54

    1.11.3 Managed Server Creation

    Create the new Managed servers. And also assign to Proxy-Cluster [for Active-Active deploymentmodel]

    Create 2 managed servers proxy-server1 & proxy-server2

    Create first Managed server proxy-server1 which will start in server 10.184.74.187

    Click on “Finish” 

     Assign machine1 to proxy-server1 managed server,

    Home >Summary of Clusters >Summary of Servers >proxy-server1

    http://10.184.74.187:8990/console/console.portal?_nfpb=true&_pageLabel=HomePage1http://10.184.74.187:8990/console/console.portal?_nfpb=true&_pageLabel=CoreClusterClusterTablePagehttp://10.184.74.187:8990/console/console.portal?_nfpb=true&_pageLabel=CoreServerServerTablePagehttp://10.184.74.187:8990/console/console.portal?_nfpb=true&_pageLabel=CoreServerServerTablePagehttp://10.184.74.187:8990/console/console.portal?_nfpb=true&_pageLabel=CoreClusterClusterTablePagehttp://10.184.74.187:8990/console/console.portal?_nfpb=true&_pageLabel=HomePage1

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    57/69

     1-55

    Save and activate the changes.

    Create second Managed server named proxy-server2 which will start in server 10.184.74.186

    Click on Finish to create managed server,

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    58/69

     1-56

     Assign machine2 to proxy-server2 managed server,

    Home >Summary of Clusters >Summary of Servers >proxy-server1 >Summary ofServers >proxy-server2

    Save and activate changes.

    1.11.4 Creating proxy.war file

    Prior to deploying application, you must create a proxy.war. Steps are as follows,

    1. Create a WEB-INF directory under the Proxy directory ( ex: Proxy\WEB-INF )

    2. Copy the following web.xml and weblogic.xml into WEB-INF folder

    http://10.184.74.187:8990/console/console.portal?_nfpb=true&_pageLabel=HomePage1http://10.184.74.187:8990/console/console.portal?_nfpb=true&_pageLabel=CoreClusterClusterTablePagehttp://10.184.74.187:8990/console/console.portal?_nfpb=true&_pageLabel=CoreServerServerTablePagehttp://10.184.74.187:8990/console/console.portal?_nfpb=true&_pageLabel=ServerConfigGeneralTabPage&handle=com.bea.console.handles.JMXHandle%28%22com.bea%3AName%3Dproxy-server1%2CType%3DServer%22%29http://10.184.74.187:8990/console/console.portal?_nfpb=true&_pageLabel=CoreServerServerTablePagehttp://10.184.74.187:8990/console/console.portal?_nfpb=true&_pageLabel=CoreServerServerTablePagehttp://10.184.74.187:8990/console/console.portal?_nfpb=true&_pageLabel=CoreServerServerTablePagehttp://10.184.74.187:8990/console/console.portal?_nfpb=true&_pageLabel=CoreServerServerTablePagehttp://10.184.74.187:8990/console/console.portal?_nfpb=true&_pageLabel=ServerConfigGeneralTabPage&handle=com.bea.console.handles.JMXHandle%28%22com.bea%3AName%3Dproxy-server1%2CType%3DServer%22%29http://10.184.74.187:8990/console/console.portal?_nfpb=true&_pageLabel=CoreServerServerTablePagehttp://10.184.74.187:8990/console/console.portal?_nfpb=true&_pageLabel=CoreClusterClusterTablePagehttp://10.184.74.187:8990/console/console.portal?_nfpb=true&_pageLabel=HomePage1

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    59/69

     1-57

    Update the param-value of WeblogicCluster with your current Cluster Address i.e., with Managedserver listen address and Ports ( :|: )

    Web.xml

    HttpClusterServletweblogic.servlet.proxy.HttpClusterServlet

    WebLogicCluster10.184.74.187:8991|10.184.74.186:8992

    verbosetrue

    DebugConfigInfoON

    HttpClusterServlet/

    HttpClusterServlet*.jsp

    HttpClusterServlet*.htm

    HttpClusterServlet*.html

    Weblogic.xml

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    60/69

     1-58

    /

    1. Go to the parent folder of WEB-INF and run the below command to create proxy.war file

     jar cvf proxy.war WEB-INF

    1.11.5 Proxy Plug-in Deployment

    Domain Structure -> Deployments

    Click on install and upload proxy.war

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    61/69

     1-59

    Proxy.war will be uploaded to server. Click Next

    Choose “Install the deployment as application” option. Click Next 

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    62/69

     1-60

    Select target as proxy-cluster

    Click on Next

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    63/69

     1-61

    Click on Finish to complete deployment

    Save and activate the changes

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    64/69

     1-62

    Start the deployed application

     Application state should change to ACTIVE

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    65/69

     2-1

    2. Appendix A

    2.1 Introduction

    This chapter details issues that might be faced during Admin server start-up and the solutions forthe same. 

    1. Server is running in Productio n Mode and Native Library (termin al io) to read the

    password secure ly from commandl ine is not found.

    Solution:

     Add -Dweblogic.management.allowPasswordEcho=true in Startweblogic.sh as per Metalink doc Id 1354736.1,

    1. Admin server failed to start with following error,

    Error1

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    66/69

     2-2

    Error2

    Solutions

    To solve the above errors,

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    67/69

     2-3

    1. Create a new directory security under

    /oraint2/middleware/wls1035/user_projects/domains/FCUBSCL/servers/AdminServer and

    create a file boot.properties. Add weblogic console username and password in it as follows,

    2. If there is a directory ldap exists under

    /oraint2/middleware/wls1035/user_projects/domains/FCUBSCL/servers/AdminServer/data

    then rename directory ldap to ldap_old under

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    68/69

     2-4

    3. Start the Admin server,

    This will recreate the ldap setting with new password and start the admin server.

  • 8/16/2019 Weblogic Middleware Practices for FlexCube

    69/69

     

    Configuring Weblogic Server[September] [2013]Version 12.0.2.0.0

    Oracle Financial Services Software LimitedOracle ParkOff Western Express HighwayGoregaon (East)Mumbai, Maharashtra 400 063India

    Worldwide Inquiries:Phone: +91 22 6718 3000Fax:+91 22 6718 3001www.oracle.com/financialservices/

    Copyright © [2007], [2013], Oracle and/or its affiliates. All rights reserved.

    Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of theirrespective owners.

    U.S. GOVERNMENT END USERS: Oracle programs, including any operating system, integrated software, any programsinstalled on the hardware, and/or documentation, delivered to U.S. Government end users are "commercial computersoftware" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. Assuch, use, duplication, disclosure, modification, and adaptation of the programs, including any operating system,integrated software, any programs installed on the hardware, and/or documentation, shall be subject to license terms andlicense restrictions applicable to the programs. No other rights are granted to the U.S. Government.

    This software or hardware is developed for general use in a variety of information management applications. It is notdeveloped or intended for use in any inherently dangerous applications, including applications that may create a risk ofpersonal injury. If you use this software or hardware in dangerous applications, then you shall be responsible to take allappropriate failsafe, backup, redundancy, and other measures to ensure its safe use. Oracle Corporation and its affiliatesdisclaim any liability for any damages caused by use of this software or hardware in dangerous applications.

    This software and related documentation are provided under a license agreement containing restrictions on use anddisclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement orallowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit,

    perform, publish or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation ofthis software, unless required by law for interoperability, is prohibited.

    The information contained herein is subject to change without notice and is not warranted to be error-free. If you find anyerrors, please report them to us in writing.

    This software or hardware and documentation may provide access to or information on content, products and servicesfrom third parties. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of anykind with respect to third-party content, products, and services. Oracle Corporation and its affiliates will not beresponsible for any loss, costs, or damages incurred due to your access to or use of third-party content, products, orservices.