[keycloak-user] Migration issues from KC 1.5 to 1.9

Jeff Picklyk jpicklyk at gmail.com
Wed Mar 2 09:10:15 EST 2016


Hi all,

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:

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
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"
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:154)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
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
at
org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:70)
at
org.jboss.as.ee.metadata.MethodAnnotationAggregator.runtimeAnnotationInformation(MethodAnnotationAggregator.java:57)
at
org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.handleAnnotations(InterceptorAnnotationProcessor.java:106)
at
org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:91)
at
org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:76)
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:147)
... 5 more
Caused by: java.lang.NoClassDefFoundError:
org/keycloak/representations/idm/UserRepresentation
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2693)
at java.lang.Class.getDeclaredMethods(Class.java:1967)
at
org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:80)
at
org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:66)
... 10 more
Caused by: java.lang.ClassNotFoundException:
org.keycloak.representations.idm.UserRepresentation from [Module
"deployment.portal.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:198)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351)
at
org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93)
... 15 more



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.

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:

<jackson.version>2.5.4</jackson.version>
<resteasy.version>3.0.14.Final</resteasy.version>
<deltaspike.version>1.5.0</deltaspike.version>
<keycloak.version>1.9.0.Final</keycloak.version>

I can include the full POM if needed.

Any thoughts?

Thanks,
Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20160302/7e36585d/attachment-0001.html 


More information about the keycloak-user mailing list