<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div>Hi,</div><div><br></div><div><br></div><div>I am planning to migrate the Keycloak server from version 1.3.1 to 1.7.0. However, when trying to access a secured resource of our API I get the following error:</div><div><br></div><div><pre style="overflow:auto;font-family:Menlo,&#39;Liberation Mono&#39;,Consolas,&#39;DejaVu Sans Mono&#39;,&#39;Ubuntu Mono&#39;,&#39;Courier New&#39;,&#39;andale mono&#39;,&#39;lucida console&#39;,monospace;padding:1em;word-wrap:break-word;color:rgb(91,97,105);border:none;border-radius:2px;font-size:13px!important;margin-top:12px!important;margin-bottom:12px!important;line-height:1.6em!important;background:rgb(248,250,252)"><code style="font-family:Menlo,&#39;Liberation Mono&#39;,Consolas,&#39;DejaVu Sans Mono&#39;,&#39;Ubuntu Mono&#39;,&#39;Courier New&#39;,&#39;andale mono&#39;,&#39;lucida console&#39;,monospace;font-size:inherit;padding:0px;color:inherit;border-radius:0px;word-wrap:normal;margin-top:0px;background-color:transparent">HTTP ERROR 500

Problem accessing /v1/producers. Reason:

    Server Error
java.lang.AbstractMethodError: javax.ws.rs.core.UriBuilder.uri(Ljava/lang/String;)Ljavax/ws/rs/core/UriBuilder;
    at javax.ws.rs.core.UriBuilder.fromUri(UriBuilder.java:119)
    at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:292)
    at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:222)
    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
    at com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:165)
    at com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:239)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:553)
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
    at org.eclipse.jetty.server.Server.handle(Server.java:497)
    at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
    at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
    at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
    at java.lang.Thread.run(Thread.java:745)</code></pre></div><div><br></div><div>It used to work with the previous version of Keycloak + adapter (1.3.1). The only thing I did is I just changed dependency version 1.3.1 to 1.7.0 in my pom.xml:</div><div><br></div><div><pre style="color:rgb(0,0,0);font-family:&#39;DejaVu Sans Mono&#39;;font-size:9pt"><span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">dependency</span><span style="background-color:rgb(239,239,239)">&gt;</span><br>    <span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">groupId</span><span style="background-color:rgb(239,239,239)">&gt;</span>org.keycloak<span style="background-color:rgb(239,239,239)">&lt;/</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">groupId</span><span style="background-color:rgb(239,239,239)">&gt;</span><br>    <span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">artifactId</span><span style="background-color:rgb(239,239,239)">&gt;</span>keycloak-core<span style="background-color:rgb(239,239,239)">&lt;/</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">artifactId</span><span style="background-color:rgb(239,239,239)">&gt;</span><br>    <span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">version</span><span style="background-color:rgb(239,239,239)">&gt;</span>1.7.0.Final<span style="background-color:rgb(239,239,239)">&lt;/</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">version</span><span style="background-color:rgb(239,239,239)">&gt;</span><br><span style="background-color:rgb(239,239,239)">&lt;/</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">dependency</span><span style="background-color:rgb(239,239,239)">&gt;</span><br><span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">dependency</span><span style="background-color:rgb(239,239,239)">&gt;</span><br>    <span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">groupId</span><span style="background-color:rgb(239,239,239)">&gt;</span>org.keycloak<span style="background-color:rgb(239,239,239)">&lt;/</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">groupId</span><span style="background-color:rgb(239,239,239)">&gt;</span><br>    <span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">artifactId</span><span style="background-color:rgb(239,239,239)">&gt;</span>keycloak-services<span style="background-color:rgb(239,239,239)">&lt;/</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">artifactId</span><span style="background-color:rgb(239,239,239)">&gt;</span><br>    <span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">version</span><span style="background-color:rgb(239,239,239)">&gt;</span>1.7.0.Final<span style="background-color:rgb(239,239,239)">&lt;/</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">version</span><span style="background-color:rgb(239,239,239)">&gt;</span><br><span style="background-color:rgb(239,239,239)">&lt;/</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">dependency</span><span style="background-color:rgb(239,239,239)">&gt;</span></pre><pre style="color:rgb(0,0,0);font-family:&#39;DejaVu Sans Mono&#39;;font-size:9pt"><pre style="font-family:&#39;DejaVu Sans Mono&#39;;font-size:9pt"><span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">dependency</span><span style="background-color:rgb(239,239,239)">&gt;</span><br>    <span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">groupId</span><span style="background-color:rgb(239,239,239)">&gt;</span>org.keycloak<span style="background-color:rgb(239,239,239)">&lt;/</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">groupId</span><span style="background-color:rgb(239,239,239)">&gt;</span><br>    <span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(228,228,255)">artifactId</span><span style="background-color:rgb(239,239,239)">&gt;</span>keycloak-jetty92-adapter-dist<span style="background-color:rgb(239,239,239)">&lt;/</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(228,228,255)">artifactId</span><span style="background-color:rgb(239,239,239)">&gt;</span><br>    <span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">version</span><span style="background-color:rgb(239,239,239)">&gt;</span>1.7.0.Final<span style="background-color:rgb(239,239,239)">&lt;/</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">version</span><span style="background-color:rgb(239,239,239)">&gt;</span><br>    <span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">type</span><span style="background-color:rgb(239,239,239)">&gt;</span>pom<span style="background-color:rgb(239,239,239)">&lt;/</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">type</span><span style="background-color:rgb(239,239,239)">&gt;</span><br><span style="background-color:rgb(239,239,239)">&lt;/</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">dependency</span><span style="background-color:rgb(239,239,239)">&gt;</span></pre></pre><pre style="color:rgb(0,0,0);font-family:&#39;DejaVu Sans Mono&#39;;font-size:9pt"><span style="background-color:rgb(239,239,239)"><br></span></pre></div><div><br></div><div>Perhaps, something else is missing. Can it be web.xml or jetty-web.xml that I have to update in some way? Any ideas?</div><div>Thanks.</div><div><br></div><div><br></div><div><br></div><br clear="all"><div><div><div dir="ltr"><div><div dir="ltr"><div style="font-family:arial;font-size:small"><div dir="ltr"><font color="#888888">Regards,<br>Pavel Maslov, MS</font></div></div></div></div></div></div></div>
</div>
</div><br></div>