Issue: HTTP Session sharing is not working in weblogic or sticky session problem(Not sure about the issue) but Not able to login to application when both weblogic nodes are up and some times application logs in with incomplete data and upon click on any link redirects to login page.
Am trying to set up Apache proxy front end to a weblogic cluster(2 managed servers) with single EAR file deployed on cluster(contains 7 WAR files).
I have done the apache plug in set up to weblogic as mentioned in the weblogic doc for Apache plug in. Below are my apache httpd entries.
I have deployed a sample web App in similar set up as mentioned in the above post.
1. Apache Proxy configured to point to weblogic.
2. 2 Managed nodes are configured as cluster and Sample application is deployed on the Cluster.
3. Application details: EAR is deployed with 2 WAR files in it (App and App2)
With the above mentioned setup, session parameters set in the one is accessible across WAR files and also from Apache logs load balancing is happening between the weblogic servers and am able to see the expected result.
But if remove the entry <sharing-enabled>true</sharing-enabled> from weblogic-application.xml everything fails. But as per the xml since persistent store type is still mentioned, HTTP session should be replicated between the servers.
Sharing enabled will only share session across WAR files in EAR. And this has nothing to do with HTTP session replication.
Since nobody has replied, i continued my lookout for solution and found that the Apache and Weblogic setting are correct(as i tested) and only thing is remove the ProxyPass directive from the httpd conf file. Then sticky session will start working.
From Weblogic, the above mentioned setup is correct to enable HTTP session replication and sharing within a cluster and works fine. I got serialization issue during replication anyway thats application issue. But setting are fine.
But i do not understand y the proxypass directive is causing the issue w.r.t to sticky session. Any one help me to find the reason for this.
(By the way from the above shared logs you can make out that single request being shared across balancer nodes and hence sticky session is not working as expected before removing the ProxyPass directive.)
For reference try this https://community.jboss.org/message/764363?_sscc=t
My requirement is to replicate session in a cluster between the managed servers to enable failover so client session data is not lost. I have EAR with multiple WAR files which is deployed on the cluster.
As with my previous updates for this thread, session sharing between the WAR files within EAR working fine for me.