<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">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><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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>_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org">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>