Date Created: Thu 03-Feb-2011

Related Document Categories:


    Installing Oracle WebLogic Server Version: 10.3.4.0

    http://download.oracle.com/docs/cd/E13222_01/wls/docs103/wlsmbeanref/core/index.html

    chmod 775 ./wls1034_oepe111161_linux32.bin
    [root@localhost weblogic_install]# ./wls1034_oepe111161_linux32.bin

    Assumes XMing is running locally and using Putty as SSH client
























    Let the wizard complete














    used weblogic for both username
    and weblogic123 for password, see image below



    I chose to use the JRocket JVM














    Add 2 servers which we can later cluster




    Add a cluster



    Add servers to cluster



    Add a machine for the Node Manager(s) I added machine 1 for the admin node and 1 for the clusters



    I then assigned Admin Server to machine 1 and the server JVM's to machine 2



    I left the default JMS / Workload services to be cluster scope



    I also left the JMS file stores as default, since this is a test machine



    At this stage I left the RDBMS Security Data store as disabled



    Reviewed the summary, then clicked create





    Note: Since we used Linux, the installation logs is shown by the installer in the SSH session


    Now lets find out how to start the node managers


    cd /var/apps/oracle/middleware/user_projects/domains/testdomain1




    view startManagedWebLogic_readme.txt

    ===============

    To start managed servers, use either startManagedWebLogic.cmd
    or startManagedWebLogic.sh, as appropriate for your environment.

    Usage instructions:

    (1) If you are starting the managed server from a remote machine,
    use the Configuration Wizard to create a domain. This will
    ensure that you have all files needed to start the server.

    (2) Navigate to your domain bin directory and execute the following:

    startManagedWebLogic.sh "my_managed_server" "http://<administration_server_host_name>:7001"


    For ease of reference, you defined the following managed
    servers in your domain:

    ===================



    To start WebLogic Server, use a username and *
    * password assigned to an admin-level user. For *
    * server administration, use the WebLogic Server *
    * console at http://hostname:port/console

    cd /var/apps/oracle/middleware/user_projects/domains/testdomain1/bin

    ./startWebLogic.sh

    =======================


    http://192.168.0.71:7001/console/















    We can start the servers using the console




    or we can start the cluster




    If you do not start the node manager for each node, then



    startManagedWebLogic.sh "server2" "http://localhost:7001"


    Respect the order of component for starting

    1. Start Weblogic Node Manager,
    2. Start WebLogic Admin server,
    3. Start all Managed Server in any order.

    and stopping components

    1. Stop the Node Manager
    2. Stop all Managed WebLogic server
    3. Stop WebLogic


    Start Node Manager
    nohup /var/apps/oracle/middleware/wlserver_10.3/server/bin/startNodeManager.sh 2>&1 &


    Start Admin Server
    . /var/apps/oracle/middleware/user_projects/domains/testdomain1/bin/setDomainEnv.sh
    nohup /var/apps/oracle/middleware/user_projects/domains/testdomain1/bin/startWebLogic.sh 2>&1 &


    ===================

    Starting a managed server interactively using node agent

    /var/apps/oracle/middleware/wlserver_10.3/server/bin

    . ./setWLSEnv.sh

    connect('weblogic','weblogic123')

    Result:

    wls:/offline> connect('weblogic','weblogic123')
    Connecting to t3://localhost:7001 with userid weblogic ...
    Successfully connected to Admin Server 'AdminServer' that belongs to domain 'testdomain1'.

    Warning: An insecure protocol was used to connect to the
    server. To ensure on-the-wire security, the SSL port or
    Admin port should be used instead.

    start('server1','Server','t3://localhost:7701')

    Result:

    wls:/testdomain1/serverConfig> start('server1','Server','t3://localhost:7701')
    Overriding the ListenPort or ListenAddress is not supported.
    WLST will use the ListenPort and ListenAddress that are configured on the ServerMBean

    Starting server server1 ......................................................................................................................
    Server with name server1 started successfully

    start('server2','Server','t3://localhost:7702')

    Result

    wls:/testdomain1/serverConfig> start('server2','Server','t3://localhost:7702')
    Overriding the ListenPort or ListenAddress is not supported.
    WLST will use the ListenPort and ListenAddress that are configured on the ServerMBean

    Starting server server2 .........................................................................................
    Server with name server2 started successfully

    OR

    start clusters

    wls:/mydomain/serverConfig> start('cluster1', 'Cluster')

    Looking at the Admin Console we see:





    ==================

    Starting servers form command line in a separate shell not using the node manager
    Open a new SSH session and type

    Start Server1
    cd /var/apps/oracle/middleware/user_projects/domains/testdomain1/bin
    . ./setDomainEnv.sh
    bin/startManagedWebLogic.sh server1 t3://localhost:7001

    Open a new SSH session and type
    Start Server2
    bin/startManagedWebLogic.sh server1 t3://localhost:7001


    ============= If you get this message it ie because you have not run serDomainEnv.sh ================

    Exception in thread "Main Thread" java.lang.NoClassDefFoundError: weblogic
    Caused by: java.lang.ClassNotFoundException: weblogic
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    Could not find the main class: weblogic. Program will exit.

Middleware Mentor - Steven Charles Robinson

About Me

Steve Robinson has been working in IT for over 15 years and has provided solutions for many large-enterprise corporate companies across the world. Steve specialises in Java and Middleware consulting. Steve comes from both an administration and development background.

Before moving to JEE, Steve was an accomplished developer and consultant for both IBM Lotus Notes and Microsoft .NET Technologies.

Follow Steve as @stevencrobinson on twitter.

Read my books?

IBM WebSphere Application Server 8.0 Administration Guide

IBM WebSphere Application Server 8.0 Administration Guide

WebSphere Application Server 7.0 Administration Guide

WebSphere Application Server 7.0 Administration Guide

WebSphere Categories

Oracle WebLogic Categories

JBoss Categories

Other Categories