<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&#39;m porting it over to work on KC 1.9.0.Final and Wildfly 10.  The issue I&#39;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.&quot;portal.war&quot;.POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit.&quot;portal.war&quot;.POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment &quot;portal.war&quot;</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 &quot;deployment.portal.war:main&quot; 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.&lt;init&gt;(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 &quot;deployment.portal.war:main&quot; 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&#39;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:&#39;Courier New&#39;;font-size:9pt;background-color:rgb(43,43,43)"><span style="color:rgb(232,191,106)">&lt;jackson.version&gt;</span>2.5.4<span style="color:rgb(232,191,106)">&lt;/jackson.version&gt;<br></span><span style="color:rgb(232,191,106)">&lt;resteasy.version&gt;</span>3.0.14.Final<span style="color:rgb(232,191,106)">&lt;/resteasy.version&gt;<br></span><span style="color:rgb(232,191,106)">&lt;deltaspike.version&gt;</span>1.5.0<span style="color:rgb(232,191,106)">&lt;/deltaspike.version&gt;<br></span><span style="color:rgb(232,191,106)">&lt;keycloak.version&gt;</span>1.9.0.Final<span style="color:rgb(232,191,106)">&lt;/keycloak.version&gt;</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>