• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to test weblogic 9.2 Cluster Setup

 
Jagu Deva
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 256
Fedora Firefox Browser Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
//**//
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 ]
 
Misha Ver
Ranch Hand
Posts: 470
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 470
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 256
Fedora Firefox Browser Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 256
Fedora Firefox Browser Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 256
Fedora Firefox Browser Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ricky,

I copied it to apache's module folder.

now its working fine.

regards
jagu
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic