<div dir="ltr">Hi Marko,<div><br></div><div>I have locally tested, and it works.</div><div>Send a fix for the import: <a href="https://github.com/keycloak/keycloak/pull/1356">https://github.com/keycloak/keycloak/pull/1356</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 10, 2015 at 7:15 PM, Stian Thorgersen <span dir="ltr">&lt;<a href="mailto:stian@redhat.com" target="_blank">stian@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
----- Original Message -----<br>
&gt; From: &quot;Marko Strukelj&quot; &lt;<a href="mailto:mstrukel@redhat.com">mstrukel@redhat.com</a>&gt;<br>
&gt; To: &quot;Matthias Wessendorf&quot; &lt;<a href="mailto:matzew@apache.org">matzew@apache.org</a>&gt;<br>
&gt; Cc: <a href="mailto:keycloak-dev@lists.jboss.org">keycloak-dev@lists.jboss.org</a><br>
&gt; Sent: Wednesday, 10 June, 2015 7:04:23 PM<br>
&gt; Subject: Re: [keycloak-dev] Error on EAP 6.4<br>
&gt;<br>
&gt; Remarkably I&#39;ve just been dealing with the same issue while porting<br>
&gt; keycloak-server support from Wildfly 9 to EAP 6 as well.<br>
&gt;<br>
&gt; Looks like just a bad import, and probably messed up or leaking dependencies<br>
&gt; in our poms ...<br>
<br>
</span>Did you fix it?<br>
<div class="HOEnZb"><div class="h5"><br>
&gt;<br>
&gt; ---<br>
&gt; services/src/main/java/org/keycloak/services/resources/admin/RealmAdminResource.java<br>
&gt;       (date 1433857801000)<br>
&gt; +++<br>
&gt; services/src/main/java/org/keycloak/services/resources/admin/RealmAdminResource.java<br>
&gt;       (revision )<br>
&gt; @@ -2,6 +2,7 @@<br>
&gt;<br>
&gt;  import org.jboss.logging.Logger;<br>
&gt;  import org.jboss.resteasy.annotations.cache.NoCache;<br>
&gt; +import org.jboss.resteasy.spi.BadRequestException;<br>
&gt;  import org.jboss.resteasy.spi.NotFoundException;<br>
&gt;  import org.jboss.resteasy.spi.ResteasyProviderFactory;<br>
&gt;  import org.keycloak.ClientConnection;<br>
&gt; @@ -35,7 +36,6 @@<br>
&gt;  import org.keycloak.services.ErrorResponse;<br>
&gt;  import org.keycloak.timer.TimerProvider;<br>
&gt;<br>
&gt; -import javax.ws.rs.BadRequestException;<br>
&gt;  import javax.ws.rs.Consumes;<br>
&gt;  import javax.ws.rs.DELETE;<br>
&gt;  import javax.ws.rs.GET;<br>
&gt;<br>
&gt; ----- Original Message -----<br>
&gt; &gt; Hi,<br>
&gt; &gt;<br>
&gt; &gt; trying to update UPS to 1.3.0.Final(-SNAPSHOT), I am getting an exception.<br>
&gt; &gt;<br>
&gt; &gt; When accessing this URL:<br>
&gt; &gt; <a href="http://localhost:8080/auth/admin/aerogear/console/" target="_blank">http://localhost:8080/auth/admin/aerogear/console/</a><br>
&gt; &gt;<br>
&gt; &gt; and after logging in I see some error - looks like JAX-RS 2.0 dependency,<br>
&gt; &gt; but<br>
&gt; &gt; EAP is 1.1, no?<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &lt;error&gt;<br>
&gt; &gt; 17:46:31,638 ERROR<br>
&gt; &gt; [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/auth].[Keycloak<br>
&gt; &gt; REST Interface]] (http-/0.0.0.0:8080-4) JBWEB000236: Servlet.service() for<br>
&gt; &gt; servlet Keycloak REST Interface threw exception:<br>
&gt; &gt; java.lang.RuntimeException:<br>
&gt; &gt; request path: /auth/admin/realms/aerogear<br>
&gt; &gt; at<br>
&gt; &gt; org.keycloak.services.filters.KeycloakSessionServletFilter.doFilter(KeycloakSessionServletFilter.java:54)<br>
&gt; &gt; [keycloak-services-1.3.0.Final-SNAPSHOT.jar:1.3.0.Final-SNAPSHOT]<br>
&gt; &gt; at<br>
&gt; &gt; org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)<br>
&gt; &gt; [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br>
&gt; &gt; at<br>
&gt; &gt; org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)<br>
&gt; &gt; [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br>
&gt; &gt; at<br>
&gt; &gt; org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231)<br>
&gt; &gt; [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br>
&gt; &gt; at<br>
&gt; &gt; org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)<br>
&gt; &gt; [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br>
&gt; &gt; at<br>
&gt; &gt; org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)<br>
&gt; &gt; [jboss-as-jpa-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]<br>
&gt; &gt; at<br>
&gt; &gt; org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)<br>
&gt; &gt; [jboss-as-jpa-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]<br>
&gt; &gt; at<br>
&gt; &gt; org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)<br>
&gt; &gt; [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]<br>
&gt; &gt; at<br>
&gt; &gt; org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:150)<br>
&gt; &gt; [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br>
&gt; &gt; at<br>
&gt; &gt; org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)<br>
&gt; &gt; [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br>
&gt; &gt; at<br>
&gt; &gt; org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)<br>
&gt; &gt; [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br>
&gt; &gt; at<br>
&gt; &gt; org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344)<br>
&gt; &gt; [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br>
&gt; &gt; at<br>
&gt; &gt; org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:854)<br>
&gt; &gt; [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br>
&gt; &gt; at<br>
&gt; &gt; org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)<br>
&gt; &gt; [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br>
&gt; &gt; at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926)<br>
&gt; &gt; [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br>
&gt; &gt; at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_65]<br>
&gt; &gt; Caused by: org.jboss.resteasy.spi.UnhandledException:<br>
&gt; &gt; java.lang.NoClassDefFoundError: javax/ws/rs/BadRequestException<br>
&gt; &gt; at<br>
&gt; &gt; org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:364)<br>
&gt; &gt; [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]<br>
&gt; &gt; at<br>
&gt; &gt; org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:232)<br>
&gt; &gt; [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]<br>
&gt; &gt; at<br>
&gt; &gt; org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:208)<br>
&gt; &gt; [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]<br>
&gt; &gt; at<br>
&gt; &gt; org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:556)<br>
&gt; &gt; [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]<br>
&gt; &gt; at<br>
&gt; &gt; org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:523)<br>
&gt; &gt; [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]<br>
&gt; &gt; at<br>
&gt; &gt; org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:125)<br>
&gt; &gt; [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]<br>
&gt; &gt; at<br>
&gt; &gt; org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)<br>
&gt; &gt; [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]<br>
&gt; &gt; at<br>
&gt; &gt; org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)<br>
&gt; &gt; [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]<br>
&gt; &gt; at<br>
&gt; &gt; org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)<br>
&gt; &gt; [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]<br>
&gt; &gt; at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)<br>
&gt; &gt; [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-2.jar:1.0.2.Final-redhat-2]<br>
&gt; &gt; at<br>
&gt; &gt; org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)<br>
&gt; &gt; [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br>
&gt; &gt; at<br>
&gt; &gt; org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)<br>
&gt; &gt; [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br>
&gt; &gt; at<br>
&gt; &gt; org.keycloak.services.filters.ClientConnectionFilter.doFilter(ClientConnectionFilter.java:41)<br>
&gt; &gt; [keycloak-services-1.3.0.Final-SNAPSHOT.jar:1.3.0.Final-SNAPSHOT]<br>
&gt; &gt; at<br>
&gt; &gt; org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)<br>
&gt; &gt; [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br>
&gt; &gt; at<br>
&gt; &gt; org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)<br>
&gt; &gt; [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br>
&gt; &gt; at<br>
&gt; &gt; org.keycloak.services.filters.KeycloakSessionServletFilter.doFilter(KeycloakSessionServletFilter.java:40)<br>
&gt; &gt; [keycloak-services-1.3.0.Final-SNAPSHOT.jar:1.3.0.Final-SNAPSHOT]<br>
&gt; &gt; ... 15 more<br>
&gt; &gt; Caused by: java.lang.NoClassDefFoundError: javax/ws/rs/BadRequestException<br>
&gt; &gt; at<br>
&gt; &gt; org.keycloak.services.resources.admin.RealmsAdminResource.getRealmAdmin(RealmsAdminResource.java:232)<br>
&gt; &gt; [keycloak-services-1.3.0.Final-SNAPSHOT.jar:1.3.0.Final-SNAPSHOT]<br>
&gt; &gt; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
&gt; &gt; [rt.jar:1.7.0_65]<br>
&gt; &gt; at<br>
&gt; &gt; sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)<br>
&gt; &gt; [rt.jar:1.7.0_65]<br>
&gt; &gt; at<br>
&gt; &gt; sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br>
&gt; &gt; [rt.jar:1.7.0_65]<br>
&gt; &gt; at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_65]<br>
&gt; &gt; at<br>
&gt; &gt; org.jboss.resteasy.core.ResourceLocator.createResource(ResourceLocator.java:64)<br>
&gt; &gt; [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]<br>
&gt; &gt; at org.jboss.resteasy.core.ResourceLocator.invoke(ResourceLocator.java:105)<br>
&gt; &gt; [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]<br>
&gt; &gt; at<br>
&gt; &gt; org.jboss.resteasy.core.ResourceLocator.invokeOnTargetObject(ResourceLocator.java:153)<br>
&gt; &gt; [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]<br>
&gt; &gt; at org.jboss.resteasy.core.ResourceLocator.invoke(ResourceLocator.java:91)<br>
&gt; &gt; [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]<br>
&gt; &gt; at<br>
&gt; &gt; org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:541)<br>
&gt; &gt; [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]<br>
&gt; &gt; ... 27 more<br>
&gt; &gt; Caused by: java.lang.ClassNotFoundException:<br>
&gt; &gt; javax.ws.rs.BadRequestException<br>
&gt; &gt; from [Module &quot;deployment.auth-server.war:main&quot; from Service Module Loader]<br>
&gt; &gt; at<br>
&gt; &gt; org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213)<br>
&gt; &gt; [jboss-modules.jar:1.3.6.Final-redhat-1]<br>
&gt; &gt; at<br>
&gt; &gt; org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459)<br>
&gt; &gt; [jboss-modules.jar:1.3.6.Final-redhat-1]<br>
&gt; &gt; at<br>
&gt; &gt; org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408)<br>
&gt; &gt; [jboss-modules.jar:1.3.6.Final-redhat-1]<br>
&gt; &gt; at<br>
&gt; &gt; org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389)<br>
&gt; &gt; [jboss-modules.jar:1.3.6.Final-redhat-1]<br>
&gt; &gt; at<br>
&gt; &gt; org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134)<br>
&gt; &gt; [jboss-modules.jar:1.3.6.Final-redhat-1]<br>
&gt; &gt; ... 37 more<br>
&gt; &gt;<br>
&gt; &gt; &lt;/error&gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Matthias Wessendorf<br>
&gt; &gt;<br>
&gt; &gt; blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
&gt; &gt; sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
&gt; &gt; twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a><br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; keycloak-dev mailing list<br>
&gt; &gt; <a href="mailto:keycloak-dev@lists.jboss.org">keycloak-dev@lists.jboss.org</a><br>
&gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/keycloak-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a><br>
&gt; _______________________________________________<br>
&gt; keycloak-dev mailing list<br>
&gt; <a href="mailto:keycloak-dev@lists.jboss.org">keycloak-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/keycloak-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a><br>
&gt;<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Matthias Wessendorf <br><br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a></div>
</div>