Exception 'java.lang.NoClassDefFoundError: Failed to link org/eclipse/sisu/inject/Implementations$ServletFinder' happens when deploying REST application

Solution In Progress - Updated -

Issue

When deploying web application with embedded jBPM engine, it fails with the following exception.

17:46:11,263 WARN  [org.jboss.modules] (ServerService Thread Pool -- 145) Failed to define class org.eclipse.sisu.inject.Implementations$ServletFinder in Module "deployment.XXXXX.war" from Service Module Loader: java.lang.NoClassDefFoundError: Failed to link org/eclipse/sisu/inject/Implementations$ServletFinder (Module "deployment.XXXXX.war" from Service Module Loader): com/google/inject/servlet/ServletModuleTargetVisitor
        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.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:446)
        at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:274)
        at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:77)
        at org.jboss.modules.Module.loadModuleClass(Module.java:713)
        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
        at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:412)
        at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:400)
        at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
        at org.eclipse.sisu.inject.Implementations.<clinit>(Implementations.java:44)
        at org.eclipse.sisu.inject.Sources.getAnnotation(Sources.java:123)
        at org.eclipse.sisu.inject.InjectorBindings.getWildcardBindings(InjectorBindings.java:203)
        at org.eclipse.sisu.inject.InjectorBindings.publishWildcardMatches(InjectorBindings.java:181)
        at org.eclipse.sisu.inject.InjectorBindings.subscribe(InjectorBindings.java:86)
        at org.eclipse.sisu.inject.RankedBindings$Itr.hasNext(RankedBindings.java:154)
        at org.eclipse.sisu.inject.LocatedBeans$Itr.hasNext(LocatedBeans.java:102)
        at org.eclipse.sisu.inject.LocatedBeans$Itr.next(LocatedBeans.java:131)
        at org.eclipse.sisu.inject.LocatedBeans$Itr.next(LocatedBeans.java:1)
        at org.eclipse.sisu.plexus.DefaultPlexusBeans$Itr.next(DefaultPlexusBeans.java:76)
        at org.eclipse.sisu.plexus.DefaultPlexusBeans$Itr.next(DefaultPlexusBeans.java:1)
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:263)
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:255)
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:249)
        at org.appformer.maven.integration.embedder.PlexusComponentProvider.lookup(PlexusComponentProvider.java:42)
        at org.appformer.maven.integration.embedder.MavenEmbedder.buildMavenExecutionRequest(MavenEmbedder.java:134)
        at org.appformer.maven.integration.embedder.MavenEmbedder.<init>(MavenEmbedder.java:96)
        at org.appformer.maven.integration.embedder.MavenEmbedder.<init>(MavenEmbedder.java:87)
        at org.appformer.maven.integration.embedder.MavenEmbedder.<init>(MavenEmbedder.java:81)
        at org.appformer.maven.integration.embedder.MavenProjectLoader.parseMavenPom(MavenProjectLoader.java:56)
        at org.appformer.maven.integration.embedder.MavenProjectLoader.loadMavenProject(MavenProjectLoader.java:121)
        at org.appformer.maven.integration.Aether.getAether(Aether.java:75)
        at org.appformer.maven.integration.MavenRepository.getMavenRepository(MavenRepository.java:95)
        at org.appformer.maven.integration.ArtifactResolver.<init>(ArtifactResolver.java:52)
        at org.kie.scanner.KieRepositoryScannerImpl.getArtifactResolver(KieRepositoryScannerImpl.java:128)
        at org.kie.scanner.KieRepositoryScannerImpl.loadArtifact(KieRepositoryScannerImpl.java:147)
        at org.drools.compiler.kie.builder.impl.KieRepositoryImpl.loadKieModuleFromMavenRepo(KieRepositoryImpl.java:192)
        at org.drools.compiler.kie.builder.impl.KieRepositoryImpl.getKieModule(KieRepositoryImpl.java:138)
        at org.drools.compiler.kie.builder.impl.KieRepositoryImpl.getKieModule(KieRepositoryImpl.java:115)
        at org.drools.compiler.kie.builder.impl.KieServicesImpl.newKieContainer(KieServicesImpl.java:184)
        at org.drools.compiler.kie.builder.impl.KieServicesImpl.newKieContainer(KieServicesImpl.java:176)
        at org.kie.server.services.impl.KieServerImpl.createContainer(KieServerImpl.java:237)
        at org.kie.server.services.impl.ContainerManager.installContainersSync(ContainerManager.java:44)
        at org.kie.server.services.impl.ContainerManager.installContainers(ContainerManager.java:33)
        at org.kie.server.services.impl.ControllerBasedStartupStrategy.startup(ControllerBasedStartupStrategy.java:87)
        at org.kie.server.services.impl.KieServerImpl.init(KieServerImpl.java:152)
        at org.kie.server.services.impl.KieServerLocator.<clinit>(KieServerLocator.java:23)
        at org.kie.server.services.Bootstrap.contextInitialized(Bootstrap.java:51)
        at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:187)
        at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:205)
        at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:174)
        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:1508)
        at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)
        at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)
        at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)
        at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)
        at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:239)
        at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:99)
        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 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
        at org.jboss.threads.JBossThread.run(JBossThread.java:320)

Environment

  • Red Hat Process Automation Manager
    • 7.0.0
  • Red Hat JBoss EAP
    • 7.1.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In