<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    As I wrote, when you change the Undertow version in the parent pom,
    a build will generate a compilation error when using the Undertow
    version that is used in Wildfly 10 which would be 1.3.x.<br>
    <br>
    I encountered the following exception in the Undertow adapters
    because of binary incompatibilities between Undertow 1.2.x and
    1.3.x:<br>
    <br>
    java.lang.NoSuchMethodError:
io.undertow.server.Connectors.ungetRequestBytes(Lio/undertow/server/HttpServerExchange;[Lorg/xnio/Pooled;)V<br>
            at
org.keycloak.adapters.undertow.SavedRequest.tryRestoreRequest(SavedRequest.java:112)<br>
            at
org.keycloak.adapters.undertow.ServletSessionTokenStore.restoreRequest(ServletSessionTokenStore.java:119)<br>
            at
org.keycloak.adapters.undertow.ServletSessionTokenStore.isCached(ServletSessionTokenStore.java:67)<br>
            at
org.keycloak.adapters.RequestAuthenticator.authenticate(RequestAuthenticator.java:88)<br>
            at
org.keycloak.adapters.undertow.AbstractUndertowKeycloakAuthMech.keycloakAuthenticate(AbstractUndertowKeycloakAuthMech.java:110)<br>
            at
org.keycloak.adapters.undertow.ServletKeycloakAuthMech.authenticate(ServletKeycloakAuthMech.java:92)<br>
    <br>
    <br>
    Regards,<br>
    Christian<br>
    <br>
    <div class="moz-cite-prefix">Am 21.01.2016 um 16:00 schrieb Stian
      Thorgersen:<br>
    </div>
    <blockquote
cite="mid:CAJgngAeaWbHxWhhGZbkYGO64tiJa4ApzEtEWF4x=bL=oX17ZOg@mail.gmail.com"
      type="cite">
      <div dir="ltr">When we tested it, it worked. So I need more
        details from you to reproduce this.</div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On 21 January 2016 at 14:50, Christian
          Beikov <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:christian.beikov@gmail.com" target="_blank">christian.beikov@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 bgcolor="#FFFFFF" text="#000000"> I deploy the adapter
              by overlaying/copying the adapter modules into my Wildfly.<br>
              <br>
              I understand that you support older Wildfly versions too,
              but I guess you have to create a separate adapter for
              Wildfly 10 then.<br>
              You can easily see that there are incompatibilities
              between Undertow 1.2.x and 1.3.x which will result in a
              failed compilation if you change the Undertow version in
              the parent pom for testing purposes.<br>
              <br>
              Regards,<br>
              Christian
              <div>
                <div class="h5"><br>
                  <br>
                  <div>Am 21.01.2016 um 14:44 schrieb Stian Thorgersen:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr">BTW we support older versions of
                      WildFly as well as 10, so it's not as simple as
                      upgrading the undertow version</div>
                    <div class="gmail_extra"><br>
                      <div class="gmail_quote">On 21 January 2016 at
                        14:43, Stian Thorgersen <span dir="ltr">&lt;<a
                            moz-do-not-send="true"
                            href="mailto:sthorger@redhat.com"
                            target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:sthorger@redhat.com">sthorger@redhat.com</a></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">How are you deploying the
                            adapter and what adapter are you using? We
                            have tested the adapter with WildFly 10
                            (Keycloak 1.8.0.CR1 was tested on
                            10.0.0.CR5) and it worked fine.</div>
                          <div>
                            <div>
                              <div class="gmail_extra"><br>
                                <div class="gmail_quote">On 21 January
                                  2016 at 14:30, Christian Beikov <span
                                    dir="ltr">&lt;<a
                                      moz-do-not-send="true"
                                      href="mailto:christian.beikov@gmail.com"
                                      target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:christian.beikov@gmail.com">christian.beikov@gmail.com</a></a>&gt;</span>
                                  wrote:<br>
                                  <blockquote class="gmail_quote"
                                    style="margin:0 0 0
                                    .8ex;border-left:1px #ccc
                                    solid;padding-left:1ex">Hello,<br>
                                    <br>
                                    I am trying to deploy Keycloak
                                    1.8.0.CR1 to Wildfly 10.0.0.CR4 but
                                    there<br>
                                    are some problems with that.<br>
                                    You are compiling against Undertow
                                    1.1.1.Final but Wildfly 10.0.0.CR4<br>
                                    comes with 1.3.3.Final and there are
                                    some binary incompatibilities in<br>
                                    io.undertow.server.Connectors of
                                    which<br>
                                    org.keycloak.adapters.undertow.SavedRequest
                                    is affected.<br>
                                    You are using
                                    io.undertow.util.ImmediatePooled
                                    instead of the expected<br>
                                    type
                                    io.undertow.connector.PooledByteBuffer
                                    which leads to method not<br>
                                    found exceptions.<br>
                                    I suggest you update the undertow
                                    version in the parent pom.xml to
                                    make<br>
                                    sure everything is binary compatible
                                    if you are going to support Wildfly<br>
                                    10 as you announced.<br>
                                    <br>
                                    Regards,<br>
                                    Christian<br>
_______________________________________________<br>
                                    keycloak-dev mailing list<br>
                                    <a moz-do-not-send="true"
                                      href="mailto:keycloak-dev@lists.jboss.org"
                                      target="_blank">keycloak-dev@lists.jboss.org</a><br>
                                    <a moz-do-not-send="true"
                                      href="https://lists.jboss.org/mailman/listinfo/keycloak-dev"
                                      rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a><br>
                                  </blockquote>
                                </div>
                                <br>
                              </div>
                            </div>
                          </div>
                        </blockquote>
                      </div>
                      <br>
                    </div>
                  </blockquote>
                  <br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>