Still no luck using Tomcat 8 and Keycloak 1.2.0.Beta1. <div><br></div><div>I will install a custom built agent tomorrow to catch the actual exception to see what's up.</div><div><br></div><div><br>On Thursday, April 2, 2015, Scott Rossillo <<a href="mailto:srossillo@smartling.com">srossillo@smartling.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>Thanks for the reply.<br></div><div><br></div><div>I was trying to log a user out from the Keycloak admin console. I will try the redirect method and see if it works.</div><div><br></div><div>Also, I’m using 1.1.0.Final. I will upgrade to 1.2.0.Beta1 and report if the issue is still occurring. </div><div><br></div><div>Best,</div><div>Scott</div><div> </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 2, 2015 at 10:23 AM, Marek Posolda <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','mposolda@redhat.com');" target="_blank">mposolda@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Hi,<br>
<br>
I've tried with Apache Tomcat 6.0.35 but wasn't able to reproduce
with latest Keycloak 1.2.0.Beta1. Logout works fine for me.<br>
<br>
How are you doing logout? From the application or from KC admin
console? For the tomcat6, the httpServletRequest.logout() method
is not yet available, so best for logout from the application is
redirecting to Keycloak logout URL similarly like in our demo
example:
<a href="https://github.com/keycloak/keycloak/blob/master/examples/demo-template/customer-app/src/main/webapp/customers/view.jsp#L14" target="_blank">https://github.com/keycloak/keycloak/blob/master/examples/demo-template/customer-app/src/main/webapp/customers/view.jsp#L14</a><br>
<br>
You can also enable debug logging, which should show some
additional messages in the log by adding this line into
$TOMCAT_HOME/conf/logging.properties:<br>
<br>
org.keycloak.level = FINE<br>
<br>
Marek<div><div><br>
<br>
<br>
On 2.4.2015 01:37, Scott Rossillo wrote:<br>
</div></div></div>
<blockquote type="cite"><div><div>
<div dir="ltr">Hi all,
<div><br>
</div>
<div>I’m running Keycloak 1.1.0-Final in standalone mode and
using Keycloak agents on Tomcat 6 and Tomcat 8.<br>
<div><br>
</div>
<div>With both agents, whenever I try to log a user out via
the Keycloak server, I see this in the Tomcat server’s log:</div>
</div>
<div><br>
</div>
<div>
<div>Apr 01, 2015 7:27:47 PM
org.keycloak.adapters.tomcat.CatalinaUserSessionManagement
logoutSession</div>
<div>WARN: Session not present or already invalidated.</div>
</div>
<div><br>
</div>
<div>The session is still valid and continues to be valid for
some period of time in each of the Tomcat instances. Anyone
know how to fix? </div>
<div><br>
</div>
<div>I was looking at the source and I see this method:</div>
<div>
<ul style="padding-left:1em;margin:0px auto;color:rgb(0,0,0)">
<li style="display:inline"><span title="org.keycloak.adapters.tomcat.CatalinaUserSessionManagement"><font face="monospace, monospace"><br>
</font></span></li>
</ul>
<ul style="padding-left:1em;margin:0px auto;color:rgb(0,0,0)">
<li style="display:inline"><span title="org.keycloak.adapters.tomcat.CatalinaUserSessionManagement"><font face="monospace, monospace">org.keycloak.adapters.tomcat.CatalinaUserSessionManagement.</font></span></li>
</ul>
<font face="monospace, monospace">logoutSession()</font></div>
<div><br>
</div>
<div>I may test loging the actual exception tomorrow if no one
has a clue, but I think it’s probably the exception is being
thrown for some reason other than the session no longer
existing (it definitely still does).</div>
<div><br>
</div>
<div>Best,</div>
<div>Scott</div>
<div><br>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
keycloak-user mailing list
<a href="javascript:_e(%7B%7D,'cvml','keycloak-user@lists.jboss.org');" target="_blank">keycloak-user@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre>
</blockquote>
<br>
</div>
</blockquote></div><br></div>
</blockquote></div>