3 Replies Latest reply on Feb 10, 2016 11:18 AM by Kiran Srimat Kandala

    DeploymentService error on Wildfly 9 (org.jbpm.services.api.DeploymentService)

    Michael Awizen Novice

      Hi,

      After a migration of my working application from Wildfly 8 to Wildfly 9 the DeploymentService does not work any more.

       

      This is how I call the DeploymentService in a Startup Bean:

       

      @Singleton
      @Startup
      public class StartupBean {
      
          public static final String PROCESSES_DEPLOYMENT_ID = "com.xyz:abc-processes:1.0";
      
          @Inject
          @Kjar
          DeploymentService deploymentService;
      
          @PostConstruct
          public void init() {
              String[] gav = PROCESSES_DEPLOYMENT_ID.split(":");
              DeploymentUnit deploymentUnit = new KModuleDeploymentUnit(gav[0], gav[1], gav[2]);
              deploymentService.deploy(deploymentUnit);
      
          }
      
      }
      
      
      

       

      This is the exception breaking the deployment:

       

      16:06:08,900 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 97) MSC000001: Failed to start service jboss.deployment.subunit."gangehi-ear.ear"."gangehi-ejb.jar".component.StartupBean.START: org.jboss.msc.service.StartException in service jboss.deployment.subunit."gangehi-ear.ear"."gangehi-ejb.jar".component.StartupBean.START: java.lang.IllegalStateException: WFLYEE0042: Failed to construct component instance
          at org.jboss.as.ee.component.ComponentStartService$1.run(ComponentStartService.java:57)
          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.IllegalStateException: WFLYEE0042: Failed to construct component instance
          at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:163)
          at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:134)
          at org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:88)
          at org.jboss.as.ejb3.component.singleton.SingletonComponent.getComponentInstance(SingletonComponent.java:122)
          at org.jboss.as.ejb3.component.singleton.SingletonComponent.start(SingletonComponent.java:136)
          at org.jboss.as.ee.component.ComponentStartService$1.run(ComponentStartService.java:54)
          ... 6 more
      Caused by: javax.ejb.EJBException: java.lang.RuntimeException: java.lang.AbstractMethodError: org.apache.maven.repository.internal.DefaultModelResolver.resetRepositories()V
          at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:187)
          at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:277)
          at org.jboss.as.ejb3.tx.CMTTxInterceptor.requiresNew(CMTTxInterceptor.java:349)
          at org.jboss.as.ejb3.tx.LifecycleCMTTxInterceptor.processInvocation(LifecycleCMTTxInterceptor.java:66)
          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
          at org.jboss.as.weld.injection.WeldInjectionContextInterceptor.processInvocation(WeldInjectionContextInterceptor.java:43)
          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
          at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
          at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)
          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
          at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)
          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
          at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)
          at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)
          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
          at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
          at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:161)
          ... 11 more
      Caused by: java.lang.RuntimeException: java.lang.AbstractMethodError: org.apache.maven.repository.internal.DefaultModelResolver.resetRepositories()V
          at org.jbpm.kie.services.impl.KModuleDeploymentService.deploy(KModuleDeploymentService.java:168)
          at org.jbpm.services.cdi.impl.DeploymentServiceCDIImpl$Proxy$_$$_WeldClientProxy.deploy(Unknown Source)
          at com.awizen.gangehi.util.StartupBean.init(StartupBean.java:27)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:497)
          at org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptor.java:96)
          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
          at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doLifecycleInterception(Jsr299BindingsInterceptor.java:114)
          at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:103)
          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
          at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)
          at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:73)
          at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:83)
          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
          at org.jboss.as.weld.injection.WeldInjectionInterceptor.processInvocation(WeldInjectionInterceptor.java:53)
          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
          at org.jboss.as.ee.component.AroundConstructInterceptorFactory$1.processInvocation(AroundConstructInterceptorFactory.java:28)
          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
          at org.jboss.as.weld.injection.WeldInterceptorInjectionInterceptor.processInvocation(WeldInterceptorInjectionInterceptor.java:56)
          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
          at org.jboss.as.weld.ejb.Jsr299BindingsCreateInterceptor.processInvocation(Jsr299BindingsCreateInterceptor.java:100)
          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
          at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
          at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:275)
          ... 27 more
      Caused by: java.lang.AbstractMethodError: org.apache.maven.repository.internal.DefaultModelResolver.resetRepositories()V
          at org.apache.maven.model.building.DefaultModelBuilder.configureResolver(DefaultModelBuilder.java:596)
          at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:370)
          at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:361)
          at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:217)
          at org.eclipse.aether.internal.impl.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:202)
          at org.eclipse.aether.internal.impl.DefaultRepositorySystem.collectDependencies(DefaultRepositorySystem.java:316)
          at org.kie.scanner.MavenRepository.getArtifactDependecies(MavenRepository.java:109)
          at org.kie.scanner.ArtifactResolver.getArtifactDependecies(ArtifactResolver.java:71)
          at org.kie.scanner.KieRepositoryScannerImpl.buildArtifact(KieRepositoryScannerImpl.java:169)
          at org.kie.scanner.KieRepositoryScannerImpl.loadArtifact(KieRepositoryScannerImpl.java:126)
          at org.kie.scanner.KieRepositoryScannerImpl.loadArtifact(KieRepositoryScannerImpl.java:121)
          at org.drools.compiler.kie.builder.impl.KieRepositoryImpl.loadKieModuleFromMavenRepo(KieRepositoryImpl.java:129)
          at org.drools.compiler.kie.builder.impl.KieRepositoryImpl.getKieModule(KieRepositoryImpl.java:115)
          at org.drools.compiler.kie.builder.impl.KieRepositoryImpl.getKieModule(KieRepositoryImpl.java:92)
          at org.drools.compiler.kie.builder.impl.KieServicesImpl.newKieContainer(KieServicesImpl.java:115)
          at org.drools.compiler.kie.builder.impl.KieServicesImpl.newKieContainer(KieServicesImpl.java:111)
          at org.jbpm.kie.services.impl.KModuleDeploymentService.deploy(KModuleDeploymentService.java:113)
          ... 53 more
      
      
      

       

       

      Any idea what goes wrong?

        • 1. Re: DeploymentService error on Wildfly 9
          Michael Awizen Novice

          After correcting the dependency management in the parent pom to enclose:

           

          <dependency> 
              <groupId>org.wildfly.bom</groupId>
              <artifactId>jboss-javaee-7.0-wildfly</artifactId>
              <version>9.0.1.Final</version>
              <type>pom</type> 
              <scope>import</scope> 
          </dependency> 
          

           

           

          The error message on deployment looks different, but the deployment still breaks:

           

          17:56:34,341 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 71) MSC000001: Failed to start service jboss.deployment.subunit."gangehi-ear.ear"."gangehi-ejb.jar".component.StartupBean.START: org.jboss.msc.service.StartException in service jboss.deployment.subunit."gangehi-ear.ear"."gangehi-ejb.jar".component.StartupBean.START: java.lang.IllegalStateException: WFLYEE0042: Failed to construct component instance
              at org.jboss.as.ee.component.ComponentStartService$1.run(ComponentStartService.java:57)
              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.IllegalStateException: WFLYEE0042: Failed to construct component instance
              at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:163)
              at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:134)
              at org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:88)
              at org.jboss.as.ejb3.component.singleton.SingletonComponent.getComponentInstance(SingletonComponent.java:122)
              at org.jboss.as.ejb3.component.singleton.SingletonComponent.start(SingletonComponent.java:136)
              at org.jboss.as.ee.component.ComponentStartService$1.run(ComponentStartService.java:54)
              ... 6 more
          Caused by: javax.ejb.EJBException: java.lang.RuntimeException: java.lang.IllegalAccessError: tried to access method com.google.common.collect.MapMaker.makeComputingMap(Lcom/google/common/base/Function;)Ljava/util/concurrent/ConcurrentMap; from class com.google.inject.internal.Annotations$AnnotationChecker
              at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:187)
              at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:277)
              at org.jboss.as.ejb3.tx.CMTTxInterceptor.requiresNew(CMTTxInterceptor.java:349)
              at org.jboss.as.ejb3.tx.LifecycleCMTTxInterceptor.processInvocation(LifecycleCMTTxInterceptor.java:66)
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
              at org.jboss.as.weld.injection.WeldInjectionContextInterceptor.processInvocation(WeldInjectionContextInterceptor.java:43)
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
              at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
              at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
              at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
              at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)
              at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
              at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
              at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:161)
              ... 11 more
          Caused by: java.lang.RuntimeException: java.lang.IllegalAccessError: tried to access method com.google.common.collect.MapMaker.makeComputingMap(Lcom/google/common/base/Function;)Ljava/util/concurrent/ConcurrentMap; from class com.google.inject.internal.Annotations$AnnotationChecker
              at org.jbpm.kie.services.impl.KModuleDeploymentService.deploy(KModuleDeploymentService.java:168)
              at org.jbpm.services.cdi.impl.DeploymentServiceCDIImpl$Proxy$_$$_WeldClientProxy.deploy(Unknown Source)
              at com.awizen.gangehi.util.StartupBean.init(StartupBean.java:27)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:497)
              at org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptor.java:96)
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
              at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doLifecycleInterception(Jsr299BindingsInterceptor.java:114)
              at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:103)
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
              at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)
              at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:73)
              at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:83)
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
              at org.jboss.as.weld.injection.WeldInjectionInterceptor.processInvocation(WeldInjectionInterceptor.java:53)
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
              at org.jboss.as.ee.component.AroundConstructInterceptorFactory$1.processInvocation(AroundConstructInterceptorFactory.java:28)
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
              at org.jboss.as.weld.injection.WeldInterceptorInjectionInterceptor.processInvocation(WeldInterceptorInjectionInterceptor.java:56)
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
              at org.jboss.as.weld.ejb.Jsr299BindingsCreateInterceptor.processInvocation(Jsr299BindingsCreateInterceptor.java:100)
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
              at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
              at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:275)
              ... 27 more
          Caused by: java.lang.IllegalAccessError: tried to access method com.google.common.collect.MapMaker.makeComputingMap(Lcom/google/common/base/Function;)Ljava/util/concurrent/ConcurrentMap; from class com.google.inject.internal.Annotations$AnnotationChecker
              at com.google.inject.internal.Annotations$AnnotationChecker.<init>(Annotations.java:104)
              at com.google.inject.internal.Annotations.<clinit>(Annotations.java:122)
              at com.google.inject.Key.ensureRetainedAtRuntime(Key.java:362)
              at com.google.inject.Key.strategyFor(Key.java:354)
              at com.google.inject.Key.get(Key.java:222)
              at org.eclipse.sisu.wire.ParameterKeys.<clinit>(ParameterKeys.java:28)
              at org.eclipse.sisu.wire.DependencyAnalyzer.<init>(DependencyAnalyzer.java:92)
              at org.eclipse.sisu.wire.ElementAnalyzer.<init>(ElementAnalyzer.java:87)
              at org.eclipse.sisu.wire.WireModule.configure(WireModule.java:74)
              at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:229)
              at com.google.inject.spi.Elements.getElements(Elements.java:103)
              at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:136)
              at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:104)
              at com.google.inject.Guice.createInjector(Guice.java:94)
              at com.google.inject.Guice.createInjector(Guice.java:71)
              at com.google.inject.Guice.createInjector(Guice.java:61)
              at org.codehaus.plexus.DefaultPlexusContainer.addPlexusInjector(DefaultPlexusContainer.java:477)
              at org.codehaus.plexus.DefaultPlexusContainer.<init>(DefaultPlexusContainer.java:203)
              at org.codehaus.plexus.DefaultPlexusContainer.<init>(DefaultPlexusContainer.java:167)
              at org.kie.scanner.embedder.MavenEmbedderUtils.buildPlexusContainer(MavenEmbedderUtils.java:166)
              at org.kie.scanner.embedder.MavenEmbedderUtils.buildPlexusContainer(MavenEmbedderUtils.java:140)
              at org.kie.scanner.embedder.PlexusComponentProvider.<init>(PlexusComponentProvider.java:37)
              at org.kie.scanner.embedder.MavenEmbedderUtils.buildComponentProvider(MavenEmbedderUtils.java:56)
              at org.kie.scanner.embedder.MavenEmbedder.<init>(MavenEmbedder.java:75)
              at org.kie.scanner.embedder.MavenEmbedder.<init>(MavenEmbedder.java:69)
              at org.kie.scanner.embedder.MavenProjectLoader.parseMavenPom(MavenProjectLoader.java:55)
              at org.kie.scanner.embedder.MavenProjectLoader.parseMavenPom(MavenProjectLoader.java:49)
              at org.kie.scanner.MavenPomModelGenerator.parse(MavenPomModelGenerator.java:36)
              at org.drools.compiler.kproject.xml.PomModel$Parser.parse(PomModel.java:89)
              at org.drools.compiler.kie.builder.impl.AbstractKieModule.getPomModel(AbstractKieModule.java:395)
              at org.drools.compiler.kie.builder.impl.AbstractKieModule.getJarDependencies(AbstractKieModule.java:126)
              at org.kie.scanner.MavenClassLoaderResolver.getClassLoader(MavenClassLoaderResolver.java:64)
              at org.drools.compiler.kie.builder.impl.KieModuleKieProject.<init>(KieModuleKieProject.java:68)
              at org.drools.compiler.kie.builder.impl.KieModuleKieProject.<init>(KieModuleKieProject.java:56)
              at org.drools.compiler.kie.builder.impl.KieBuilderImpl.buildKieModule(KieBuilderImpl.java:221)
              at org.kie.scanner.KieRepositoryScannerImpl.build(KieRepositoryScannerImpl.java:220)
              at org.kie.scanner.KieRepositoryScannerImpl.buildArtifact(KieRepositoryScannerImpl.java:170)
              at org.kie.scanner.KieRepositoryScannerImpl.loadArtifact(KieRepositoryScannerImpl.java:126)
              at org.kie.scanner.KieRepositoryScannerImpl.loadArtifact(KieRepositoryScannerImpl.java:121)
              at org.drools.compiler.kie.builder.impl.KieRepositoryImpl.loadKieModuleFromMavenRepo(KieRepositoryImpl.java:129)
              at org.drools.compiler.kie.builder.impl.KieRepositoryImpl.getKieModule(KieRepositoryImpl.java:115)
              at org.drools.compiler.kie.builder.impl.KieRepositoryImpl.getKieModule(KieRepositoryImpl.java:92)
              at org.drools.compiler.kie.builder.impl.KieServicesImpl.newKieContainer(KieServicesImpl.java:115)
              at org.drools.compiler.kie.builder.impl.KieServicesImpl.newKieContainer(KieServicesImpl.java:111)
              at org.jbpm.kie.services.impl.KModuleDeploymentService.deploy(KModuleDeploymentService.java:113)
              ... 53 more
          

           

          Please help...

          • 2. Re: DeploymentService error on Wildfly 9
            Michael Awizen Novice

            I have found a dirty workaround to get my process deployed.

             

            There was somewhere the information that DeploymentService fails due to guice library conflicts.

             

            sisu.JPG

             

            So I tried forcing the newest library in my subproject:

             

            <dependency>
                <groupId>org.sonatype.sisu</groupId>
                <artifactId>sisu-guice</artifactId>
                <version>3.2.6</version>
                <classifier>no_aop</classifier>
            </dependency>
            

             

            With this library the deployment works and I can go on on with the application development.

            But the maven pom parser keeps warning:

             

            12:54:43,606 WARN  [org.drools.compiler.kproject.xml.PomModel] (ServerService Thread Pool -- 112) Error generated by the maven pom parser, falling back to the internal one: java.lang.RuntimeException: org.kie.scanner.embedder.MavenEmbedderException: com.google.inject.ProvisionException: Unable to provision, see the following errors:
            
            1) No implementation for org.eclipse.aether.RepositorySystem was bound.
              while locating org.apache.maven.artifact.resolver.DefaultArtifactResolver
              at ClassRealm[maven, parent: ClassRealm[maven-parent, parent: ClassRealm[maven-parent1, parent: null]]] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
              at ClassRealm[maven, parent: ClassRealm[maven-parent, parent: ClassRealm[maven-parent1, parent: null]]] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
              while locating org.apache.maven.artifact.resolver.ArtifactResolver
              while locating org.apache.maven.repository.legacy.LegacyRepositorySystem
              at ClassRealm[maven, parent: ClassRealm[maven-parent, parent: ClassRealm[maven-parent1, parent: null]]] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
              at ClassRealm[maven, parent: ClassRealm[maven-parent, parent: ClassRealm[maven-parent1, parent: null]]] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
              while locating org.apache.maven.repository.RepositorySystem
              while locating org.apache.maven.execution.DefaultMavenExecutionRequestPopulator
              at ClassRealm[maven, parent: ClassRealm[maven-parent, parent: ClassRealm[maven-parent1, parent: null]]] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
              at ClassRealm[maven, parent: ClassRealm[maven-parent, parent: ClassRealm[maven-parent1, parent: null]]] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
              while locating org.apache.maven.execution.MavenExecutionRequestPopulator
            
            1 error
                  role: org.apache.maven.execution.MavenExecutionRequestPopulator
              roleHint: 
                at org.kie.scanner.embedder.MavenProjectLoader.parseMavenPom(MavenProjectLoader.java:57)
                at org.kie.scanner.embedder.MavenProjectLoader.parseMavenPom(MavenProjectLoader.java:49)
                at org.kie.scanner.MavenPomModelGenerator.parse(MavenPomModelGenerator.java:36)
                at org.drools.compiler.kproject.xml.PomModel$Parser.parse(PomModel.java:89)
                at org.drools.compiler.kie.builder.impl.AbstractKieModule.getPomModel(AbstractKieModule.java:395)
                at org.drools.compiler.kie.builder.impl.AbstractKieModule.getJarDependencies(AbstractKieModule.java:126)
                at org.kie.scanner.MavenClassLoaderResolver.getClassLoader(MavenClassLoaderResolver.java:64)
                at org.drools.compiler.kie.builder.impl.KieModuleKieProject.<init>(KieModuleKieProject.java:68)
                at org.drools.compiler.kie.builder.impl.KieModuleKieProject.<init>(KieModuleKieProject.java:56)
                at org.drools.compiler.kie.builder.impl.KieBuilderImpl.buildKieModule(KieBuilderImpl.java:221)
                at org.kie.scanner.KieRepositoryScannerImpl.build(KieRepositoryScannerImpl.java:220)
                at org.kie.scanner.KieRepositoryScannerImpl.buildArtifact(KieRepositoryScannerImpl.java:170)
                at org.kie.scanner.KieRepositoryScannerImpl.loadArtifact(KieRepositoryScannerImpl.java:126)
                at org.kie.scanner.KieRepositoryScannerImpl.loadArtifact(KieRepositoryScannerImpl.java:121)
                at org.drools.compiler.kie.builder.impl.KieRepositoryImpl.loadKieModuleFromMavenRepo(KieRepositoryImpl.java:129)
                at org.drools.compiler.kie.builder.impl.KieRepositoryImpl.getKieModule(KieRepositoryImpl.java:115)
                at org.drools.compiler.kie.builder.impl.KieRepositoryImpl.getKieModule(KieRepositoryImpl.java:92)
                at org.drools.compiler.kie.builder.impl.KieServicesImpl.newKieContainer(KieServicesImpl.java:115)
                at org.drools.compiler.kie.builder.impl.KieServicesImpl.newKieContainer(KieServicesImpl.java:111)
                at org.jbpm.kie.services.impl.KModuleDeploymentService.deploy(KModuleDeploymentService.java:113)
                at org.jbpm.services.cdi.impl.DeploymentServiceCDIImpl$Proxy$_$$_WeldClientProxy.deploy(Unknown Source)
                at com.awizen.gangehi.util.StartupBean.init(StartupBean.java:27)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.lang.reflect.Method.invoke(Method.java:497)
                at org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptor.java:96)
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
                at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doLifecycleInterception(Jsr299BindingsInterceptor.java:114)
                at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:103)
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
                at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)
                at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:73)
                at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:83)
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
                at org.jboss.as.weld.injection.WeldInjectionInterceptor.processInvocation(WeldInjectionInterceptor.java:53)
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
                at org.jboss.as.ee.component.AroundConstructInterceptorFactory$1.processInvocation(AroundConstructInterceptorFactory.java:28)
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
                at org.jboss.as.weld.injection.WeldInterceptorInjectionInterceptor.processInvocation(WeldInterceptorInjectionInterceptor.java:56)
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
                at org.jboss.as.weld.ejb.Jsr299BindingsCreateInterceptor.processInvocation(Jsr299BindingsCreateInterceptor.java:100)
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
                at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
                at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:275)
                at org.jboss.as.ejb3.tx.CMTTxInterceptor.requiresNew(CMTTxInterceptor.java:349)
                at org.jboss.as.ejb3.tx.LifecycleCMTTxInterceptor.processInvocation(LifecycleCMTTxInterceptor.java:66)
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
                at org.jboss.as.weld.injection.WeldInjectionContextInterceptor.processInvocation(WeldInjectionContextInterceptor.java:43)
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
                at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
                at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
                at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
                at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)
                at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
                at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
                at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:161)
                at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:134)
                at org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:88)
                at org.jboss.as.ejb3.component.singleton.SingletonComponent.getComponentInstance(SingletonComponent.java:122)
                at org.jboss.as.ejb3.component.singleton.SingletonComponent.start(SingletonComponent.java:136)
                at org.jboss.as.ee.component.ComponentStartService$1.run(ComponentStartService.java:54)
                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: org.kie.scanner.embedder.MavenEmbedderException: com.google.inject.ProvisionException: Unable to provision, see the following errors:
            
            1) No implementation for org.eclipse.aether.RepositorySystem was bound.
              while locating org.apache.maven.artifact.resolver.DefaultArtifactResolver
              at ClassRealm[maven, parent: ClassRealm[maven-parent, parent: ClassRealm[maven-parent1, parent: null]]] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
              at ClassRealm[maven, parent: ClassRealm[maven-parent, parent: ClassRealm[maven-parent1, parent: null]]] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
              while locating org.apache.maven.artifact.resolver.ArtifactResolver
              while locating org.apache.maven.repository.legacy.LegacyRepositorySystem
              at ClassRealm[maven, parent: ClassRealm[maven-parent, parent: ClassRealm[maven-parent1, parent: null]]] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
              at ClassRealm[maven, parent: ClassRealm[maven-parent, parent: ClassRealm[maven-parent1, parent: null]]] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
              while locating org.apache.maven.repository.RepositorySystem
              while locating org.apache.maven.execution.DefaultMavenExecutionRequestPopulator
              at ClassRealm[maven, parent: ClassRealm[maven-parent, parent: ClassRealm[maven-parent1, parent: null]]] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
              at ClassRealm[maven, parent: ClassRealm[maven-parent, parent: ClassRealm[maven-parent1, parent: null]]] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
              while locating org.apache.maven.execution.MavenExecutionRequestPopulator
            
            1 error
                  role: org.apache.maven.execution.MavenExecutionRequestPopulator
              roleHint: 
                at org.kie.scanner.embedder.MavenEmbedder.<init>(MavenEmbedder.java:94)
                at org.kie.scanner.embedder.MavenEmbedder.<init>(MavenEmbedder.java:75)
                at org.kie.scanner.embedder.MavenEmbedder.<init>(MavenEmbedder.java:69)
                at org.kie.scanner.embedder.MavenProjectLoader.parseMavenPom(MavenProjectLoader.java:55)
                ... 72 more
            Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException: com.google.inject.ProvisionException: Unable to provision, see the following errors:
            
            1) No implementation for org.eclipse.aether.RepositorySystem was bound.
              while locating org.apache.maven.artifact.resolver.DefaultArtifactResolver
              at ClassRealm[maven, parent: ClassRealm[maven-parent, parent: ClassRealm[maven-parent1, parent: null]]] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
              at ClassRealm[maven, parent: ClassRealm[maven-parent, parent: ClassRealm[maven-parent1, parent: null]]] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
              while locating org.apache.maven.artifact.resolver.ArtifactResolver
              while locating org.apache.maven.repository.legacy.LegacyRepositorySystem
              at ClassRealm[maven, parent: ClassRealm[maven-parent, parent: ClassRealm[maven-parent1, parent: null]]] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
              at ClassRealm[maven, parent: ClassRealm[maven-parent, parent: ClassRealm[maven-parent1, parent: null]]] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
              while locating org.apache.maven.repository.RepositorySystem
              while locating org.apache.maven.execution.DefaultMavenExecutionRequestPopulator
              at ClassRealm[maven, parent: ClassRealm[maven-parent, parent: ClassRealm[maven-parent1, parent: null]]] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
              at ClassRealm[maven, parent: ClassRealm[maven-parent, parent: ClassRealm[maven-parent1, parent: null]]] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
              while locating org.apache.maven.execution.MavenExecutionRequestPopulator
            
            1 error
                  role: org.apache.maven.execution.MavenExecutionRequestPopulator
              roleHint: 
                at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:264)
                at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:252)
                at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:246)
                at org.kie.scanner.embedder.PlexusComponentProvider.lookup(PlexusComponentProvider.java:42)
                at org.kie.scanner.embedder.MavenEmbedder.buildMavenExecutionRequest(MavenEmbedder.java:111)
                at org.kie.scanner.embedder.MavenEmbedder.<init>(MavenEmbedder.java:84)
                ... 75 more
            Caused by: com.google.inject.ProvisionException: Unable to provision, see the following errors:
            
            1) No implementation for org.eclipse.aether.RepositorySystem was bound.
              while locating org.apache.maven.artifact.resolver.DefaultArtifactResolver
              at ClassRealm[maven, parent: ClassRealm[maven-parent, parent: ClassRealm[maven-parent1, parent: null]]] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
              at ClassRealm[maven, parent: ClassRealm[maven-parent, parent: ClassRealm[maven-parent1, parent: null]]] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
              while locating org.apache.maven.artifact.resolver.ArtifactResolver
              while locating org.apache.maven.repository.legacy.LegacyRepositorySystem
              at ClassRealm[maven, parent: ClassRealm[maven-parent, parent: ClassRealm[maven-parent1, parent: null]]] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
              at ClassRealm[maven, parent: ClassRealm[maven-parent, parent: ClassRealm[maven-parent1, parent: null]]] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
              while locating org.apache.maven.repository.RepositorySystem
              while locating org.apache.maven.execution.DefaultMavenExecutionRequestPopulator
              at ClassRealm[maven, parent: ClassRealm[maven-parent, parent: ClassRealm[maven-parent1, parent: null]]] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
              at ClassRealm[maven, parent: ClassRealm[maven-parent, parent: ClassRealm[maven-parent1, parent: null]]] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
              while locating org.apache.maven.execution.MavenExecutionRequestPopulator
            
            1 error
                at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1025)
                at org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:82)
                at org.eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.java:51)
                at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:260)
                ... 80 more
            
            
            • 3. Re: DeploymentService error on Wildfly 9 (org.jbpm.services.api.DeploymentService)
              Kiran Srimat Kandala Newbie

              Try adding

              <dependency>
              <groupId>org.eclipse.aether</groupId>
              <artifactId>aether-impl</artifactId>
              <version>0.9.0.M4</version>
              </dependency>