Thursday, December 1, 2011

Weblogic 10.3 installment and Cluster setup - 4

--- verify and troubleshoot ---

add these configuration in window host file
192.168.0.84            vm.mydomain.com
192.168.0.85            vm.mydomain.com

download InMemRepClient.war and install it in this cluster servers

modify weblogic.xml to support session replicate in cluster servers


<?xml version="1.0" encoding="UTF-8" ?>
   <weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/90">
   <session-descriptor>
       <persistent-store-type>replicated</persistent-store-type>
  </session-descriptor>
</weblogic-web-app>

http://vm.portal.com:7005/InMemRepClient/Session.jsp

if show down either server, the value in session is always there.


troubleshoot:

take note need to open the inbound/outbound Port,let's say 5556, 7005,etc, in windows servers

...

Weblogic 10.3 installment and Cluster setup - 3

--- cluster setup ---

1.start new doman admin console










2. open admin console URL http://localhost:7001/console/login/LoginForm.jsp

key in user name/password to log on as administrator






click 'New' button to add new clustering servers



















specify server name, server listen address, server listen port, choose 'Yes,create a new cluster for this server' and click Next


















key in the cluster name and click Finish
>>>> do above steps again to add the other server























click Next












click Finish

click Clusters to check the new cluster added above.






click 'Machines' and click 'New' button to add new machines which will be worked in a cluster 'CPortal_Cluster'
























click OK to exit and do the same thing to add 'CPortal_Machine_2'







click the hyperlink 'CPortal_Machine_1' and open 'Node Manager' tab to configure node manager on this machine



















click Save to save the configuration for node manager on machine CPortal_Machine_1

choose 'Servers' tab , click 'Add' button













select a server to tie to this machine, click Next











click the hyperlink 'CPortal_Machine_2' and do the same thing above








































reconfigure node manager (do this for both machine)
click above two machine hyperlink and open 'Monitor' tab to check the status is 'Reachable' or not
open E:\bea\wlserver_10.3\common\nodemanager\nodemanager.properties
SecureListener=false

run command services.msc to open window service list to restart node manager service











>>>>> copy the whole folder E:\bea\user_projects on machine 192.168.0.84 to machine 192.168.0.85

click above two machine hyperlink and open 'Monitor' tab to check the status is 'Reachable' or not


























found there is an exception on machine 192.168.0.85.
go to this machine, and open log file E:\bea\wlserver_10.3\common\nodemanager\nodemanager.log

<INFO> <Loading domains file: E:\bea\WLSERV~1.3\common\nodemanager\nodemanager.domains>
<INFO> <Loaded node manager configuration properties from 'E:\bea\WLSERV~1.3\common\nodemanager\nodemanager.properties'>
<INFO> <Plain socket listener started on port 5556>
<Warning> <I/O error while reading domain directory: java.io.FileNotFoundException: Domain directory 'E:\bea\wlserver_10.3\common\nodemanager' invalid (domain salt file not found)>
java.io.FileNotFoundException: Domain directory 'E:\bea\wlserver_10.3\common\nodemanager' invalid (domain salt file not found)
            at weblogic.nodemanager.server.DomainManager.initialize(DomainManager.java:81)
            at weblogic.nodemanager.server.DomainManager.<init>(DomainManager.java:53)
            at weblogic.nodemanager.server.NMServer.getDomainManager(NMServer.java:252)
            at weblogic.nodemanager.server.Handler.handleDomain(Handler.java:218)
            at weblogic.nodemanager.server.Handler.handleCommand(Handler.java:109)
            at weblogic.nodemanager.server.Handler.run(Handler.java:66)
            at java.lang.Thread.run(Thread.java:619)

how to resolve the problem ?

open domain file E:\bea\WLSERV~1.3\common\nodemanager\nodemanager.domains on both servers and compare, found the domain file on machine 192.168.0.85 lost one item

cportal_domain=E\:\\bea\\user_projects\\domains\\cportal_domain

add it into nodemanager.domains on machine 192.168.0.85 and restart the node manager service on this machine.

go back to check the status on machine 192.168.0.85 and found it is reachable.

Weblogic 10.3 installment and Cluster setup - 2

--- create a new domain ---

1. install weblogic on both server


2. go to 192.168.0.84

3. click 'Configuration Wizard'












4. choose 'Create a new weblogic domain'
































key in user name and password for this domain admin
















































customise these settings later, choose 'No' and click 'Next'
















specify domain name and location, click 'Create'















click Done button to exit.

Weblogic 10.3 installment and Cluster setup - 1

--- weblogic installment ---

env:
jdk 1.6.0_23
window server 2008 enterprise 64-bit OS

server ip
192.168.0.84
192.168.0.85
 
> install weblogic server on 192.168.0.84

double click installer file server103_win32.exe


















click 'Next'

















specify BEA home directory,click 'Next'

















choose 'Custom' and click Next

















unselect 'Workshop' and cilck Next

















select bundled JDK and click Next
















click Next
















choose 'Yes' and use default port 5556 as node manager listen port number , click Next

















click Next
















click Next

































click Done to complete the installation.

> do the same steps to install weblogic server on 192.168.0.85