Clusterjsp Example
I'm trying to prototype some clustering and failover stuff.
For now I have sun app server 8.12005Q1 installed on a Solaris box.
I've been following the help topics when I log into the asadmin web interface. I used it to create one node agent through the asadmin command line utility named MyNodeAgent. I used the asadmin web interface to create a culster named MyCluster with two server instances (on the same physical machine) named TestInstance1 and TestInstance2. They both use MyNodeAgent as their node agent.
I tried deploying the sample clusterjsp.ear through selecting MyCluster under the Clusters tree. In the content pane, I select the Applications tab, browsing my filesystem to use clusterjsp.ear, then adding MyCluster as the target.
When I go to http://localhost:8080/clusterjsp I get a 404.
What am I doing wrong?
[866 byte] By [
navychhema] at [2007-11-26 17:49:11]

# 1
hi,
A few points to note.
1. If you want to test clustering and failover capabilities, then you need to use the loadbalancer to forward the requests from the webserver to the two appserver instances in the cluster. From your note, it does not appear that you have configured the loadbalancer.
2. You will also have to configure HADB for this cluster. (HADB is where all the sessions will be stored)
3. You are trying to access localhost:8080. Is this the port of DAS by any chance ? You will have to check the port number of the server instances that you created and then send the request to that port. (But note that to test the failover capabilities, your requests have to go through the loadbalancer)
Follow the steps in this Quick Start Guide and you should be well on your way to testing the clustering features of the appserver.
http://docs.sun.com/app/docs/doc/819-2553/6n4r7tn2m?a=view
Hope that helps.
Cheers,
Vasanth