-
Bug
-
Resolution: Obsolete
-
Major
-
1.2.6.Final, 1.2.7.Final
-
None
The keycloak installation packaged with Apiman does not boot correctly on wildfly 9 in a docker container.
I see the following error in the log:
20:19:14,041 ERROR [stderr] (Thread-92) Exception in thread "Thread-92" java.lang.RuntimeException: javax.enterprise.inject.CreationException 20:19:14,042 ERROR [stderr] (Thread-92) at io.apiman.manager.api.war.WarApiManagerBootstrapperServlet.doImport(WarApiManagerBootstrapperServlet.java:105) 20:19:14,043 ERROR [stderr] (Thread-92) at io.apiman.manager.api.war.WarApiManagerBootstrapperServlet.access$200(WarApiManagerBootstrapperServlet.java:43) 20:19:14,045 ERROR [stderr] (Thread-92) at io.apiman.manager.api.war.WarApiManagerBootstrapperServlet$1.run(WarApiManagerBootstrapperServlet.java:71) 20:19:14,046 ERROR [stderr] (Thread-92) at java.lang.Thread.run(Thread.java:745) 20:19:14,047 ERROR [stderr] (Thread-92) Caused by: javax.enterprise.inject.CreationException 20:19:14,051 ERROR [stderr] (Thread-92) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 20:19:14,052 ERROR [stderr] (Thread-92) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) 20:19:14,055 ERROR [stderr] (Thread-92) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) 20:19:14,056 ERROR [stderr] (Thread-92) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) 20:19:14,057 ERROR [stderr] (Thread-92) at java.lang.Class.newInstance(Class.java:442) 20:19:14,058 ERROR [stderr] (Thread-92) at org.jboss.weld.security.NewInstanceAction.run(NewInstanceAction.java:33) 20:19:14,059 ERROR [stderr] (Thread-92) at java.security.AccessController.doPrivileged(Native Method) 20:19:14,059 ERROR [stderr] (Thread-92) at org.jboss.weld.injection.Exceptions.rethrowException(Exceptions.java:40) 20:19:14,059 ERROR [stderr] (Thread-92) at org.jboss.weld.injection.Exceptions.rethrowException(Exceptions.java:78) 20:19:14,059 ERROR [stderr] (Thread-92) at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:96) 20:19:14,059 ERROR [stderr] (Thread-92) at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:78) 20:19:14,059 ERROR [stderr] (Thread-92) at org.jboss.weld.injection.producer.ProducerMethodProducer.produce(ProducerMethodProducer.java:95) 20:19:14,062 ERROR [stderr] (Thread-92) at org.jboss.weld.injection.producer.AbstractMemberProducer.produce(AbstractMemberProducer.java:167) 20:19:14,062 ERROR [stderr] (Thread-92) at org.jboss.weld.bean.AbstractProducerBean.create(AbstractProducerBean.java:183) 20:19:14,062 ERROR [stderr] (Thread-92) at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:96) 20:19:14,063 ERROR [stderr] (Thread-92) at org.jboss.weld.bean.ContextualInstanceStrategy$DefaultContextualInstanceStrategy.get(ContextualInstanceStrategy.java:101) 20:19:14,065 ERROR [stderr] (Thread-92) at org.jboss.weld.bean.ContextualInstanceStrategy$ApplicationScopedContextualInstanceStrategy.get(ContextualInstanceStrategy.java:141) 20:19:14,066 ERROR [stderr] (Thread-92) at org.jboss.weld.bean.ContextualInstance.get(ContextualInstance.java:50) 20:19:14,072 ERROR [stderr] (Thread-92) at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:99) 20:19:14,083 ERROR [stderr] (Thread-92) at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:99) 20:19:14,085 ERROR [stderr] (Thread-92) at org.jboss.weld.proxies.IStorage$816713466$Proxy$_$$_WeldClientProxy.beginTx(Unknown Source) 20:19:14,087 ERROR [stderr] (Thread-92) at io.apiman.manager.api.exportimport.manager.StorageImportDispatcher.start(StorageImportDispatcher.java:129) 20:19:14,087 ERROR [stderr] (Thread-92) at io.apiman.manager.api.war.WarApiManagerBootstrapperServlet.doImport(WarApiManagerBootstrapperServlet.java:101) 20:19:14,088 ERROR [stderr] (Thread-92) ... 3 more 20:19:14,091 ERROR [stderr] (Thread-92) Caused by: java.lang.NoClassDefFoundError: org/hibernate/dialect/Oracle12cDialect 20:19:14,092 ERROR [stderr] (Thread-92) at io.apiman.manager.api.jpa.JpaStorageInitializer.<clinit>(JpaStorageInitializer.java:67) 20:19:14,093 ERROR [stderr] (Thread-92) at io.apiman.manager.api.war.WarCdiFactory.initJpaStorage(WarCdiFactory.java:305) 20:19:14,094 ERROR [stderr] (Thread-92) at io.apiman.manager.api.war.WarCdiFactory.provideStorage(WarCdiFactory.java:127) 20:19:14,095 ERROR [stderr] (Thread-92) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 20:19:14,096 ERROR [stderr] (Thread-92) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 20:19:14,097 ERROR [stderr] (Thread-92) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 20:19:14,102 ERROR [stderr] (Thread-92) at java.lang.reflect.Method.invoke(Method.java:498) 20:19:14,109 ERROR [stderr] (Thread-92) at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:88) 20:19:14,112 ERROR [stderr] (Thread-92) ... 16 more 20:19:14,113 ERROR [stderr] (Thread-92) Caused by: java.lang.ClassNotFoundException: org.hibernate.dialect.Oracle12cDialect from [Module "deployment.apiman.war:main" from Service Module Loader] 20:19:14,115 ERROR [stderr] (Thread-92) at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205) 20:19:14,116 ERROR [stderr] (Thread-92) at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:455) 20:19:14,116 ERROR [stderr] (Thread-92) at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:404) 20:19:14,119 ERROR [stderr] (Thread-92) at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:385) 20:19:14,124 ERROR [stderr] (Thread-92) at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:130) 20:19:14,125 ERROR [stderr] (Thread-92) ... 24 more 20:19:17,009 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 69) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./auth: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./auth: java.lang.RuntimeException: Failed to construct public org.keycloak.services.resources.KeycloakApplication(javax.servlet.ServletContext,org.jboss.resteasy.core.Dispatcher) at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:85) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) 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) at org.jboss.threads.JBossThread.run(JBossThread.java:320) Caused by: java.lang.RuntimeException: Failed to construct public org.keycloak.services.resources.KeycloakApplication(javax.servlet.ServletContext,org.jboss.resteasy.core.Dispatcher) at org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:160) at org.jboss.resteasy.spi.ResteasyProviderFactory.createProviderInstance(ResteasyProviderFactory.java:2211) at org.jboss.resteasy.spi.ResteasyDeployment.createApplication(ResteasyDeployment.java:295) at org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:236) at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:112) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(HttpServletDispatcher.java:36) at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117) at org.wildfly.extension.undertow.security.RunAsLifecycleInterceptor.init(RunAsLifecycleInterceptor.java:78) at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:103) at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:230) at io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:131) at io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:511) at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:101) at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82) ... 6 more Caused by: java.lang.NoSuchMethodError: org.infinispan.Cache.entrySet()Lorg/infinispan/CacheSet; at org.keycloak.models.cache.infinispan.CacheManager.getEntryIterator(CacheManager.java:153) at org.keycloak.models.cache.infinispan.CacheManager.addInvalidations(CacheManager.java:145) at org.keycloak.models.cache.infinispan.RealmCacheManager.realmInvalidation(RealmCacheManager.java:56) at org.keycloak.models.cache.infinispan.RealmCacheSession.registerRealmInvalidation(RealmCacheSession.java:168) at org.keycloak.models.cache.infinispan.RealmAdapter.getDelegateForUpdate(RealmAdapter.java:74) at org.keycloak.models.cache.infinispan.RealmAdapter.setBrowserSecurityHeaders(RealmAdapter.java:676) at org.keycloak.migration.migrators.MigrateTo1_9_2.migrate(MigrateTo1_9_2.java:39) at org.keycloak.migration.MigrationModelManager.migrate(MigrationModelManager.java:100) at org.keycloak.services.resources.KeycloakApplication.migrateModel(KeycloakApplication.java:165) at org.keycloak.services.resources.KeycloakApplication.<init>(KeycloakApplication.java:101) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:148) ... 19 more 20:19:17,023 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "keycloak-server.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.undertow.deployment.default-server.default-host./auth" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./auth: java.lang.RuntimeException: Failed to construct public org.keycloak.services.resources.KeycloakApplication(javax.servlet.ServletContext,org.jboss.resteasy.core.Dispatcher) Caused by: java.lang.RuntimeException: Failed to construct public org.keycloak.services.resources.KeycloakApplication(javax.servlet.ServletContext,org.jboss.resteasy.core.Dispatcher) Caused by: java.lang.NoSuchMethodError: org.infinispan.Cache.entrySet()Lorg/infinispan/CacheSet;"}}