<div dir="ltr">Are you trying to deploy the WAR to the Keycloak server itself? It should be installed onto a separate WildFly server with the Keycloak adapter subystem installed. See documentation for that.</div><div class="gmail_extra"><br><div class="gmail_quote">On 3 March 2016 at 15:21, Jeff Picklyk <span dir="ltr"><<a href="mailto:jpicklyk@gmail.com" target="_blank">jpicklyk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Stian, thank you for following up.<div><br></div><div>To keep things simple the application is working on the full KC 1.5.0.Final.zip distribution but not on the 1.9.0.Final.zip distribution. My war file is secured by KC and has the keycloak.json file updated when I attempt to use the 1.9 distribution.</div><div><br></div><div>I do use the admin client and the representation classes to retrieve data from the server which all works fine in 1.5.0.</div><div><br></div><div>Here are further details from my POM file.</div><span class=""><div><pre style="color:rgb(169,183,198);font-family:'Courier New';font-size:9pt;background-color:rgb(43,43,43)"><span style="color:rgb(232,191,106)"><jackson.version></span>2.5.4<span style="color:rgb(232,191,106)"></jackson.version><br></span><span style="color:rgb(232,191,106)"><resteasy.version></span>3.0.14.Final<span style="color:rgb(232,191,106)"></resteasy.version><br></span><span style="color:rgb(232,191,106)"><deltaspike.version></span>1.5.0<span style="color:rgb(232,191,106)"></deltaspike.version><br></span><span style="color:rgb(232,191,106)"><keycloak.version></span>1.9.0.Final<span style="color:rgb(232,191,106)"></keycloak.version></span></pre></div></span><div><pre style="color:rgb(169,183,198);font-family:'Courier New';font-size:9pt;background-color:rgb(43,43,43)"><span style="color:rgb(128,128,128);font-style:italic"><!-- Keycloak dependencies --><br></span><span style="color:rgb(232,191,106)"><dependency><br></span><span style="color:rgb(232,191,106)"> <groupId></span>org.keycloak<span style="color:rgb(232,191,106)"></groupId><br></span><span style="color:rgb(232,191,106)"> <artifactId></span>keycloak-core<span style="color:rgb(232,191,106)"></artifactId><br></span><span style="color:rgb(232,191,106)"> <scope></span>provided<span style="color:rgb(232,191,106)"></scope><br></span><span style="color:rgb(232,191,106)"> <version></span>${keycloak.version}<span style="color:rgb(232,191,106)"></version><br></span><span style="color:rgb(232,191,106)"></dependency><br></span><span style="color:rgb(232,191,106)"><dependency><br></span><span style="color:rgb(232,191,106)"> <groupId></span>org.keycloak<span style="color:rgb(232,191,106)"></groupId><br></span><span style="color:rgb(232,191,106)"> <artifactId></span>keycloak-adapter-core<span style="color:rgb(232,191,106)"></artifactId><br></span><span style="color:rgb(232,191,106)"> <scope></span>provided<span style="color:rgb(232,191,106)"></scope><br></span><span style="color:rgb(232,191,106)"> <version></span>${keycloak.version}<span style="color:rgb(232,191,106)"></version><br></span><span style="color:rgb(232,191,106)"></dependency><br></span><span style="color:rgb(128,128,128);font-style:italic"><!-- Keycloak client --><br></span><span style="color:rgb(232,191,106)"><dependency><br></span><span style="color:rgb(232,191,106)"> <groupId></span>org.keycloak<span style="color:rgb(232,191,106)"></groupId><br></span><span style="color:rgb(232,191,106)"> <artifactId></span>keycloak-admin-client<span style="color:rgb(232,191,106)"></artifactId><br></span><span style="color:rgb(232,191,106)"> <version></span>${keycloak.version}<span style="color:rgb(232,191,106)"></version><br></span><span style="color:rgb(232,191,106)"></dependency></span></pre><pre style="color:rgb(169,183,198);font-family:'Courier New';font-size:9pt;background-color:rgb(43,43,43)"><pre style="font-family:'Courier New';font-size:9pt"><span style="color:rgb(128,128,128);font-style:italic"><!-- Resteasy dependancies --><br></span><span style="color:rgb(128,128,128);font-style:italic"> </span><span style="color:rgb(232,191,106)"><dependency><br></span><span style="color:rgb(232,191,106)"> <groupId></span>org.jboss.resteasy<span style="color:rgb(232,191,106)"></groupId><br></span><span style="color:rgb(232,191,106)"> <artifactId></span>resteasy-client<span style="color:rgb(232,191,106)"></artifactId><br></span><span style="color:rgb(232,191,106)"> <version></span>${resteasy.version}<span style="color:rgb(232,191,106)"></version><br></span><span style="color:rgb(232,191,106)"> <scope></span>provided<span style="color:rgb(232,191,106)"></scope><br></span><span style="color:rgb(232,191,106)"> </dependency><br></span><span style="color:rgb(232,191,106)"> <dependency><br></span><span style="color:rgb(232,191,106)"> <groupId></span>org.jboss.resteasy<span style="color:rgb(232,191,106)"></groupId><br></span><span style="color:rgb(232,191,106)"> <artifactId></span>resteasy-jackson2-provider<span style="color:rgb(232,191,106)"></artifactId><br></span><span style="color:rgb(232,191,106)"> <version></span>${resteasy.version}<span style="color:rgb(232,191,106)"></version><br></span><span style="color:rgb(232,191,106)"> <scope></span>provided<span style="color:rgb(232,191,106)"></scope><br></span><span style="color:rgb(232,191,106)"> </dependency></span><span style="color:rgb(232,191,106)"> </span><span style="color:rgb(128,128,128);font-style:italic"><br></span><span style="color:rgb(128,128,128);font-style:italic"> </span><span style="color:rgb(232,191,106)"><dependency><br></span><span style="color:rgb(232,191,106)"> <groupId></span>com.fasterxml.jackson.core<span style="color:rgb(232,191,106)"></groupId><br></span><span style="color:rgb(232,191,106)"> <artifactId></span>jackson-core<span style="color:rgb(232,191,106)"></artifactId><br></span><span style="color:rgb(232,191,106)"> <version></span>${jackson.version}<span style="color:rgb(232,191,106)"></version><br></span><span style="color:rgb(232,191,106)"> <scope></span>provided<span style="color:rgb(232,191,106)"></scope><br></span><span style="color:rgb(232,191,106)"> </dependency><br></span><span style="color:rgb(232,191,106)"> <dependency><br></span><span style="color:rgb(232,191,106)"> <groupId></span>com.fasterxml.jackson.core<span style="color:rgb(232,191,106)"></groupId><br></span><span style="color:rgb(232,191,106)"> <artifactId></span>jackson-annotations<span style="color:rgb(232,191,106)"></artifactId><br></span><span style="color:rgb(232,191,106)"> <version></span>${jackson.version}<span style="color:rgb(232,191,106)"></version><br></span><span style="color:rgb(232,191,106)"> <scope></span>provided<span style="color:rgb(232,191,106)"></scope><br></span><span style="color:rgb(232,191,106)"> </dependency><br></span><span style="color:rgb(232,191,106)"> <dependency><br></span><span style="color:rgb(232,191,106)"> <groupId></span>com.fasterxml.jackson.core<span style="color:rgb(232,191,106)"></groupId><br></span><span style="color:rgb(232,191,106)"> <artifactId></span>jackson-databind<span style="color:rgb(232,191,106)"></artifactId><br></span><span style="color:rgb(232,191,106)"> <version></span>${jackson.version}<span style="color:rgb(232,191,106)"></version><br></span><span style="color:rgb(232,191,106)"> <scope></span>provided<span style="color:rgb(232,191,106)"></scope><br></span><span style="color:rgb(232,191,106)"> </dependency><br></span><span style="color:rgb(232,191,106)"> </span><span style="color:rgb(128,128,128);font-style:italic"><!--Use Jackson for data binding --><br></span><span style="color:rgb(128,128,128);font-style:italic"> </span><span style="color:rgb(232,191,106)"><dependency><br></span><span style="color:rgb(232,191,106)"> <groupId></span>com.fasterxml.jackson.jaxrs<span style="color:rgb(232,191,106)"></groupId><br></span><span style="color:rgb(232,191,106)"> <artifactId></span>jackson-jaxrs-json-provider<span style="color:rgb(232,191,106)"></artifactId><br></span><span style="color:rgb(232,191,106)"> <version></span>${jackson.version}<span style="color:rgb(232,191,106)"></version><br></span><span style="color:rgb(232,191,106)"> <scope></span>provided<span style="color:rgb(232,191,106)"></scope><br></span><span style="color:rgb(232,191,106)"> </dependency><br></span><span style="color:rgb(232,191,106)"> </span><span style="color:rgb(128,128,128);font-style:italic"><!-- Jackson hibernate module to support @Entity automagically --><br></span><span style="color:rgb(128,128,128);font-style:italic"> </span><span style="color:rgb(232,191,106)"><dependency><br></span><span style="color:rgb(232,191,106)"> <groupId></span>com.fasterxml.jackson.datatype<span style="color:rgb(232,191,106)"></groupId><br></span><span style="color:rgb(232,191,106)"> <artifactId></span>jackson-datatype-hibernate4<span style="color:rgb(232,191,106)"></artifactId><br></span><span style="color:rgb(232,191,106)"> <version></span>${jackson.version}<span style="color:rgb(232,191,106)"></version><br></span><span style="color:rgb(232,191,106)"> </dependency><br></span><span style="color:rgb(232,191,106)"> </span><span style="color:rgb(128,128,128);font-style:italic"><!-- Jackson module to support Java 8 JSR-310 --><br></span><span style="color:rgb(128,128,128);font-style:italic"> </span><span style="color:rgb(232,191,106)"><dependency><br></span><span style="color:rgb(232,191,106)"> <groupId></span>com.fasterxml.jackson.datatype<span style="color:rgb(232,191,106)"></groupId><br></span><span style="color:rgb(232,191,106)"> <artifactId></span>jackson-datatype-jsr310<span style="color:rgb(232,191,106)"></artifactId><br></span><span style="color:rgb(232,191,106)"> <version></span>${jackson.version}<span style="color:rgb(232,191,106)"></version><br></span><span style="color:rgb(232,191,106)"> </dependency><br></span><span style="color:rgb(232,191,106)"></dependencies></span></pre></pre></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 3, 2016 at 1:26 AM, Stian Thorgersen <span dir="ltr"><<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Do you have the Keycloak adapter subsystem installed? Is your WAR secured by Keycloak? If so it should have the required dependencies with the exception of the admin client. If no to those questions you need to add a dependency to keycloak-core.</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On 2 March 2016 at 15:10, Jeff Picklyk <span dir="ltr"><<a href="mailto:jpicklyk@gmail.com" target="_blank">jpicklyk@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div style="font-size:12.8px">Hi all,<br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I have an Java EE7 application using KC on wildfly and I'm porting it over to work on KC 1.9.0.Final and Wildfly 10. The issue I'm running into has the following stack trace:<br><br><div>15:36:18,209 INFO [org.hibernate.orm.deprecation] (ServerService Thread Pool -- 78) HHH90000001: Found usage of deprecated setting for specifying Scanner [hibernate.ejb.resource_scanner]; use [hibernate.archive.scanner] instead</div><div>15:36:18,452 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC000001: Failed to start service jboss.deployment.unit."portal.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."portal.war".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment "portal.war"</div><div><span style="white-space:pre-wrap">        </span>at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:154)</div><div><span style="white-space:pre-wrap">        </span>at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)</div><div><span style="white-space:pre-wrap">        </span>at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)</div><div><span style="white-space:pre-wrap">        </span>at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)</div><div><span style="white-space:pre-wrap">        </span>at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)</div><div><span style="white-space:pre-wrap">        </span>at java.lang.Thread.run(Thread.java:745)</div><div>Caused by: java.lang.RuntimeException: WFLYSRV0177: Error getting reflective information for class net.sbs.portal.business.registrar.control.UserAsyncManager with ClassLoader ModuleClassLoader for Module "deployment.portal.war:main" from Service Module Loader</div><div><span style="white-space:pre-wrap">        </span>at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:70)</div><div><span style="white-space:pre-wrap">        </span>at org.jboss.as.ee.metadata.MethodAnnotationAggregator.runtimeAnnotationInformation(MethodAnnotationAggregator.java:57)</div><div><span style="white-space:pre-wrap">        </span>at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.handleAnnotations(InterceptorAnnotationProcessor.java:106)</div><div><span style="white-space:pre-wrap">        </span>at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:91)</div><div><span style="white-space:pre-wrap">        </span>at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:76)</div><div><span style="white-space:pre-wrap">        </span>at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:147)</div><div><span style="white-space:pre-wrap">        </span>... 5 more</div><div>Caused by: java.lang.NoClassDefFoundError: org/keycloak/representations/idm/UserRepresentation</div><div><span style="white-space:pre-wrap">        </span>at java.lang.Class.getDeclaredMethods0(Native Method)</div><div><span style="white-space:pre-wrap">        </span>at java.lang.Class.privateGetDeclaredMethods(Class.java:2693)</div><div><span style="white-space:pre-wrap">        </span>at java.lang.Class.getDeclaredMethods(Class.java:1967)</div><div><span style="white-space:pre-wrap">        </span>at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:80)</div><div><span style="white-space:pre-wrap">        </span>at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:66)</div><div><span style="white-space:pre-wrap">        </span>... 10 more</div><div>Caused by: java.lang.ClassNotFoundException: org.keycloak.representations.idm.UserRepresentation from [Module "deployment.portal.war:main" from Service Module Loader]</div><div><span style="white-space:pre-wrap">        </span>at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:198)</div><div><span style="white-space:pre-wrap">        </span>at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363)</div><div><span style="white-space:pre-wrap">        </span>at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351)</div><div><span style="white-space:pre-wrap">        </span>at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93)</div><div><span style="white-space:pre-wrap">        </span>... 15 more</div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">My UserAsyncManager class is just a SLSB with an @Asynchronous method to take the KC UserRepresentation and save it to my application database for further usage. I am using the Keycloak-admin-client in my application to retrieve the user representation from the KC server.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I've been struggling to find a solution to this problem for a few days and need some help from the community. The relevant POM dependency versions are the following:</div><div style="font-size:12.8px"><pre style="white-space:pre-wrap;color:rgb(169,183,198);font-family:'Courier New';font-size:9pt;background-color:rgb(43,43,43)"><span style="color:rgb(232,191,106)"><jackson.version></span>2.5.4<span style="color:rgb(232,191,106)"></jackson.version><br></span><span style="color:rgb(232,191,106)"><resteasy.version></span>3.0.14.Final<span style="color:rgb(232,191,106)"></resteasy.version><br></span><span style="color:rgb(232,191,106)"><deltaspike.version></span>1.5.0<span style="color:rgb(232,191,106)"></deltaspike.version><br></span><span style="color:rgb(232,191,106)"><keycloak.version></span>1.9.0.Final<span style="color:rgb(232,191,106)"></keycloak.version></span></pre></div><div style="font-size:12.8px">I can include the full POM if needed.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Any thoughts?</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thanks,</div><div style="font-size:12.8px">Jeff</div></div>
<br></div></div>_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
<a 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>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>