<p dir="ltr">If it helps I'm using wildfly 10 and have keycloak on a standalone server. The authenication works. It just when my app tries to read the security context I get the class not found exception.</p>
<p dir="ltr">So what triggers wildfly to include the keycloak modules in my apps class path?<br></p>
<div class="gmail_quote">On 20/05/2016 10:10 pm, "Bruno Oliveira" <<a href="mailto:bruno@abstractj.org">bruno@abstractj.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Weird because it was fixed here: <a href="https://issues.jboss.org/browse/KEYCLOAK-2483" rel="noreferrer" target="_blank">https://issues.jboss.org/browse/KEYCLOAK-2483</a>. Plus, I tested<br>
on WildFly 9.0.2.Final with Keycloak adapter 1.9.4.Final and couldn't<br>
reproduce the issue.<br>
<br>
On 2016-05-20, Darrell Wu wrote:<br>
> Hi,<br>
><br>
> With the keycloak wildfly adapter for version 1.9.x i've noticed that the<br>
> location of the Keycloak Subsystem modules have changed from<br>
> modules\system\layers\base\org\keycloak to<br>
> modules\system\add-ons\keycloak\org\keycloak<br>
><br>
> Now on my secure war application server I've installed the keycloak wildfly<br>
> adpater by unzipping the archive and running the <a href="http://adapter-install.cl" rel="noreferrer" target="_blank">adapter-install.cl</a> script.<br>
><br>
> Now In my application i'm getting a<br>
> ClassNotFoundException: org.keycloak.KeycloakSecurityContext<br>
><br>
> when the following is executed<br>
><br>
> KeycloakSecurityContext securityContext = (KeycloakSecurityContext)<br>
> httpRequest.getAttribute(KeycloakSecurityContext.class.getName());<br>
><br>
> Obviously the application isn't loading the keycloak modules in the<br>
> classpath.<br>
> What is the proper way to include the keycloak libraries in my app?<br>
><br>
> Should my app have a jboss-deployment-structure.xml file or should the<br>
> libraries be moved back to modules\system\layers\base\org\keycloak?<br>
><br>
> Thanks<br>
><br>
><br>
><br>
> --<br>
> Darrell Wu<br>
> 1Place Limited<br>
> P.O. Box 125152, St Heliers, Auckland 1740, New Zealand<br>
> Level 4, 1 Queen Street, Auckland 1010, New Zealand<br>
> Phone: <a href="tel:%2B64%209%205200612%20ext%20521" value="+6495200612">+64 9 5200612 ext 521</a> | Mob: <a href="tel:%2B64%2021%20262%204898" value="+64212624898">+64 21 262 4898</a> | Fax: <a href="tel:%2B64%209%205246203" value="+6495246203">+64 9 5246203</a><br>
> Email: <a href="mailto:darrell@1placeonline.com">darrell@1placeonline.com</a> | Web: <a href="http://www.1placeonline.com" rel="noreferrer" target="_blank">www.1placeonline.com</a><br>
<br>
> _______________________________________________<br>
> keycloak-user mailing list<br>
> <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
<br>
<br>
--<br>
<br>
abstractj<br>
PGP: 0x84DC9914<br>
</blockquote></div>