<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">This is known issue in 1.7 and should
      be already fixed : <a class="moz-txt-link-freetext" href="https://issues.jboss.org/browse/KEYCLOAK-2229">https://issues.jboss.org/browse/KEYCLOAK-2229</a> .
      AFAIK it happens just in environment like Keycloak running on
      Wildfly or EAP 6.4, not with KeycloakServer (which is what I
      tested and hence didn't find it before :( )<br>
      <br>
      I will doublecheck it works in 1.8.<br>
      <br>
      As workaround for 1.7, you can get rid of this error by adding the
      line : <br>
      <br>
      <span class="blob-code-inner">&lt;<span class="pl-ent">module</span>
        <span class="pl-e">name</span>=<span class="pl-s"><span
            class="pl-pds">"</span>org.keycloak.keycloak-broker-core<span
            class="pl-pds">"</span></span>/&gt;<br>
        <br>
        into "modules" section into file
$KEYCLOAK_HOME//modules/system/layers/base/org/keycloak/keycloak-login-freemarker/main/module.xml<br>
        <br>
        Marek<br>
        <br>
      </span>On 11/01/16 20:10, Stian Thorgersen wrote:<br>
    </div>
    <blockquote
cite="mid:CAJgngAfNsn6mC-wNnQAC03bqEE9O6zz==fLE79sNvwtiGeyVWw@mail.gmail.com"
      type="cite">
      <div dir="ltr">Works fine here. How did you install it
        (standalone, into existing WildFly/EAP, etc.)? Did you do an
        upgrade from previous release?</div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On 11 January 2016 at 19:52, Helder dos
          S. Alves <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:helder.jaspion@gmail.com" target="_blank">helder.jaspion@gmail.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">
              <div>Hi.</div>
              <div><br>
              </div>
              <div>I'm using Keycloak 1.7.0.Final and I'm having some
                troubles:</div>
              <div>I logged in using my Facebook account, but when I try
                to log in using my Google account (whose email is the
                same as Facebook's) I am getting the error:</div>
              <div><br>
              </div>
              <div>
                <p><span>16:36:58,870 ERROR [io.undertow.request]
                    (default task-54) UT005023: Exception handling
                    request to
                    /auth/realms/GJC-Websites/login-actions/first-broker-login:
                    java.lang.RuntimeException: request path:
                    /auth/realms/GJC-Websites/login-actions/first-broker-login</span></p>
                <p><span><span> </span>at
org.keycloak.services.filters.KeycloakSessionServletFilter.doFilter(KeycloakSessionServletFilter.java:75)</span></p>
                <p><span><span> </span>at
                    io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)</span></p>
                <p><span><span> </span>at
io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132)</span></p>
                <p><span><span> </span>at
io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85)</span></p>
                <p><span><span> </span>at
io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)</span></p>
                <p><span><span> </span>at
io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)</span></p>
                <p><span><span> </span>at
org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)</span></p>
                <p><span><span> </span>at
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)</span></p>
                <p><span><span> </span>at
io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)</span></p>
                <p><span><span> </span>at
io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)</span></p>
                <p><span><span> </span>at
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)</span></p>
                <p><span><span> </span>at
io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)</span></p>
                <p><span><span> </span>at
io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)</span></p>
                <p><span><span> </span>at
io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58)</span></p>
                <p><span><span> </span>at
io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:72)</span></p>
                <p><span><span> </span>at
io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)</span></p>
                <p><span><span> </span>at
io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)</span></p>
                <p><span><span> </span>at
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)</span></p>
                <p><span><span> </span>at
org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)</span></p>
                <p><span><span> </span>at
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)</span></p>
                <p><span><span> </span>at
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)</span></p>
                <p><span><span> </span>at
io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:282)</span></p>
                <p><span><span> </span>at
io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:261)</span></p>
                <p><span><span> </span>at
io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:80)</span></p>
                <p><span><span> </span>at
io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:172)</span></p>
                <p><span><span> </span>at
                    io.undertow.server.Connectors.executeRootHandler(Connectors.java:199)</span></p>
                <p><span><span> </span>at
                    io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:774)</span></p>
                <p><span><span> </span>at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)</span></p>
                <p><span><span> </span>at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)</span></p>
                <p><span><span> </span>at
                    java.lang.Thread.run(Thread.java:745)</span></p>
                <p><span>Caused by:
                    org.jboss.resteasy.spi.UnhandledException:
                    java.lang.NoClassDefFoundError:
                    org/keycloak/broker/provider/BrokeredIdentityContext</span></p>
                <p><span><span> </span>at
org.jboss.resteasy.core.ExceptionHandler.handleApplicationException(ExceptionHandler.java:76)</span></p>
                <p><span><span> </span>at
org.jboss.resteasy.core.ExceptionHandler.handleException(ExceptionHandler.java:212)</span></p>
                <p><span><span> </span>at
org.jboss.resteasy.core.SynchronousDispatcher.writeException(SynchronousDispatcher.java:149)</span></p>
                <p><span><span> </span>at
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:372)</span></p>
                <p><span><span> </span>at
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:179)</span></p>
                <p><span><span> </span>at
org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:220)</span></p>
                <p><span><span> </span>at
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)</span></p>
                <p><span><span> </span>at
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51)</span></p>
                <p><span><span> </span>at
                    javax.servlet.http.HttpServlet.service(HttpServlet.java:790)</span></p>
                <p><span><span> </span>at
io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:86)</span></p>
                <p><span><span> </span>at
io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:130)</span></p>
                <p><span><span> </span>at
org.keycloak.services.filters.KeycloakSessionServletFilter.doFilter(KeycloakSessionServletFilter.java:61)</span></p>
                <p><span><span> </span>... 29 more</span></p>
                <p><span>Caused by: java.lang.NoClassDefFoundError:
                    org/keycloak/broker/provider/BrokeredIdentityContext</span></p>
                <p><span><span> </span>at
org.keycloak.login.freemarker.FreeMarkerLoginFormsProvider.createResponse(FreeMarkerLoginFormsProvider.java:290)</span></p>
                <p><span><span> </span>at
org.keycloak.login.freemarker.FreeMarkerLoginFormsProvider.createIdpLinkConfirmLinkPage(FreeMarkerLoginFormsProvider.java:467)</span></p>
                <p><span><span> </span>at
org.keycloak.authentication.authenticators.broker.IdpConfirmLinkAuthenticator.authenticateImpl(IdpConfirmLinkAuthenticator.java:43)</span></p>
                <p><span><span> </span>at
org.keycloak.authentication.authenticators.broker.AbstractIdpAuthenticator.authenticate(AbstractIdpAuthenticator.java:57)</span></p>
                <p><span><span> </span>at
org.keycloak.authentication.DefaultAuthenticationFlow.processFlow(DefaultAuthenticationFlow.java:155)</span></p>
                <p><span><span> </span>at
org.keycloak.authentication.DefaultAuthenticationFlow.processFlow(DefaultAuthenticationFlow.java:97)</span></p>
                <p><span><span> </span>at
org.keycloak.authentication.AuthenticationProcessor.authenticate(AuthenticationProcessor.java:652)</span></p>
                <p><span><span> </span>at
org.keycloak.services.resources.LoginActionsService.processFlow(LoginActionsService.java:301)</span></p>
                <p><span><span> </span>at
org.keycloak.services.resources.LoginActionsService.firstBrokerLogin(LoginActionsService.java:528)</span></p>
                <p><span><span> </span>at
org.keycloak.services.resources.LoginActionsService.firstBrokerLoginGet(LoginActionsService.java:487)</span></p>
                <p><span><span> </span>at
                    sun.reflect.NativeMethodAccessorImpl.invoke0(Native
                    Method)</span></p>
                <p><span><span> </span>at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)</span></p>
                <p><span><span> </span>at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)</span></p>
                <p><span><span> </span>at
                    java.lang.reflect.Method.invoke(Method.java:497)</span></p>
                <p><span><span> </span>at
org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:137)</span></p>
                <p><span><span> </span>at
org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:296)</span></p>
                <p><span><span> </span>at
org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:250)</span></p>
                <p><span><span> </span>at
org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTargetObject(ResourceLocatorInvoker.java:140)</span></p>
                <p><span><span> </span>at
org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:103)</span></p>
                <p><span><span> </span>at
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)</span></p>
                <p><span><span> </span>... 37 more</span></p>
              </div>
              <div><br>
              </div>
              <div><br>
              </div>
              <div>Thanks in advance.</div>
              <span class="HOEnZb"><font color="#888888"><br clear="all">
                  <div>
                    <div>
                      <div dir="ltr">
                        <div>
                          <div dir="ltr">Helder S. Alves<br>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </font></span></div>
            <br>
            _______________________________________________<br>
            keycloak-user mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
            <a moz-do-not-send="true"
              href="https://lists.jboss.org/mailman/listinfo/keycloak-user"
              rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
keycloak-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-user">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre>
    </blockquote>
    <br>
  </body>
</html>