<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"Times New Roman \, serif";}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";
        color:black;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";
        color:black;}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle23
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle24
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle25
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:21328019;
        mso-list-type:hybrid;
        mso-list-template-ids:-1276626690 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hi Marek,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">We Tested with our Application standalone mode and clustered but still facing the same issue.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Can you please help us in taking this forward.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">We are getting below exception client side
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><u><span style="font-size:10.0pt;font-family:Consolas;color:navy">org.apache.http.client.ClientProtocolException</span></u><span style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:red"> at org.apache.http.impl.client.InternalHttpClient.doExecute(</span><u><span style="font-size:10.0pt;font-family:Consolas;color:navy">InternalHttpClient.java:186</span></u><span style="font-size:10.0pt;font-family:Consolas;color:red">)</span><span style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:red"> at org.apache.http.impl.client.CloseableHttpClient.execute(</span><u><span style="font-size:10.0pt;font-family:Consolas;color:navy">CloseableHttpClient.java:84</span></u><span style="font-size:10.0pt;font-family:Consolas;color:red">)</span><span style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:red"> at org.apache.http.impl.client.CloseableHttpClient.execute(</span><u><span style="font-size:10.0pt;font-family:Consolas;color:navy">CloseableHttpClient.java:109</span></u><span style="font-size:10.0pt;font-family:Consolas;color:red">)</span><span style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:red"> at org.apache.http.impl.client.CloseableHttpClient.execute(</span><u><span style="font-size:10.0pt;font-family:Consolas;color:navy">CloseableHttpClient.java:57</span></u><span style="font-size:10.0pt;font-family:Consolas;color:red">)</span><span style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:red"> at org.cisco.oauth.test.OAuthClient.sendGetRequest(</span><u><span style="font-size:10.0pt;font-family:Consolas;color:navy">OAuthClient.java:241</span></u><span style="font-size:10.0pt;font-family:Consolas;color:red">)</span><span style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:red"> at org.cisco.oauth.test.OAuthClient.accessResource(</span><u><span style="font-size:10.0pt;font-family:Consolas;color:navy">OAuthClient.java:383</span></u><span style="font-size:10.0pt;font-family:Consolas;color:red">)</span><span style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:red"> at org.cisco.oauth.test.OAuthClient.hitResource(</span><u><span style="font-size:10.0pt;font-family:Consolas;color:navy">OAuthClient.java:436</span></u><span style="font-size:10.0pt;font-family:Consolas;color:red">)</span><span style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:red"> at org.cisco.oauth.test.OAuthClient.hitResource(</span><u><span style="font-size:10.0pt;font-family:Consolas;color:navy">OAuthClient.java:456</span></u><span style="font-size:10.0pt;font-family:Consolas;color:red">)</span><span style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:red"> at org.cisco.oauth.test.OAuthClient.main(</span><u><span style="font-size:10.0pt;font-family:Consolas;color:navy">OAuthClient.java:503</span></u><span style="font-size:10.0pt;font-family:Consolas;color:red">)</span><span style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:red">Caused by:
</span><u><span style="font-size:10.0pt;font-family:Consolas;color:navy">org.apache.http.client.CircularRedirectException</span></u><span style="font-size:10.0pt;font-family:Consolas;color:red">: Circular redirect to 'https://10.78.216.143:10001/peach-ecmg/ecmg/get'</span><span style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:red"> at org.apache.http.impl.client.DefaultRedirectStrategy.getLocationURI(</span><u><span style="font-size:10.0pt;font-family:Consolas;color:navy">DefaultRedirectStrategy.java:175</span></u><span style="font-size:10.0pt;font-family:Consolas;color:red">)</span><span style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:red"> at org.apache.http.impl.client.DefaultRedirectStrategy.getRedirect(</span><u><span style="font-size:10.0pt;font-family:Consolas;color:navy">DefaultRedirectStrategy.java:219</span></u><span style="font-size:10.0pt;font-family:Consolas;color:red">)</span><span style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:red"> at org.apache.http.impl.execchain.RedirectExec.execute(</span><u><span style="font-size:10.0pt;font-family:Consolas;color:navy">RedirectExec.java:120</span></u><span style="font-size:10.0pt;font-family:Consolas;color:red">)</span><span style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:red"> at org.apache.http.impl.client.InternalHttpClient.doExecute(</span><u><span style="font-size:10.0pt;font-family:Consolas;color:navy">InternalHttpClient.java:184</span></u><span style="font-size:10.0pt;font-family:Consolas;color:red">)</span><span style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:red"> ... 8 more<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:red"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:#7030A0">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:#7030A0">Lakshmi Narayana V</span><span style="color:#7030A0"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext"> Marek Posolda [mailto:mposolda@redhat.com]
<br>
<b>Sent:</b> Tuesday, March 10, 2015 1:50 PM<br>
<b>To:</b> Lakshmi Narayana VADALI (lvadali); keycloak-dev@lists.jboss.org<br>
<b>Subject:</b> Re: [keycloak-dev] Application clustering Issue with Keycloak 1.1.0_Final<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Can you please try to test cluster with your application in standalone mode? Just curious if it's bug specific just to domain mode...<br>
<br>
Thanks,<br>
Marek<br>
<br>
On 9.3.2015 11:09, Lakshmi Narayana VADALI (lvadali) wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="color:#1F497D">Hi Marek,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">We are thinking may be <b>session replication for keycloak application alone ( in domain mode)</b>
<b>is not working</b> because of below reasons</span><o:p></o:p></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo2"><![if !supportLists]><span style="mso-list:Ignore">1.<span style="font:7.0pt "Times New Roman"">
</span></span><![endif]><span style="color:#1F497D">The application you provided is working fine in our environment . (<b>Conclusion::</b> session replication working for other applications)</span><o:p></o:p></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo2"><![if !supportLists]><span style="mso-list:Ignore">2.<span style="font:7.0pt "Times New Roman"">
</span></span><![endif]><span style="color:#1F497D">If only one node in the cluster(domain mode) is up its working. (<b>Conclusion::</b> keycloak setup is fine in my environment , as session replication is not needed)</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">Please let us know if you think otherwise.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">Thanks,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">Lakshmi Narayana V</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext"> Marek Posolda [<a href="mailto:mposolda@redhat.com">mailto:mposolda@redhat.com</a>]
<br>
<b>Sent:</b> Friday, March 06, 2015 1:47 PM<br>
<b>To:</b> Lakshmi Narayana VADALI (lvadali); <a href="mailto:keycloak-dev@lists.jboss.org">
keycloak-dev@lists.jboss.org</a><br>
<b>Subject:</b> Re: [keycloak-dev] Application clustering Issue with Keycloak 1.1.0_Final</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<div>
<p class="MsoNormal">Hi Lakshmi,<br>
<br>
EAP 6.3.0 should work, but I've tested with "standalone" mode so far, not domain mode yet.. Not sure if it's keycloak bug specific to domain or just some issue in your environment.
<br>
<br>
Could you try to test if HTTP session replication works for you in domain mode with some simple servlet application (not keycloak authentication enabled) ? If you don't have any, take a look at this for example:
<a href="https://github.com/keycloak/keycloak/blob/master/testsuite/integration/src/test/java/org/keycloak/testsuite/adapter/SessionServlet.java">
https://github.com/keycloak/keycloak/blob/master/testsuite/integration/src/test/java/org/keycloak/testsuite/adapter/SessionServlet.java</a>
<br>
<br>
Thanks,<br>
Marek<br>
<br>
On 5.3.2015 17:18, Lakshmi Narayana VADALI (lvadali) wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="color:#7030A0">Hi Marek,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#7030A0"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#7030A0">Yes we have "<distributable />" tag in web.xml.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#7030A0"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#7030A0">We are using EAP 6.3.0-1.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#7030A0"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#7030A0">Thanks,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#7030A0">Lakshmi Narayana V</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext"> Marek Posolda [<a href="mailto:mposolda@redhat.com">mailto:mposolda@redhat.com</a>]
<br>
<b>Sent:</b> Thursday, March 05, 2015 8:55 PM<br>
<b>To:</b> Lakshmi Narayana VADALI (lvadali); <a href="mailto:keycloak-dev@lists.jboss.org">
keycloak-dev@lists.jboss.org</a><br>
<b>Subject:</b> Re: [keycloak-dev] Application clustering Issue with Keycloak 1.1.0_Final</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<div>
<p class="MsoNormal">Hi,<br>
<br>
do you have "<distributable />" tag in web.xml? Do you have Wildfly or EAP6 for your application and which version?<br>
<br>
Thanks,<br>
Marek<br>
<br>
On 5.3.2015 14:12, Lakshmi Narayana VADALI (lvadali) wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="color:#7030A0">Hi,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#7030A0"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#7030A0">We are using keycloak 1.1.0_Final. We are trying Application clustering using jboss (domain mode). We Tested clustering setup (with cluster-demo application provided by jboss) which is working. But With Latest
keycloak-adapter looks like keycloak-sessions are not replicated. We are always redirected to Keycloak when the request lands new node of cluster.
</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#7030A0"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#7030A0">We are able to make our setup work if we use cookie store, But we wanted to use Session store rather than cookie store.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#7030A0"> </span><o:p></o:p></p>
<pre><span style="color:#7030A0">When we bringup our nodes we are able to receive below logs </span><o:p></o:p></pre>
<pre><span style="color:#7030A0">INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (Incoming-10,shared=udp)</span><o:p></o:p></pre>
<pre><span style="color:#7030A0">ISPN000094: Received new cluster view: [node1/web|1] (2) [node1/web, node2/web]</span><o:p></o:p></pre>
<p class="MsoNormal"><span style="color:#7030A0">Thanks,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#7030A0">Lakshmi Narayana V </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><br>
<br>
<br>
<br>
<br>
</span><o:p></o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>keycloak-dev mailing list<o:p></o:p></pre>
<pre><a href="mailto:keycloak-dev@lists.jboss.org">keycloak-dev@lists.jboss.org</a><o:p></o:p></pre>
<pre><a href="https://lists.jboss.org/mailman/listinfo/keycloak-dev">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""> </span><o:p></o:p></p>
</blockquote>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman , serif","serif""> </span><o:p></o:p></p>
</blockquote>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p> </o:p></span></p>
</div>
</body>
</html>