Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-13988

Missing dependency org.jboss.threads in org.infinispan module

XMLWordPrintable

      This deployment works in WildFly 20.0.1.Final and failed to deploy with WildFly 21.0.0.Final:

      �[0m�[31m16:48:50,329 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool – 40) MSC000001: Failed to start service jboss.deployment.unit."ServerCacheInterceptorTest.war".undertow-deployment: org.jboss.msc.service.StartException in service jboss.deployment.unit."ServerCacheInterceptorTest.war".undertow-deployment: org.infinispan.commons.CacheException: Unable to construct a GlobalComponentRegistry!�[0m�[31m16:48:50,329 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool – 40) MSC000001: Failed to start service jboss.deployment.unit."ServerCacheInterceptorTest.war".undertow-deployment: org.jboss.msc.service.StartException in service jboss.deployment.unit."ServerCacheInterceptorTest.war".undertow-deployment: org.infinispan.commons.CacheException: Unable to construct a GlobalComponentRegistry! at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:81) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35) at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990) at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486) at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377) at java.lang.Thread.run(Thread.java:748) at org.jboss.threads.JBossThread.run(JBossThread.java:513)Caused by: org.infinispan.commons.CacheException: Unable to construct a GlobalComponentRegistry! at org.infinispan.factories.GlobalComponentRegistry.<init>(GlobalComponentRegistry.java:158) at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:276) at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:243) at org.jboss.resteasy.plugins.cache.server.ServerCacheFeature.getDefaultCache(ServerCacheFeature.java:84) at org.jboss.resteasy.plugins.cache.server.ServerCacheFeature.getCache(ServerCacheFeature.java:69) at org.jboss.resteasy.plugins.cache.server.ServerCacheFeature.configure(ServerCacheFeature.java:42) at org.jboss.resteasy.core.providerfactory.ResteasyProviderFactoryImpl.processProviderInstanceContracts(ResteasyProviderFactoryImpl.java:1055) at org.jboss.resteasy.core.providerfactory.ResteasyProviderFactoryImpl.registerProviderInstance(ResteasyProviderFactoryImpl.java:997) at org.jboss.resteasy.core.providerfactory.ResteasyProviderFactoryImpl.registerProviderInstance(ResteasyProviderFactoryImpl.java:983) at org.jboss.resteasy.core.ResteasyDeploymentImpl.registration(ResteasyDeploymentImpl.java:467) at org.jboss.resteasy.core.ResteasyDeploymentImpl.startInternal(ResteasyDeploymentImpl.java:165) at org.jboss.resteasy.core.ResteasyDeploymentImpl.start(ResteasyDeploymentImpl.java:122) at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:144) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(HttpServletDispatcher.java:42) 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:305) at io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:145) at io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:588) at io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:559) at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42) at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43) at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105) at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530) at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530) at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530) at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530) at io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:601) at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:97) at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:78) ... 8 moreCaused by: org.infinispan.commons.CacheConfigurationException: Failed to construct component org.infinispan.executors.notification, path org.infinispan.executors.notification  << org.infinispan.notifications.cachemanagerlistener.CacheManagerNotifier at org.infinispan.factories.impl.BasicComponentRegistryImpl.doInstantiateWrapper(BasicComponentRegistryImpl.java:194) at org.infinispan.factories.impl.BasicComponentRegistryImpl.instantiateWrapper(BasicComponentRegistryImpl.java:181) at org.infinispan.factories.impl.BasicComponentRegistryImpl.getComponent0(BasicComponentRegistryImpl.java:146) at org.infinispan.factories.impl.WireContext.get(WireContext.java:20) at org.infinispan.notifications.impl.CorePackageImpl$1.wire(CorePackageImpl.java:29) at org.infinispan.notifications.impl.CorePackageImpl$1.wire(CorePackageImpl.java:27) at org.infinispan.factories.impl.BasicComponentRegistryImpl.invokeInjection(BasicComponentRegistryImpl.java:339) at org.infinispan.factories.impl.BasicComponentRegistryImpl.invokeInjection(BasicComponentRegistryImpl.java:347) at org.infinispan.factories.impl.BasicComponentRegistryImpl.doWireWrapper(BasicComponentRegistryImpl.java:236) at org.infinispan.factories.impl.BasicComponentRegistryImpl.wireWrapper(BasicComponentRegistryImpl.java:217) at org.infinispan.factories.impl.BasicComponentRegistryImpl.registerComponent(BasicComponentRegistryImpl.java:376) at org.infinispan.factories.GlobalComponentRegistry.<init>(GlobalComponentRegistry.java:127) ... 38 moreCaused by: java.lang.NoClassDefFoundError: org/jboss/threads/management/ManageableThreadPoolExecutorService at org.infinispan.factories.threads.CoreExecutorFactory.executorFactory(CoreExecutorFactory.java:27) at org.infinispan.factories.NamedExecutorsFactory.createThreadPoolFactoryWithDefaults(NamedExecutorsFactory.java:131) at org.infinispan.factories.NamedExecutorsFactory.createExecutorService(NamedExecutorsFactory.java:90) at org.infinispan.factories.NamedExecutorsFactory.construct(NamedExecutorsFactory.java:43) at org.infinispan.factories.impl.BasicComponentRegistryImpl.doInstantiateWrapper(BasicComponentRegistryImpl.java:191) ... 49 moreCaused by: java.lang.ClassNotFoundException: org.jboss.threads.management.ManageableThreadPoolExecutorService from [Module "org.infinispan" version 11.0.4.Final from local module loader @56ac3a89 (finder: local module finder @27c20538 (roots: /home/jimma/code/resteasy-master/Resteasy/testsuite/integration-tests/target/test-server/wildfly-21.0.0.Final/modules,/home/jimma/code/resteasy-master/Resteasy/testsuite/integration-tests/target/test-server/wildfly-21.0.0.Final/modules/system/layers/base))] at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:255) at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410) at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116) ... 54 more
      �[0m�[31m16:48:50,335 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "ServerCacheInterceptorTest.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"ServerCacheInterceptorTest.war\".undertow-deployment" => "org.infinispan.commons.CacheException: Unable to construct a GlobalComponentRegistry!    Caused by: org.infinispan.commons.CacheException: Unable to construct a GlobalComponentRegistry!    Caused by: org.infinispan.commons.CacheConfigurationException: Failed to construct component org.infinispan.executors.notification, path org.infinispan.executors.notification  << org.infinispan.notifications.cachemanagerlistener.CacheManagerNotifier    Caused by: java.lang.NoClassDefFoundError: org/jboss/threads/management/ManageableThreadPoolExecutorService    Caused by: java.lang.ClassNotFoundException: org.jboss.threads.management.ManageableThreadPoolExecutorService from [Module \"org.infinispan\" version 11.0.4.Final from local module loader @56ac3a89 (finder: local module finder @27c20538 (roots: /home/jimma/code/resteasy-master/Resteasy/testsuite/integration-tests/target/test-server/wildfly-21.0.0.Final/modules,/home/jimma/code/resteasy-master/Resteasy/testsuite/integration-tests/target/test-server/wildfly-21.0.0.Final/modules/system/layers/base))]"}}�[0m�[31m16:48:50,343 ERROR [org.jboss.as.server] (management-handler-thread - 1) WFLYSRV0021: Deploy of deployment "ServerCacheInterceptorTest.war" was rolled back with the following failure message: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"ServerCacheInterceptorTest.war\".undertow-deployment" => "org.infinispan.commons.CacheException: Unable to construct a GlobalComponentRegistry!    Caused by: org.infinispan.commons.CacheException: Unable to construct a GlobalComponentRegistry!    Caused by: org.infinispan.commons.CacheConfigurationException: Failed to construct component org.infinispan.executors.notification, path org.infinispan.executors.notification  << org.infinispan.notifications.cachemanagerlistener.CacheManagerNotifier    Caused by: java.lang.NoClassDefFoundError: org/jboss/threads/management/ManageableThreadPoolExecutorService    Caused by: java.lang.ClassNotFoundException: org.jboss.threads.management.ManageableThreadPoolExecutorService from [Module \"org.infinispan\" version 11.0.4.Final from local module loader @56ac3a89 (finder: local module finder @27c20538 (roots: /home/jimma/code/resteasy-master/Resteasy/testsuite/integration-tests/target/test-server/wildfly-21.0.0.Final/modules,/home/jimma/code/resteasy-master/Resteasy/testsuite/integration-tests/target/test-server/wildfly-21.0.0.Final/modules/system/layers/base))]"}}�[0m�[0m16:48:50,377 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0028: Stopped deployment ServerCacheInterceptorTest.war (runtime-name: ServerCacheInterceptorTest.war) in 39ms

       

      From  https://github.com/infinispan/infinispan/blob/11.0.4.Final/core/src/main/java/org/infinispan/factories/threads/EnhancedQueueExecutorFactory.java#L17

      jboss threads is a required dependency for infinispan.   

       

              rhn-engineering-ema Jim Ma
              rhn-engineering-ema Jim Ma
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: