Not sure how to do this. Can you elaborate, please?Regards,
Pavel Maslov, MSOn Mon, Jan 11, 2016 at 6:37 PM, Bill Burke <bburke@redhat.com> wrote:Hmm, a resteasy dependency has stuck in maybe? Remove the jaxrs and resteasy jars that exist in the adapter distro for Jetty? Does that work?
On 1/11/2016 6:50 AM, Pavel Maslov wrote:
Hi,
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:
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)
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:
<dependency> <groupId>org.keycloak</groupId> <artifactId>keycloak-core</artifactId> <version>1.7.0.Final</version> </dependency> <dependency> <groupId>org.keycloak</groupId> <artifactId>keycloak-services</artifactId> <version>1.7.0.Final</version> </dependency><dependency> <groupId>org.keycloak</groupId> <artifactId>keycloak-jetty92-adapter-dist</artifactId> <version>1.7.0.Final</version> <type>pom</type> </dependency>
Perhaps, something else is missing. Can it be web.xml or jetty-web.xml that I have to update in some way? Any ideas?Thanks.
Regards,
Pavel Maslov, MS
_______________________________________________ keycloak-user mailing list keycloak-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/keycloak-user
-- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com
_______________________________________________
keycloak-user mailing list
keycloak-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user