wood burning stoves*
The moose likes BEA/Weblogic and the fly likes How to test weblogic 9.2 Cluster Setup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "How to test weblogic 9.2 Cluster Setup" Watch "How to test weblogic 9.2 Cluster Setup" New topic
Author

How to test weblogic 9.2 Cluster Setup

Jagu Deva
Greenhorn

Joined: Nov 04, 2008
Posts: 6
Hi,

Step 1: Created a domain in weblogic 9.2 with admin at localhost:7701
Step 2: Created two managed servers s1 & s2 at localhost:7703 & localhost:7705
Step 3: Created a Cluster c1 and added servers s1 & s2 to it
Step 4: Created a Machine m1 and added servers s1 & s2 to it
Step 5: Deployed a test.war file to the cluster
Step 6: Then, started the managed servers s1 & s2.
Step 7: Then, I configured apache 2.0 server's httpd.conf file for weblogic proxy setup.
Step 8: I checked the url http://localhost:7703/test/ & http://localhost:7705/test/

The problem is, when I stop the server s1, session is not transfered to server s2.

Kindly help me in this. where i have went wrong?
Ramakanta Sahoo
Ranch Hand

Joined: Aug 23, 2008
Posts: 254

//**//
You need mod-jk.conf and workers.properties file for redirection.


Deleted contents as wrongly posted.

Thanks.
[ November 05, 2008: Message edited by: Ricky Boxon ]

Regards, Ricky
Oracle Weblogic 10g Certified Expert TechPaste.Com
Misha Ver
Ranch Hand

Joined: Mar 03, 2008
Posts: 470
Originally posted by Ricky Boxon:
[QB]You need mod-jk.conf and workers.properties file for redirection.


Ricky, the question was about Weblogic clustering, not Tomcat
Misha Ver
Ranch Hand

Joined: Mar 03, 2008
Posts: 470
Originally posted by Jagu Deva:
Step 7: Then, I configured apache 2.0 server's httpd.conf file for weblogic proxy setup.
Step 8: I checked the url http://localhost:7703/test/ & http://localhost:7705/test/

The problem is, when I stop the server s1, session is not transfered to server s2.
[/QB]


Jagu,

1) how did you configure httpd.conf file?
2) what exactly do you mean by 'session is not transfered'?
Ramakanta Sahoo
Ranch Hand

Joined: Aug 23, 2008
Posts: 254

Doh!!My fault Thanks Misha for reminding.

Try below Urls:
Configuring_Apache_HTTP_Server_plugin
e-docs.bea.com_Clustering

Try below sample config and also post your configuration file


Jagu..Please post the answers to Misha's queries also.
[ November 05, 2008: Message edited by: Ricky Boxon ]
Jagu Deva
Greenhorn

Joined: Nov 04, 2008
Posts: 6
Thank you Misha & Ricky for the replies!

a. i have Deployed a .war file in a weblogic cluster consisting of 2 managed servers running at port 7703 & 7705 in local machine. Both are individually running well.

b. The scenario is, Suppose the application running in 7703 is down, the application running in 7705 has to take up with the session running in 7703

example: suppose i have logged in as user in http://localhost:7703/home.do, and suddenly if i stop managed server running in 7703, i should be redirected to http://localhost:7705/home.do

Thank you in advance!
Jagu Deva
Greenhorn

Joined: Nov 04, 2008
Posts: 6
I added these lines to the existing httpd.conf file

LoadModule weblogic_module modules\mod_wl_20.so

<IfModule mod_weblogic.c>
WebLogicCluster localhost:7705,localhost:7707
</IfModule>

<Location /weblogic>
SetHandler weblogic-handler
PathTrim /weblogic
</Location>

Thank you in advance
Ramakanta Sahoo
Ranch Hand

Joined: Aug 23, 2008
Posts: 254

I added these lines to the existing httpd.conf file


Ok So Jagu
Then its working fine now. Your problem solved or not.



Thanks.
-Ricky
Jagu Deva
Greenhorn

Joined: Nov 04, 2008
Posts: 6
Hi Ricky,

It is not working. I followed the procedure as per bea docs. Still I am facing the issue.

Thanks
Jagu
Ramakanta Sahoo
Ranch Hand

Joined: Aug 23, 2008
Posts: 254

LoadModule weblogic_module modules\mod_wl_20.so


Have you copied the mod_wl_20.so from your weblogic server to your Apache's modules folder.
mod_wl_20.so file will be available at
Bea_Home/WebLogic9.2/server/lib/UrOsName

If you are using a Aix machine then it will be at Bea_Home/WebLogic9.2/server/lib/aix

put this in modules and restart the apache and try again.

If you are still having problems then please post your httpd.conf file detailed configs and Apache logfiles .OS details so that we can have a broader look.

Thanks
-Ricky.
[ November 08, 2008: Message edited by: Ricky Boxon ]
Jagu Deva
Greenhorn

Joined: Nov 04, 2008
Posts: 6
Thanks Ricky,

I copied it to apache's module folder.

now its working fine.

regards
jagu
 
jQuery in Action, 2nd edition
 
subject: How to test weblogic 9.2 Cluster Setup
 
Similar Threads
How to access 2 different weblogic applications running on different ports thru IIS.
Weblogic Cluster Installation in 2 hardwares
weblogic cluster 6.1 urgent
How to enable clustering in weblogic ?
Cluster configuration with managed servers on a single machine