Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-1091

On EAP: java.lang.ClassNotFoundException: com.google.inject.servlet.ServletModuleTargetVisitor

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 6.4.0.CR2
    • 6.4.0.CR1
    • integration
    • None

      Include com.google.inject.extensions:guice-servlet on the EAP distro:

      15:40:57,147 INFO  [org.switchyard.common.camel.SwitchYardCamelContextImpl] (MSC service thread 1-8) StreamCaching is not in use. If using streams then its recommended to enable stream caching. See more details at http://camel.apache.org/stream-caching.html
      15:40:57,147 INFO  [org.switchyard.common.camel.SwitchYardCamelContextImpl] (MSC service thread 1-8) Total 0 routes, of which 0 is started.
      15:40:57,148 INFO  [org.switchyard.common.camel.SwitchYardCamelContextImpl] (MSC service thread 1-8) Apache Camel 2.0.1.redhat-621084 (CamelContext: camel-11) started in 0.191 seconds
      15:40:57,222 WARN  [org.kie.scanner.embedder.MavenSettings] (MSC service thread 1-8) Environment variable M2_HOME is not set
      15:40:57,514 WARN  [org.jboss.modules] (MSC service thread 1-8) Failed to define class org.eclipse.sisu.inject.DefaultRankingFunction$ServletVisitor in Module "org.eclipse.sisu:main" from local module loader @1fd60031 (finder: local module finder @1aa6a14b (roots: /home/virchete/dev/workspace/switchyard/fuse-bxms-integ/release/eap/itests/target/jboss-eap-6.4/modules,/home/virchete/dev/workspace/switchyard/fuse-bxms-integ/release/eap/itests/target/jboss-eap-6.4/modules/system/layers/fuse,/home/virchete/dev/workspace/switchyard/fuse-bxms-integ/release/eap/itests/target/jboss-eap-6.4/modules/system/layers/bpms,/home/virchete/dev/workspace/switchyard/fuse-bxms-integ/release/eap/itests/target/jboss-eap-6.4/modules/system/layers/soa,/home/virchete/dev/workspace/switchyard/fuse-bxms-integ/release/eap/itests/target/jboss-eap-6.4/modules/system/layers/fuse-integration,/home/virchete/dev/workspace/switchyard/fuse-bxms-integ/release/eap/itests/target/jboss-eap-6.4/modules/system/layers/base)): java.lang.LinkageError: Failed to link org/eclipse/sisu/inject/DefaultRankingFunction$ServletVisitor (Module "org.eclipse.sisu:main" from local module loader @1fd60031 (finder: local module finder @1aa6a14b (roots: /home/virchete/dev/workspace/switchyard/fuse-bxms-integ/release/eap/itests/target/jboss-eap-6.4/modules,/home/virchete/dev/workspace/switchyard/fuse-bxms-integ/release/eap/itests/target/jboss-eap-6.4/modules/system/layers/fuse,/home/virchete/dev/workspace/switchyard/fuse-bxms-integ/release/eap/itests/target/jboss-eap-6.4/modules/system/layers/bpms,/home/virchete/dev/workspace/switchyard/fuse-bxms-integ/release/eap/itests/target/jboss-eap-6.4/modules/system/layers/soa,/home/virchete/dev/workspace/switchyard/fuse-bxms-integ/release/eap/itests/target/jboss-eap-6.4/modules/system/layers/fuse-integration,/home/virchete/dev/workspace/switchyard/fuse-bxms-integ/release/eap/itests/target/jboss-eap-6.4/modules/system/layers/base)))
      	at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:487) [jboss-modules.jar:1.3.7.Final-redhat-1]
      	at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:277) [jboss-modules.jar:1.3.7.Final-redhat-1]
      	at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:92) [jboss-modules.jar:1.3.7.Final-redhat-1]
      	at org.jboss.modules.Module.loadModuleClass(Module.java:568) [jboss-modules.jar:1.3.7.Final-redhat-1]
      	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205) [jboss-modules.jar:1.3.7.Final-redhat-1]
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.7.Final-redhat-1]
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.7.Final-redhat-1]
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.7.Final-redhat-1]
      	at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.7.Final-redhat-1]
      	at org.eclipse.sisu.inject.DefaultRankingFunction.<clinit>(DefaultRankingFunction.java:40)
      	at org.codehaus.plexus.DefaultPlexusContainer$DefaultsModule.configure(DefaultPlexusContainer.java:860)
      	at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:253)
      	at com.google.inject.spi.Elements.getElements(Elements.java:108)
      	at com.google.inject.spi.Elements.getElements(Elements.java:99)
      	at org.eclipse.sisu.wire.WireModule.configure(WireModule.java:75)
      	at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:253)
      	at com.google.inject.spi.Elements.getElements(Elements.java:108)
      	at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:135)
      	at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:104)
      	at com.google.inject.Guice.createInjector(Guice.java:96)
      	at com.google.inject.Guice.createInjector(Guice.java:73)
      	at com.google.inject.Guice.createInjector(Guice.java:62)
      	at org.codehaus.plexus.DefaultPlexusContainer.addPlexusInjector(DefaultPlexusContainer.java:481)
      	at org.codehaus.plexus.DefaultPlexusContainer.<init>(DefaultPlexusContainer.java:206)
      	at org.codehaus.plexus.DefaultPlexusContainer.<init>(DefaultPlexusContainer.java:168)
      	at org.kie.scanner.embedder.MavenEmbedderUtils.buildPlexusContainer(MavenEmbedderUtils.java:166) [kie-ci-6.4.0-SNAPSHOT.jar:6.4.0-SNAPSHOT]
      	at org.kie.scanner.embedder.MavenEmbedderUtils.buildPlexusContainer(MavenEmbedderUtils.java:140) [kie-ci-6.4.0-SNAPSHOT.jar:6.4.0-SNAPSHOT]
      	at org.kie.scanner.embedder.PlexusComponentProvider.<init>(PlexusComponentProvider.java:37) [kie-ci-6.4.0-SNAPSHOT.jar:6.4.0-SNAPSHOT]
      	at org.kie.scanner.embedder.MavenEmbedderUtils.buildComponentProvider(MavenEmbedderUtils.java:56) [kie-ci-6.4.0-SNAPSHOT.jar:6.4.0-SNAPSHOT]
      	at org.kie.scanner.embedder.MavenEmbedder.<init>(MavenEmbedder.java:81) [kie-ci-6.4.0-SNAPSHOT.jar:6.4.0-SNAPSHOT]
      	at org.kie.scanner.embedder.MavenEmbedder.<init>(MavenEmbedder.java:75) [kie-ci-6.4.0-SNAPSHOT.jar:6.4.0-SNAPSHOT]
      	at org.kie.scanner.embedder.MavenProjectLoader.parseMavenPom(MavenProjectLoader.java:42) [kie-ci-6.4.0-SNAPSHOT.jar:6.4.0-SNAPSHOT]
      	at org.kie.scanner.embedder.MavenProjectLoader.loadMavenProject(MavenProjectLoader.java:96) [kie-ci-6.4.0-SNAPSHOT.jar:6.4.0-SNAPSHOT]
      	at org.kie.scanner.Aether.<init>(Aether.java:62) [kie-ci-6.4.0-SNAPSHOT.jar:6.4.0-SNAPSHOT]
      	at org.kie.scanner.Aether.getAether(Aether.java:74) [kie-ci-6.4.0-SNAPSHOT.jar:6.4.0-SNAPSHOT]
      	at org.kie.scanner.MavenRepository.getMavenRepository(MavenRepository.java:80) [kie-ci-6.4.0-SNAPSHOT.jar:6.4.0-SNAPSHOT]
      	at org.kie.scanner.ArtifactResolver.<init>(ArtifactResolver.java:53) [kie-ci-6.4.0-SNAPSHOT.jar:6.4.0-SNAPSHOT]
      	at org.kie.scanner.KieRepositoryScannerImpl.getArtifactResolver(KieRepositoryScannerImpl.java:102) [kie-ci-6.4.0-SNAPSHOT.jar:6.4.0-SNAPSHOT]
      	at org.kie.scanner.KieRepositoryScannerImpl.loadArtifact(KieRepositoryScannerImpl.java:119) [kie-ci-6.4.0-SNAPSHOT.jar:6.4.0-SNAPSHOT]
      	at org.drools.compiler.kie.builder.impl.KieRepositoryImpl.loadKieModuleFromMavenRepo(KieRepositoryImpl.java:130) [drools-compiler-6.4.0-SNAPSHOT.jar:6.4.0-SNAPSHOT]
      	at org.drools.compiler.kie.builder.impl.KieRepositoryImpl.getKieModule(KieRepositoryImpl.java:116) [drools-compiler-6.4.0-SNAPSHOT.jar:6.4.0-SNAPSHOT]
      	at org.drools.compiler.kie.builder.impl.KieRepositoryImpl.getKieModule(KieRepositoryImpl.java:93) [drools-compiler-6.4.0-SNAPSHOT.jar:6.4.0-SNAPSHOT]
      	at org.drools.compiler.kie.builder.impl.KieServicesImpl.newKieContainer(KieServicesImpl.java:115) [drools-compiler-6.4.0-SNAPSHOT.jar:6.4.0-SNAPSHOT]
      	at org.drools.compiler.kie.builder.impl.KieServicesImpl.newKieContainer(KieServicesImpl.java:111) [drools-compiler-6.4.0-SNAPSHOT.jar:6.4.0-SNAPSHOT]
      	at org.switchyard.component.common.knowledge.config.builder.patch.PatchedRuntimeEnvironmentBuilder.getDefault(PatchedRuntimeEnvironmentBuilder.java:236) [switchyard-component-common-knowledge-1.5.0-SNAPSHOT.jar:1.5.0-SNAPSHOT]
      	at org.switchyard.component.common.knowledge.config.builder.patch.PatchedRuntimeEnvironmentBuilder.newDefaultBuilder(PatchedRuntimeEnvironmentBuilder.java:555) [switchyard-component-common-knowledge-1.5.0-SNAPSHOT.jar:1.5.0-SNAPSHOT]
      	at org.switchyard.component.common.knowledge.config.builder.RuntimeEnvironmentBuilder.build(RuntimeEnvironmentBuilder.java:125) [switchyard-component-common-knowledge-1.5.0-SNAPSHOT.jar:1.5.0-SNAPSHOT]
      	at org.switchyard.component.common.knowledge.config.builder.RuntimeManagerBuilder.build(RuntimeManagerBuilder.java:55) [switchyard-component-common-knowledge-1.5.0-SNAPSHOT.jar:1.5.0-SNAPSHOT]
      	at org.switchyard.component.common.knowledge.runtime.KnowledgeRuntimeManagerFactory.newRuntimeManager(KnowledgeRuntimeManagerFactory.java:81) [switchyard-component-common-knowledge-1.5.0-SNAPSHOT.jar:1.5.0-SNAPSHOT]
      	at org.switchyard.component.common.knowledge.exchange.KnowledgeExchangeHandler.newPerRequestRuntimeManager(KnowledgeExchangeHandler.java:121) [switchyard-component-common-knowledge-1.5.0-SNAPSHOT.jar:1.5.0-SNAPSHOT]
      	at org.switchyard.component.rules.exchange.RulesExchangeHandler.doStart(RulesExchangeHandler.java:95) [switchyard-component-rules-1.5.0-SNAPSHOT.jar:1.5.0-SNAPSHOT]
      	at org.switchyard.deploy.BaseServiceHandler.start(BaseServiceHandler.java:60) [switchyard-deploy-2.0.1.redhat-621084.jar:2.0.1.redhat-621084]
      	at org.switchyard.deploy.internal.Deployment.deployImplementations(Deployment.java:582) [switchyard-deploy-2.0.1.redhat-621084.jar:2.0.1.redhat-621084]
      	at org.switchyard.deploy.internal.Deployment.start(Deployment.java:144) [switchyard-deploy-2.0.1.redhat-621084.jar:2.0.1.redhat-621084]
      	at org.switchyard.as7.extension.deployment.SwitchYardDeployment.start(SwitchYardDeployment.java:127) [switchyard-deploy-jboss-as7-2.0.1.redhat-621084.jar:2.0.1.redhat-621084]
      	at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:77) [switchyard-deploy-jboss-as7-2.0.1.redhat-621084.jar:2.0.1.redhat-621084]
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1980)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1913)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_55]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_55]
      	at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_55]
      Caused by: java.lang.NoClassDefFoundError: com/google/inject/servlet/ServletModuleTargetVisitor
      	at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_55]
      	at java.lang.ClassLoader.defineClass(ClassLoader.java:800) [rt.jar:1.7.0_55]
      	at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:361) [jboss-modules.jar:1.3.7.Final-redhat-1]
      	at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:482) [jboss-modules.jar:1.3.7.Final-redhat-1]
      	... 60 more
      Caused by: java.lang.ClassNotFoundException: com.google.inject.servlet.ServletModuleTargetVisitor from [Module "org.eclipse.sisu:main" from local module loader @1fd60031 (finder: local module finder @1aa6a14b (roots: /home/virchete/dev/workspace/switchyard/fuse-bxms-integ/release/eap/itests/target/jboss-eap-6.4/modules,/home/virchete/dev/workspace/switchyard/fuse-bxms-integ/release/eap/itests/target/jboss-eap-6.4/modules/system/layers/fuse,/home/virchete/dev/workspace/switchyard/fuse-bxms-integ/release/eap/itests/target/jboss-eap-6.4/modules/system/layers/bpms,/home/virchete/dev/workspace/switchyard/fuse-bxms-integ/release/eap/itests/target/jboss-eap-6.4/modules/system/layers/soa,/home/virchete/dev/workspace/switchyard/fuse-bxms-integ/release/eap/itests/target/jboss-eap-6.4/modules/system/layers/fuse-integration,/home/virchete/dev/workspace/switchyard/fuse-bxms-integ/release/eap/itests/target/jboss-eap-6.4/modules/system/layers/base))]
      	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.7.Final-redhat-1]
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.7.Final-redhat-1]
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.7.Final-redhat-1]
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.7.Final-redhat-1]
      	at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.7.Final-redhat-1]
      	... 64 more
      
      
      

              virchete_jira David virgil naranjo (Inactive)
              virchete_jira David virgil naranjo (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: