Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-651

AmbiguousResolutionException when starting uberjar

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Duplicate Issue
    • Affects Version/s: 2016.8
    • Fix Version/s: 2016.9
    • Component/s: None
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      I generated the demo-project using http://wildfly-swarm.io/generator/
      It includes some jaxrs and cdi dependencies.

      In Eclipse (running org.wildfly.swarm.bootstrap.Main) everything runs without any problems, but after building the uberjar
      using mvn package and running it using java -jar demo-swarm.jar it stops with
      the below mentioned Exceptions.

      This is the pom.xml:

      <?xml version="1.0" encoding="UTF-8"?>
      <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

      <modelVersion>4.0.0</modelVersion>
      <groupId>com.example</groupId>
      <artifactId>demo</artifactId>
      <name>Wildfly Swarm Example</name>
      <version>1.0.0-SNAPSHOT</version>
      <packaging>war</packaging>

      <properties>
      <version.wildfly.swarm>2016.8.1</version.wildfly.swarm>
      <maven.compiler.source>1.8</maven.compiler.source>
      <maven.compiler.target>1.8</maven.compiler.target>
      <failOnMissingWebXml>false</failOnMissingWebXml>
      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
      </properties>

      <dependencyManagement>
      <dependencies>
      <dependency>
      <groupId>org.wildfly.swarm</groupId>
      <artifactId>bom-all</artifactId>
      <version>${version.wildfly.swarm}</version>
      <scope>import</scope>
      <type>pom</type>
      </dependency>
      </dependencies>
      </dependencyManagement>

      <build>
      <finalName>demo</finalName>
      <plugins>
      <plugin>
      <groupId>org.wildfly.swarm</groupId>
      <artifactId>wildfly-swarm-plugin</artifactId>
      <version>${version.wildfly.swarm}</version>
      <executions>
      <execution>
      <goals>
      <goal>package</goal>
      </goals>
      </execution>
      </executions>
      </plugin>
      </plugins>
      </build>

      <dependencies>
      <!-- Java EE 7 dependency -->
      <dependency>
      <groupId>javax</groupId>
      <artifactId>javaee-api</artifactId>
      <version>7.0</version>
      <scope>provided</scope>
      </dependency>
      <!-- Wildfly Swarm Fractions -->
      <dependency>
      <groupId>org.wildfly.swarm</groupId>
      <artifactId>cdi</artifactId>
      </dependency>
      <dependency>
      <groupId>org.wildfly.swarm</groupId>
      <artifactId>jaxrs</artifactId>
      </dependency>
      <dependency>
      <groupId>org.wildfly.swarm</groupId>
      <artifactId>jaxrs-cdi</artifactId>
      </dependency>
      <dependency>
      <groupId>org.wildfly.swarm</groupId>
      <artifactId>jaxrs-jaxb</artifactId>
      </dependency>
      <dependency>
      <groupId>org.wildfly.swarm</groupId>
      <artifactId>jaxrs-jsonp</artifactId>
      </dependency>

      </dependencies>
      </project>

      Show
      I generated the demo-project using http://wildfly-swarm.io/generator/ It includes some jaxrs and cdi dependencies. In Eclipse (running org.wildfly.swarm.bootstrap.Main) everything runs without any problems, but after building the uberjar using mvn package and running it using java -jar demo-swarm.jar it stops with the below mentioned Exceptions. This is the pom.xml: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd "> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>demo</artifactId> <name>Wildfly Swarm Example</name> <version>1.0.0-SNAPSHOT</version> <packaging>war</packaging> <properties> <version.wildfly.swarm>2016.8.1</version.wildfly.swarm> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> <failOnMissingWebXml>false</failOnMissingWebXml> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <dependencyManagement> <dependencies> <dependency> <groupId>org.wildfly.swarm</groupId> <artifactId>bom-all</artifactId> <version>${version.wildfly.swarm}</version> <scope>import</scope> <type>pom</type> </dependency> </dependencies> </dependencyManagement> <build> <finalName>demo</finalName> <plugins> <plugin> <groupId>org.wildfly.swarm</groupId> <artifactId>wildfly-swarm-plugin</artifactId> <version>${version.wildfly.swarm}</version> <executions> <execution> <goals> <goal>package</goal> </goals> </execution> </executions> </plugin> </plugins> </build> <dependencies> <!-- Java EE 7 dependency --> <dependency> <groupId>javax</groupId> <artifactId>javaee-api</artifactId> <version>7.0</version> <scope>provided</scope> </dependency> <!-- Wildfly Swarm Fractions --> <dependency> <groupId>org.wildfly.swarm</groupId> <artifactId>cdi</artifactId> </dependency> <dependency> <groupId>org.wildfly.swarm</groupId> <artifactId>jaxrs</artifactId> </dependency> <dependency> <groupId>org.wildfly.swarm</groupId> <artifactId>jaxrs-cdi</artifactId> </dependency> <dependency> <groupId>org.wildfly.swarm</groupId> <artifactId>jaxrs-jaxb</artifactId> </dependency> <dependency> <groupId>org.wildfly.swarm</groupId> <artifactId>jaxrs-jsonp</artifactId> </dependency> </dependencies> </project>

      Description

      Starting the uberjar with cdi-dependency included we receive the following Exception:

      2016-09-01 09:49:20,751 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.unit."demo.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."demo.war".WeldStartService: Failed to start service
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904)
      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)
      Caused by: org.jboss.weld.exceptions.DeploymentException: Exception List with 8 exceptions:
      Exception 0 :
      org.jboss.weld.exceptions.AmbiguousResolutionException: WELD-001318: Cannot resolve an ambiguous dependency between:

      • Producer Method [StageConfig] with qualifiers [@Any @Default] declared as [[BackedAnnotatedMethod] @Produces @Dependent public org.wildfly.swarm.container.runtime.RuntimeServer.stageConfig()],
      • org.wildfly.swarm.cdi.StageConfigBean@5c769088
        at org.jboss.weld.manager.BeanManagerImpl.resolve(BeanManagerImpl.java:1235)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedInjectionPoint(Validator.java:926)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:902)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:917)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedBean(Validator.java:879)
        at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:138)
        at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:155)
        at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:518)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:68)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:66)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:63)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:56)
        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)
        Exception 0 :
        org.jboss.weld.exceptions.AmbiguousResolutionException: WELD-001318: Cannot resolve an ambiguous dependency between:
      • Producer Method [StageConfig] with qualifiers [@Any @Default] declared as [[BackedAnnotatedMethod] @Produces @Dependent public org.wildfly.swarm.container.runtime.RuntimeServer.stageConfig()],
      • org.wildfly.swarm.cdi.StageConfigBean@5c769088
        at org.jboss.weld.manager.BeanManagerImpl.resolve(BeanManagerImpl.java:1235)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedInjectionPoint(Validator.java:926)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:902)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:917)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedBean(Validator.java:879)
        at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:138)
        at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:155)
        at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:518)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:68)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:66)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:63)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:56)
        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)
        Exception 0 :
        org.jboss.weld.exceptions.AmbiguousResolutionException: WELD-001318: Cannot resolve an ambiguous dependency between:
      • Producer Method [StageConfig] with qualifiers [@Any @Default] declared as [[BackedAnnotatedMethod] @Produces @Dependent public org.wildfly.swarm.container.runtime.RuntimeServer.stageConfig()],
      • org.wildfly.swarm.cdi.StageConfigBean@5c769088
        at org.jboss.weld.manager.BeanManagerImpl.resolve(BeanManagerImpl.java:1235)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedInjectionPoint(Validator.java:926)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:902)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:917)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedBean(Validator.java:879)
        at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:138)
        at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:155)
        at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:518)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:68)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:66)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:63)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:56)
        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)
        Exception 0 :
        org.jboss.weld.exceptions.AmbiguousResolutionException: WELD-001318: Cannot resolve an ambiguous dependency between:
      • Producer Method [StageConfig] with qualifiers [@Any @Default] declared as [[BackedAnnotatedMethod] @Produces @Dependent public org.wildfly.swarm.container.runtime.RuntimeServer.stageConfig()],
      • org.wildfly.swarm.cdi.StageConfigBean@5c769088
        at org.jboss.weld.manager.BeanManagerImpl.resolve(BeanManagerImpl.java:1235)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedInjectionPoint(Validator.java:926)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:902)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:917)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedBean(Validator.java:879)
        at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:138)
        at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:155)
        at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:518)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:68)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:66)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:63)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:56)
        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)
        Exception 0 :
        org.jboss.weld.exceptions.AmbiguousResolutionException: WELD-001318: Cannot resolve an ambiguous dependency between:
      • Producer Method [StageConfig] with qualifiers [@Any @Default] declared as [[BackedAnnotatedMethod] @Produces @Dependent public org.wildfly.swarm.container.runtime.RuntimeServer.stageConfig()],
      • org.wildfly.swarm.cdi.StageConfigBean@5c769088
        at org.jboss.weld.manager.BeanManagerImpl.resolve(BeanManagerImpl.java:1235)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedInjectionPoint(Validator.java:926)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:902)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:917)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedBean(Validator.java:879)
        at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:138)
        at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:155)
        at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:518)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:68)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:66)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:63)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:56)
        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)
        Exception 0 :
        org.jboss.weld.exceptions.AmbiguousResolutionException: WELD-001318: Cannot resolve an ambiguous dependency between:
      • Producer Method [StageConfig] with qualifiers [@Any @Default] declared as [[BackedAnnotatedMethod] @Produces @Dependent public org.wildfly.swarm.container.runtime.RuntimeServer.stageConfig()],
      • org.wildfly.swarm.cdi.StageConfigBean@5c769088
        at org.jboss.weld.manager.BeanManagerImpl.resolve(BeanManagerImpl.java:1235)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedInjectionPoint(Validator.java:926)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:902)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:917)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedBean(Validator.java:879)
        at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:138)
        at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:155)
        at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:518)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:68)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:66)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:63)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:56)
        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)
        Exception 0 :
        org.jboss.weld.exceptions.AmbiguousResolutionException: WELD-001318: Cannot resolve an ambiguous dependency between:
      • Producer Method [StageConfig] with qualifiers [@Any @Default] declared as [[BackedAnnotatedMethod] @Produces @Dependent public org.wildfly.swarm.container.runtime.RuntimeServer.stageConfig()],
      • org.wildfly.swarm.cdi.StageConfigBean@5c769088
        at org.jboss.weld.manager.BeanManagerImpl.resolve(BeanManagerImpl.java:1235)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedInjectionPoint(Validator.java:926)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:902)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:917)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedBean(Validator.java:879)
        at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:138)
        at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:155)
        at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:518)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:68)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:66)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:63)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:56)
        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)
        Exception 0 :
        org.jboss.weld.exceptions.DeploymentException: WELD-001409: Ambiguous dependencies for type StageConfig with qualifiers @Default
        at injection point [UnbackedAnnotatedField] @Inject private org.wildfly.swarm.container.runtime.cdi.ConfigurationValueProducer.stageConfig
        at org.wildfly.swarm.container.runtime.cdi.ConfigurationValueProducer.stageConfig(ConfigurationValueProducer.java:0)
        Possible dependencies:
      • Producer Method [StageConfig] with qualifiers [@Any @Default] declared as [[BackedAnnotatedMethod] @Produces @Dependent public org.wildfly.swarm.container.runtime.RuntimeServer.stageConfig()],
      • org.wildfly.swarm.cdi.StageConfigBean@5c769088

      at org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:367)
      at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:281)
      at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:134)
      at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:155)
      at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:518)
      at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:68)
      at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:66)
      at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:63)
      at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:56)
      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)

      at org.jboss.weld.bootstrap.ConcurrentValidator.validateBeans(ConcurrentValidator.java:76)
      at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:479)
      at org.jboss.weld.bootstrap.WeldStartup.validateBeans(WeldStartup.java:446)
      at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:90)
      at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:96)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
      ... 3 more

      2016-09-01 09:49:20,760 ERROR [org.jboss.as.controller.management-operation] (main) WFLYCTL0013: Operation ("add") failed - address: (("deployment" => "demo.war")) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"demo.war\".WeldStartService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"demo.war\".WeldStartService: Failed to start service
      Caused by: org.jboss.weld.exceptions.DeploymentException: Exception List with 8 exceptions:
      Exception 0 :
      org.jboss.weld.exceptions.AmbiguousResolutionException: WELD-001318: Cannot resolve an ambiguous dependency between:

      • Producer Method [StageConfig] with qualifiers [@Any @Default] declared as [[BackedAnnotatedMethod] @Produces @Dependent public org.wildfly.swarm.container.runtime.RuntimeServer.stageConfig()],
      • org.wildfly.swarm.cdi.StageConfigBean@5c769088
        at org.jboss.weld.manager.BeanManagerImpl.resolve(BeanManagerImpl.java:1235)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedInjectionPoint(Validator.java:926)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:902)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:917)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedBean(Validator.java:879)
        at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:138)
        at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:155)
        at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:518)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:68)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:66)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:63)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:56)
        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)
        Exception 0 :
        org.jboss.weld.exceptions.AmbiguousResolutionException: WELD-001318: Cannot resolve an ambiguous dependency between:
      • Producer Method [StageConfig] with qualifiers [@Any @Default] declared as [[BackedAnnotatedMethod] @Produces @Dependent public org.wildfly.swarm.container.runtime.RuntimeServer.stageConfig()],
      • org.wildfly.swarm.cdi.StageConfigBean@5c769088
        at org.jboss.weld.manager.BeanManagerImpl.resolve(BeanManagerImpl.java:1235)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedInjectionPoint(Validator.java:926)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:902)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:917)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedBean(Validator.java:879)
        at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:138)
        at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:155)
        at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:518)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:68)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:66)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:63)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:56)
        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)
        Exception 0 :
        org.jboss.weld.exceptions.AmbiguousResolutionException: WELD-001318: Cannot resolve an ambiguous dependency between:
      • Producer Method [StageConfig] with qualifiers [@Any @Default] declared as [[BackedAnnotatedMethod] @Produces @Dependent public org.wildfly.swarm.container.runtime.RuntimeServer.stageConfig()],
      • org.wildfly.swarm.cdi.StageConfigBean@5c769088
        at org.jboss.weld.manager.BeanManagerImpl.resolve(BeanManagerImpl.java:1235)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedInjectionPoint(Validator.java:926)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:902)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:917)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedBean(Validator.java:879)
        at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:138)
        at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:155)
        at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:518)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:68)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:66)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:63)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:56)
        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)
        Exception 0 :
        org.jboss.weld.exceptions.AmbiguousResolutionException: WELD-001318: Cannot resolve an ambiguous dependency between:
      • Producer Method [StageConfig] with qualifiers [@Any @Default] declared as [[BackedAnnotatedMethod] @Produces @Dependent public org.wildfly.swarm.container.runtime.RuntimeServer.stageConfig()],
      • org.wildfly.swarm.cdi.StageConfigBean@5c769088
        at org.jboss.weld.manager.BeanManagerImpl.resolve(BeanManagerImpl.java:1235)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedInjectionPoint(Validator.java:926)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:902)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:917)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedBean(Validator.java:879)
        at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:138)
        at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:155)
        at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:518)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:68)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:66)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:63)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:56)
        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)
        Exception 0 :
        org.jboss.weld.exceptions.AmbiguousResolutionException: WELD-001318: Cannot resolve an ambiguous dependency between:
      • Producer Method [StageConfig] with qualifiers [@Any @Default] declared as [[BackedAnnotatedMethod] @Produces @Dependent public org.wildfly.swarm.container.runtime.RuntimeServer.stageConfig()],
      • org.wildfly.swarm.cdi.StageConfigBean@5c769088
        at org.jboss.weld.manager.BeanManagerImpl.resolve(BeanManagerImpl.java:1235)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedInjectionPoint(Validator.java:926)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:902)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:917)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedBean(Validator.java:879)
        at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:138)
        at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:155)
        at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:518)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:68)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:66)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:63)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:56)
        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)
        Exception 0 :
        org.jboss.weld.exceptions.AmbiguousResolutionException: WELD-001318: Cannot resolve an ambiguous dependency between:
      • Producer Method [StageConfig] with qualifiers [@Any @Default] declared as [[BackedAnnotatedMethod] @Produces @Dependent public org.wildfly.swarm.container.runtime.RuntimeServer.stageConfig()],
      • org.wildfly.swarm.cdi.StageConfigBean@5c769088
        at org.jboss.weld.manager.BeanManagerImpl.resolve(BeanManagerImpl.java:1235)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedInjectionPoint(Validator.java:926)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:902)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:917)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedBean(Validator.java:879)
        at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:138)
        at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:155)
        at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:518)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:68)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:66)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:63)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:56)
        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)
        Exception 0 :
        org.jboss.weld.exceptions.AmbiguousResolutionException: WELD-001318: Cannot resolve an ambiguous dependency between:
      • Producer Method [StageConfig] with qualifiers [@Any @Default] declared as [[BackedAnnotatedMethod] @Produces @Dependent public org.wildfly.swarm.container.runtime.RuntimeServer.stageConfig()],
      • org.wildfly.swarm.cdi.StageConfigBean@5c769088
        at org.jboss.weld.manager.BeanManagerImpl.resolve(BeanManagerImpl.java:1235)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedInjectionPoint(Validator.java:926)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:902)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:917)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedBean(Validator.java:879)
        at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:138)
        at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:155)
        at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:518)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:68)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:66)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:63)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:56)
        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)
        Exception 0 :
        org.jboss.weld.exceptions.DeploymentException: WELD-001409: Ambiguous dependencies for type StageConfig with qualifiers @Default
        at injection point [UnbackedAnnotatedField] @Inject private org.wildfly.swarm.container.runtime.cdi.ConfigurationValueProducer.stageConfig
        at org.wildfly.swarm.container.runtime.cdi.ConfigurationValueProducer.stageConfig(ConfigurationValueProducer.java:0)
        Possible dependencies:
      • Producer Method [StageConfig] with qualifiers [@Any @Default] declared as [[BackedAnnotatedMethod] @Produces @Dependent public org.wildfly.swarm.container.runtime.RuntimeServer.stageConfig()],
      • org.wildfly.swarm.cdi.StageConfigBean@5c769088

      at org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:367)
      at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:281)
      at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:134)
      at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:155)
      at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:518)
      at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:68)
      at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:66)
      at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:63)
      at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:56)
      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)
      "}}
      2016-09-01 09:49:20,765 ERROR [org.jboss.as.server] (main) WFLYSRV0021: Deploy of deployment "demo.war" was rolled back with the following failure message:
      {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"demo.war\".WeldStartService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"demo.war\".WeldStartService: Failed to start service
      Caused by: org.jboss.weld.exceptions.DeploymentException: Exception List with 8 exceptions:
      Exception 0 :
      org.jboss.weld.exceptions.AmbiguousResolutionException: WELD-001318: Cannot resolve an ambiguous dependency between:

      • Producer Method [StageConfig] with qualifiers [@Any @Default] declared as [[BackedAnnotatedMethod] @Produces @Dependent public org.wildfly.swarm.container.runtime.RuntimeServer.stageConfig()],
      • org.wildfly.swarm.cdi.StageConfigBean@5c769088
        at org.jboss.weld.manager.BeanManagerImpl.resolve(BeanManagerImpl.java:1235)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedInjectionPoint(Validator.java:926)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:902)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:917)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedBean(Validator.java:879)
        at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:138)
        at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:155)
        at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:518)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:68)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:66)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:63)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:56)
        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)
        Exception 0 :
        org.jboss.weld.exceptions.AmbiguousResolutionException: WELD-001318: Cannot resolve an ambiguous dependency between:
      • Producer Method [StageConfig] with qualifiers [@Any @Default] declared as [[BackedAnnotatedMethod] @Produces @Dependent public org.wildfly.swarm.container.runtime.RuntimeServer.stageConfig()],
      • org.wildfly.swarm.cdi.StageConfigBean@5c769088
        at org.jboss.weld.manager.BeanManagerImpl.resolve(BeanManagerImpl.java:1235)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedInjectionPoint(Validator.java:926)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:902)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:917)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedBean(Validator.java:879)
        at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:138)
        at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:155)
        at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:518)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:68)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:66)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:63)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:56)
        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)
        Exception 0 :
        org.jboss.weld.exceptions.AmbiguousResolutionException: WELD-001318: Cannot resolve an ambiguous dependency between:
      • Producer Method [StageConfig] with qualifiers [@Any @Default] declared as [[BackedAnnotatedMethod] @Produces @Dependent public org.wildfly.swarm.container.runtime.RuntimeServer.stageConfig()],
      • org.wildfly.swarm.cdi.StageConfigBean@5c769088
        at org.jboss.weld.manager.BeanManagerImpl.resolve(BeanManagerImpl.java:1235)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedInjectionPoint(Validator.java:926)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:902)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:917)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedBean(Validator.java:879)
        at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:138)
        at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:155)
        at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:518)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:68)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:66)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:63)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:56)
        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)
        Exception 0 :
        org.jboss.weld.exceptions.AmbiguousResolutionException: WELD-001318: Cannot resolve an ambiguous dependency between:
      • Producer Method [StageConfig] with qualifiers [@Any @Default] declared as [[BackedAnnotatedMethod] @Produces @Dependent public org.wildfly.swarm.container.runtime.RuntimeServer.stageConfig()],
      • org.wildfly.swarm.cdi.StageConfigBean@5c769088
        at org.jboss.weld.manager.BeanManagerImpl.resolve(BeanManagerImpl.java:1235)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedInjectionPoint(Validator.java:926)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:902)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:917)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedBean(Validator.java:879)
        at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:138)
        at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:155)
        at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:518)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:68)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:66)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:63)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:56)
        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)
        Exception 0 :
        org.jboss.weld.exceptions.AmbiguousResolutionException: WELD-001318: Cannot resolve an ambiguous dependency between:
      • Producer Method [StageConfig] with qualifiers [@Any @Default] declared as [[BackedAnnotatedMethod] @Produces @Dependent public org.wildfly.swarm.container.runtime.RuntimeServer.stageConfig()],
      • org.wildfly.swarm.cdi.StageConfigBean@5c769088
        at org.jboss.weld.manager.BeanManagerImpl.resolve(BeanManagerImpl.java:1235)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedInjectionPoint(Validator.java:926)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:902)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:917)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedBean(Validator.java:879)
        at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:138)
        at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:155)
        at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:518)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:68)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:66)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:63)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:56)
        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)
        Exception 0 :
        org.jboss.weld.exceptions.AmbiguousResolutionException: WELD-001318: Cannot resolve an ambiguous dependency between:
      • Producer Method [StageConfig] with qualifiers [@Any @Default] declared as [[BackedAnnotatedMethod] @Produces @Dependent public org.wildfly.swarm.container.runtime.RuntimeServer.stageConfig()],
      • org.wildfly.swarm.cdi.StageConfigBean@5c769088
        at org.jboss.weld.manager.BeanManagerImpl.resolve(BeanManagerImpl.java:1235)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedInjectionPoint(Validator.java:926)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:902)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:917)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedBean(Validator.java:879)
        at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:138)
        at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:155)
        at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:518)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:68)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:66)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:63)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:56)
        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)
        Exception 0 :
        org.jboss.weld.exceptions.AmbiguousResolutionException: WELD-001318: Cannot resolve an ambiguous dependency between:
      • Producer Method [StageConfig] with qualifiers [@Any @Default] declared as [[BackedAnnotatedMethod] @Produces @Dependent public org.wildfly.swarm.container.runtime.RuntimeServer.stageConfig()],
      • org.wildfly.swarm.cdi.StageConfigBean@5c769088
        at org.jboss.weld.manager.BeanManagerImpl.resolve(BeanManagerImpl.java:1235)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedInjectionPoint(Validator.java:926)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:902)
        at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:917)
        at org.jboss.weld.bootstrap.Validator.validatePseudoScopedBean(Validator.java:879)
        at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:138)
        at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:155)
        at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:518)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:68)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:66)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:63)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:56)
        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)
        Exception 0 :
        org.jboss.weld.exceptions.DeploymentException: WELD-001409: Ambiguous dependencies for type StageConfig with qualifiers @Default
        at injection point [UnbackedAnnotatedField] @Inject private org.wildfly.swarm.container.runtime.cdi.ConfigurationValueProducer.stageConfig
        at org.wildfly.swarm.container.runtime.cdi.ConfigurationValueProducer.stageConfig(ConfigurationValueProducer.java:0)
        Possible dependencies:
      • Producer Method [StageConfig] with qualifiers [@Any @Default] declared as [[BackedAnnotatedMethod] @Produces @Dependent public org.wildfly.swarm.container.runtime.RuntimeServer.stageConfig()],
      • org.wildfly.swarm.cdi.StageConfigBean@5c769088

      at org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:367)
      at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:281)
      at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:134)
      at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:155)
      at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:518)
      at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:68)
      at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:66)
      at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:63)
      at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:56)
      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)
      "}}
      2016-09-01 09:49:20,793 INFO [org.wildfly.extension.undertow] (MSC service thread 1-1) WFLYUT0019: Host default-host stopping
      2016-09-01 09:49:20,965 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0028: Stopped deployment demo.war (runtime-name: demo.war) in 199ms
      2016-09-01 09:49:20,967 INFO [org.jboss.as.controller] (main) WFLYCTL0183: Service status report
      WFLYCTL0184: New missing/unsatisfied dependencies:
      service jboss.deployment.unit."demo.war".WeldBootstrapService (missing) dependents: [service jboss.deployment.unit."demo.war".component."org.jboss.weld.servlet.WeldInitialListener".WeldInstantiator, service jboss.deployment.unit."demo.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".WeldInstantiator, service jboss.deployment.unit."demo.war".component."org.jboss.weld.servlet.WeldTerminalListener".WeldInstantiator, service jboss.deployment.unit."demo.war".CdiValidatorFactoryService, WFLYCTL0208: ... and 2 more ]
      service jboss.deployment.unit."demo.war".WeldStartService (missing) dependents: [service jboss.deployment.unit."demo.war".component."org.jboss.weld.servlet.WeldInitialListener".WeldInstantiator, service jboss.deployment.unit."demo.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".WeldInstantiator, service jboss.undertow.deployment.default-server.default-host./, service jboss.deployment.unit."demo.war".component."org.jboss.weld.servlet.WeldTerminalListener".WeldInstantiator, WFLYCTL0208: ... and 4 more ]
      service jboss.deployment.unit."demo.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".CREATE (missing) dependents: [service jboss.deployment.unit."demo.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".START]
      service jboss.deployment.unit."demo.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".START (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./, service jboss.deployment.unit."demo.war".deploymentCompleteService, service jboss.undertow.deployment.default-server.default-host./.UndertowDeploymentInfoService]
      service jboss.deployment.unit."demo.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".WeldInstantiator (missing) dependents: [service jboss.deployment.unit."demo.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".START]
      service jboss.deployment.unit."demo.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".CREATE (missing) dependents: [service jboss.deployment.unit."demo.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".START]
      service jboss.deployment.unit."demo.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".START (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./, service jboss.deployment.unit."demo.war".deploymentCompleteService, service jboss.undertow.deployment.default-server.default-host./.UndertowDeploymentInfoService]
      service jboss.deployment.unit."demo.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".WeldInstantiator (missing) dependents: [service jboss.deployment.unit."demo.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".START]
      service jboss.deployment.unit."demo.war".component."org.jboss.weld.servlet.WeldInitialListener".CREATE (missing) dependents: [service jboss.deployment.unit."demo.war".component."org.jboss.weld.servlet.WeldInitialListener".START]
      service jboss.deployment.unit."demo.war".component."org.jboss.weld.servlet.WeldInitialListener".START (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./, service jboss.deployment.unit."demo.war".deploymentCompleteService, service jboss.undertow.deployment.default-server.default-host./.UndertowDeploymentInfoService]
      service jboss.deployment.unit."demo.war".component."org.jboss.weld.servlet.WeldInitialListener".WeldInstantiator (missing) dependents: [service jboss.deployment.unit."demo.war".component."org.jboss.weld.servlet.WeldInitialListener".START]
      service jboss.deployment.unit."demo.war".component."org.jboss.weld.servlet.WeldTerminalListener".CREATE (missing) dependents: [service jboss.deployment.unit."demo.war".component."org.jboss.weld.servlet.WeldTerminalListener".START]
      service jboss.deployment.unit."demo.war".component."org.jboss.weld.servlet.WeldTerminalListener".START (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./, service jboss.deployment.unit."demo.war".deploymentCompleteService, service jboss.undertow.deployment.default-server.default-host./.UndertowDeploymentInfoService]
      service jboss.deployment.unit."demo.war".component."org.jboss.weld.servlet.WeldTerminalListener".WeldInstantiator (missing) dependents: [service jboss.deployment.unit."demo.war".component."org.jboss.weld.servlet.WeldTerminalListener".START]
      service jboss.deployment.unit."demo.war".ee.ComponentRegistry (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./.UndertowDeploymentInfoService]
      service jboss.deployment.unit."demo.war".jndiDependencyService (missing) dependents: [service jboss.deployment.unit."demo.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".START, service jboss.deployment.unit."demo.war".component."org.jboss.weld.servlet.WeldInitialListener".START, service jboss.deployment.unit."demo.war".component."org.jboss.weld.servlet.WeldTerminalListener".START, service jboss.deployment.unit."demo.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".START]
      service jboss.undertow.deployment.default-server.default-host./ (missing) dependents: [service jboss.deployment.unit."demo.war".deploymentCompleteService]
      service jboss.undertow.deployment.default-server.default-host./.UndertowDeploymentInfoService (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./]
      service jboss.undertow.deployment.default-server.default-host./.codec (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./.UndertowDeploymentInfoService]
      service jboss.undertow.deployment.default-server.default-host./.session (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./.UndertowDeploymentInfoService]
      service org.wildfly.request-controller.control-point."demo.war".undertow (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./.UndertowDeploymentInfoService]
      WFLYCTL0186: Services which failed to start: service jboss.deployment.unit."demo.war".WeldStartService

      2016-09-01 09:49:20,971 ERROR [stderr] (main) Exception in thread "main" java.lang.reflect.InvocationTargetException

      2016-09-01 09:49:20,971 ERROR [stderr] (main) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      2016-09-01 09:49:20,971 ERROR [stderr] (main) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

      2016-09-01 09:49:20,971 ERROR [stderr] (main) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      2016-09-01 09:49:20,971 ERROR [stderr] (main) at java.lang.reflect.Method.invoke(Method.java:497)

      2016-09-01 09:49:20,972 ERROR [stderr] (main) at org.wildfly.swarm.bootstrap.Main.invoke(Main.java:86)

      2016-09-01 09:49:20,972 ERROR [stderr] (main) at org.wildfly.swarm.bootstrap.Main.run(Main.java:50)

      2016-09-01 09:49:20,972 ERROR [stderr] (main) at org.wildfly.swarm.bootstrap.Main.main(Main.java:45)

      2016-09-01 09:49:20,973 ERROR [stderr] (main) Caused by: org.wildfly.swarm.container.DeploymentException: WFSWARM0007: Deployment failed: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"demo.war\".WeldStartService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"demo.war\".WeldStartService: Failed to start service
      2016-09-01 09:49:20,973 ERROR [stderr] (main) Caused by: org.jboss.weld.exceptions.DeploymentException: Exception List with 8 exceptions:
      2016-09-01 09:49:20,973 ERROR [stderr] (main) Exception 0 :
      2016-09-01 09:49:20,973 ERROR [stderr] (main) org.jboss.weld.exceptions.AmbiguousResolutionException: WELD-001318: Cannot resolve an ambiguous dependency between:
      2016-09-01 09:49:20,973 ERROR [stderr] (main) - Producer Method [StageConfig] with qualifiers [@Any @Default] declared as [[BackedAnnotatedMethod] @Produces @Dependent public org.wildfly.swarm.container.runtime.RuntimeServer.stageConfig()],
      2016-09-01 09:49:20,973 ERROR [stderr] (main) - org.wildfly.swarm.cdi.StageConfigBean@5c769088

      2016-09-01 09:49:20,974 ERROR [stderr] (main) at org.jboss.weld.manager.BeanManagerImpl.resolve(BeanManagerImpl.java:1235)

      2016-09-01 09:49:20,974 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.validatePseudoScopedInjectionPoint(Validator.java:926)

      2016-09-01 09:49:20,974 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:902)

      2016-09-01 09:49:20,974 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:917)

      2016-09-01 09:49:20,974 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.validatePseudoScopedBean(Validator.java:879)

      2016-09-01 09:49:20,974 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:138)

      2016-09-01 09:49:20,974 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:155)

      2016-09-01 09:49:20,974 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:518)

      2016-09-01 09:49:20,974 ERROR [stderr] (main) at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:68)

      2016-09-01 09:49:20,974 ERROR [stderr] (main) at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:66)

      2016-09-01 09:49:20,975 ERROR [stderr] (main) at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:63)

      2016-09-01 09:49:20,975 ERROR [stderr] (main) at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:56)

      2016-09-01 09:49:20,975 ERROR [stderr] (main) at java.util.concurrent.FutureTask.run(FutureTask.java:266)

      2016-09-01 09:49:20,975 ERROR [stderr] (main) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

      2016-09-01 09:49:20,975 ERROR [stderr] (main) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

      2016-09-01 09:49:20,975 ERROR [stderr] (main) at java.lang.Thread.run(Thread.java:745)

      2016-09-01 09:49:20,975 ERROR [stderr] (main) at org.jboss.threads.JBossThread.run(JBossThread.java:320)

      2016-09-01 09:49:20,975 ERROR [stderr] (main) Exception 0 :
      2016-09-01 09:49:20,975 ERROR [stderr] (main) org.jboss.weld.exceptions.AmbiguousResolutionException: WELD-001318: Cannot resolve an ambiguous dependency between:
      2016-09-01 09:49:20,975 ERROR [stderr] (main) - Producer Method [StageConfig] with qualifiers [@Any @Default] declared as [[BackedAnnotatedMethod] @Produces @Dependent public org.wildfly.swarm.container.runtime.RuntimeServer.stageConfig()],
      2016-09-01 09:49:20,976 ERROR [stderr] (main) - org.wildfly.swarm.cdi.StageConfigBean@5c769088

      2016-09-01 09:49:20,976 ERROR [stderr] (main) at org.jboss.weld.manager.BeanManagerImpl.resolve(BeanManagerImpl.java:1235)

      2016-09-01 09:49:20,976 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.validatePseudoScopedInjectionPoint(Validator.java:926)

      2016-09-01 09:49:20,976 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:902)

      2016-09-01 09:49:20,976 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:917)

      2016-09-01 09:49:20,976 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.validatePseudoScopedBean(Validator.java:879)

      2016-09-01 09:49:20,976 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:138)

      2016-09-01 09:49:20,976 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:155)

      2016-09-01 09:49:20,976 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:518)

      2016-09-01 09:49:20,976 ERROR [stderr] (main) at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:68)

      2016-09-01 09:49:20,977 ERROR [stderr] (main) at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:66)

      2016-09-01 09:49:20,977 ERROR [stderr] (main) at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:63)

      2016-09-01 09:49:20,977 ERROR [stderr] (main) at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:56)

      2016-09-01 09:49:20,977 ERROR [stderr] (main) at java.util.concurrent.FutureTask.run(FutureTask.java:266)

      2016-09-01 09:49:20,977 ERROR [stderr] (main) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

      2016-09-01 09:49:20,977 ERROR [stderr] (main) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

      2016-09-01 09:49:20,977 ERROR [stderr] (main) at java.lang.Thread.run(Thread.java:745)

      2016-09-01 09:49:20,977 ERROR [stderr] (main) at org.jboss.threads.JBossThread.run(JBossThread.java:320)

      2016-09-01 09:49:20,977 ERROR [stderr] (main) Exception 0 :
      2016-09-01 09:49:20,977 ERROR [stderr] (main) org.jboss.weld.exceptions.AmbiguousResolutionException: WELD-001318: Cannot resolve an ambiguous dependency between:
      2016-09-01 09:49:20,977 ERROR [stderr] (main) - Producer Method [StageConfig] with qualifiers [@Any @Default] declared as [[BackedAnnotatedMethod] @Produces @Dependent public org.wildfly.swarm.container.runtime.RuntimeServer.stageConfig()],
      2016-09-01 09:49:20,978 ERROR [stderr] (main) - org.wildfly.swarm.cdi.StageConfigBean@5c769088

      2016-09-01 09:49:20,978 ERROR [stderr] (main) at org.jboss.weld.manager.BeanManagerImpl.resolve(BeanManagerImpl.java:1235)

      2016-09-01 09:49:20,978 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.validatePseudoScopedInjectionPoint(Validator.java:926)

      2016-09-01 09:49:20,978 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:902)

      2016-09-01 09:49:20,978 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:917)

      2016-09-01 09:49:20,978 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.validatePseudoScopedBean(Validator.java:879)

      2016-09-01 09:49:20,978 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:138)

      2016-09-01 09:49:20,978 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:155)

      2016-09-01 09:49:20,978 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:518)

      2016-09-01 09:49:20,978 ERROR [stderr] (main) at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:68)

      2016-09-01 09:49:20,978 ERROR [stderr] (main) at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:66)

      2016-09-01 09:49:20,979 ERROR [stderr] (main) at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:63)

      2016-09-01 09:49:20,979 ERROR [stderr] (main) at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:56)

      2016-09-01 09:49:20,979 ERROR [stderr] (main) at java.util.concurrent.FutureTask.run(FutureTask.java:266)

      2016-09-01 09:49:20,979 ERROR [stderr] (main) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

      2016-09-01 09:49:20,979 ERROR [stderr] (main) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

      2016-09-01 09:49:20,979 ERROR [stderr] (main) at java.lang.Thread.run(Thread.java:745)

      2016-09-01 09:49:20,979 ERROR [stderr] (main) at org.jboss.threads.JBossThread.run(JBossThread.java:320)

      2016-09-01 09:49:20,979 ERROR [stderr] (main) Exception 0 :
      2016-09-01 09:49:20,979 ERROR [stderr] (main) org.jboss.weld.exceptions.AmbiguousResolutionException: WELD-001318: Cannot resolve an ambiguous dependency between:
      2016-09-01 09:49:20,979 ERROR [stderr] (main) - Producer Method [StageConfig] with qualifiers [@Any @Default] declared as [[BackedAnnotatedMethod] @Produces @Dependent public org.wildfly.swarm.container.runtime.RuntimeServer.stageConfig()],
      2016-09-01 09:49:20,979 ERROR [stderr] (main) - org.wildfly.swarm.cdi.StageConfigBean@5c769088

      2016-09-01 09:49:20,979 ERROR [stderr] (main) at org.jboss.weld.manager.BeanManagerImpl.resolve(BeanManagerImpl.java:1235)

      2016-09-01 09:49:20,980 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.validatePseudoScopedInjectionPoint(Validator.java:926)

      2016-09-01 09:49:20,980 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:902)

      2016-09-01 09:49:20,980 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:917)

      2016-09-01 09:49:20,980 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.validatePseudoScopedBean(Validator.java:879)

      2016-09-01 09:49:20,980 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:138)

      2016-09-01 09:49:20,980 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:155)

      2016-09-01 09:49:20,980 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:518)

      2016-09-01 09:49:20,980 ERROR [stderr] (main) at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:68)

      2016-09-01 09:49:20,980 ERROR [stderr] (main) at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:66)

      2016-09-01 09:49:20,981 ERROR [stderr] (main) at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:63)

      2016-09-01 09:49:20,981 ERROR [stderr] (main) at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:56)

      2016-09-01 09:49:20,981 ERROR [stderr] (main) at java.util.concurrent.FutureTask.run(FutureTask.java:266)

      2016-09-01 09:49:20,981 ERROR [stderr] (main) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

      2016-09-01 09:49:20,981 ERROR [stderr] (main) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

      2016-09-01 09:49:20,981 ERROR [stderr] (main) at java.lang.Thread.run(Thread.java:745)

      2016-09-01 09:49:20,981 ERROR [stderr] (main) at org.jboss.threads.JBossThread.run(JBossThread.java:320)

      2016-09-01 09:49:20,981 ERROR [stderr] (main) Exception 0 :
      2016-09-01 09:49:20,981 ERROR [stderr] (main) org.jboss.weld.exceptions.AmbiguousResolutionException: WELD-001318: Cannot resolve an ambiguous dependency between:
      2016-09-01 09:49:20,981 ERROR [stderr] (main) - Producer Method [StageConfig] with qualifiers [@Any @Default] declared as [[BackedAnnotatedMethod] @Produces @Dependent public org.wildfly.swarm.container.runtime.RuntimeServer.stageConfig()],
      2016-09-01 09:49:20,981 ERROR [stderr] (main) - org.wildfly.swarm.cdi.StageConfigBean@5c769088

      2016-09-01 09:49:20,982 ERROR [stderr] (main) at org.jboss.weld.manager.BeanManagerImpl.resolve(BeanManagerImpl.java:1235)

      2016-09-01 09:49:20,982 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.validatePseudoScopedInjectionPoint(Validator.java:926)

      2016-09-01 09:49:20,982 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:902)

      2016-09-01 09:49:20,982 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:917)

      2016-09-01 09:49:20,982 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.validatePseudoScopedBean(Validator.java:879)

      2016-09-01 09:49:20,982 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:138)

      2016-09-01 09:49:20,982 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:155)

      2016-09-01 09:49:20,983 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:518)

      2016-09-01 09:49:20,983 ERROR [stderr] (main) at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:68)

      2016-09-01 09:49:20,983 ERROR [stderr] (main) at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:66)

      2016-09-01 09:49:20,983 ERROR [stderr] (main) at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:63)

      2016-09-01 09:49:20,983 ERROR [stderr] (main) at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:56)

      2016-09-01 09:49:20,983 ERROR [stderr] (main) at java.util.concurrent.FutureTask.run(FutureTask.java:266)

      2016-09-01 09:49:20,983 ERROR [stderr] (main) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

      2016-09-01 09:49:20,983 ERROR [stderr] (main) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

      2016-09-01 09:49:20,983 ERROR [stderr] (main) at java.lang.Thread.run(Thread.java:745)

      2016-09-01 09:49:20,983 ERROR [stderr] (main) at org.jboss.threads.JBossThread.run(JBossThread.java:320)

      2016-09-01 09:49:20,983 ERROR [stderr] (main) Exception 0 :
      2016-09-01 09:49:20,983 ERROR [stderr] (main) org.jboss.weld.exceptions.AmbiguousResolutionException: WELD-001318: Cannot resolve an ambiguous dependency between:
      2016-09-01 09:49:20,983 ERROR [stderr] (main) - Producer Method [StageConfig] with qualifiers [@Any @Default] declared as [[BackedAnnotatedMethod] @Produces @Dependent public org.wildfly.swarm.container.runtime.RuntimeServer.stageConfig()],
      2016-09-01 09:49:20,984 ERROR [stderr] (main) - org.wildfly.swarm.cdi.StageConfigBean@5c769088

      2016-09-01 09:49:20,984 ERROR [stderr] (main) at org.jboss.weld.manager.BeanManagerImpl.resolve(BeanManagerImpl.java:1235)

      2016-09-01 09:49:20,984 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.validatePseudoScopedInjectionPoint(Validator.java:926)

      2016-09-01 09:49:20,984 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:902)

      2016-09-01 09:49:20,984 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:917)

      2016-09-01 09:49:20,984 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.validatePseudoScopedBean(Validator.java:879)

      2016-09-01 09:49:20,984 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:138)

      2016-09-01 09:49:20,984 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:155)

      2016-09-01 09:49:20,984 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:518)

      2016-09-01 09:49:20,984 ERROR [stderr] (main) at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:68)

      2016-09-01 09:49:20,984 ERROR [stderr] (main) at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:66)

      2016-09-01 09:49:20,984 ERROR [stderr] (main) at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:63)

      2016-09-01 09:49:20,985 ERROR [stderr] (main) at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:56)

      2016-09-01 09:49:20,985 ERROR [stderr] (main) at java.util.concurrent.FutureTask.run(FutureTask.java:266)

      2016-09-01 09:49:20,985 ERROR [stderr] (main) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

      2016-09-01 09:49:20,985 ERROR [stderr] (main) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

      2016-09-01 09:49:20,985 ERROR [stderr] (main) at java.lang.Thread.run(Thread.java:745)

      2016-09-01 09:49:20,985 ERROR [stderr] (main) at org.jboss.threads.JBossThread.run(JBossThread.java:320)

      2016-09-01 09:49:20,985 ERROR [stderr] (main) Exception 0 :
      2016-09-01 09:49:20,985 ERROR [stderr] (main) org.jboss.weld.exceptions.AmbiguousResolutionException: WELD-001318: Cannot resolve an ambiguous dependency between:
      2016-09-01 09:49:20,985 ERROR [stderr] (main) - Producer Method [StageConfig] with qualifiers [@Any @Default] declared as [[BackedAnnotatedMethod] @Produces @Dependent public org.wildfly.swarm.container.runtime.RuntimeServer.stageConfig()],
      2016-09-01 09:49:20,985 ERROR [stderr] (main) - org.wildfly.swarm.cdi.StageConfigBean@5c769088

      2016-09-01 09:49:20,985 ERROR [stderr] (main) at org.jboss.weld.manager.BeanManagerImpl.resolve(BeanManagerImpl.java:1235)

      2016-09-01 09:49:20,985 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.validatePseudoScopedInjectionPoint(Validator.java:926)

      2016-09-01 09:49:20,985 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:902)

      2016-09-01 09:49:20,986 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.reallyValidatePseudoScopedBean(Validator.java:917)

      2016-09-01 09:49:20,986 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.validatePseudoScopedBean(Validator.java:879)

      2016-09-01 09:49:20,986 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:138)

      2016-09-01 09:49:20,986 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:155)

      2016-09-01 09:49:20,986 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:518)

      2016-09-01 09:49:20,986 ERROR [stderr] (main) at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:68)

      2016-09-01 09:49:20,986 ERROR [stderr] (main) at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:66)

      2016-09-01 09:49:20,986 ERROR [stderr] (main) at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:63)

      2016-09-01 09:49:20,986 ERROR [stderr] (main) at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:56)

      2016-09-01 09:49:20,986 ERROR [stderr] (main) at java.util.concurrent.FutureTask.run(FutureTask.java:266)

      2016-09-01 09:49:20,986 ERROR [stderr] (main) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

      2016-09-01 09:49:20,986 ERROR [stderr] (main) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

      2016-09-01 09:49:20,986 ERROR [stderr] (main) at java.lang.Thread.run(Thread.java:745)

      2016-09-01 09:49:20,987 ERROR [stderr] (main) at org.jboss.threads.JBossThread.run(JBossThread.java:320)

      2016-09-01 09:49:20,987 ERROR [stderr] (main) Exception 0 :
      2016-09-01 09:49:20,987 ERROR [stderr] (main) org.jboss.weld.exceptions.DeploymentException: WELD-001409: Ambiguous dependencies for type StageConfig with qualifiers @Default
      2016-09-01 09:49:20,987 ERROR [stderr] (main) at injection point [UnbackedAnnotatedField] @Inject private org.wildfly.swarm.container.runtime.cdi.ConfigurationValueProducer.stageConfig
      2016-09-01 09:49:20,987 ERROR [stderr] (main) at org.wildfly.swarm.container.runtime.cdi.ConfigurationValueProducer.stageConfig(ConfigurationValueProducer.java:0)
      2016-09-01 09:49:20,987 ERROR [stderr] (main) Possible dependencies:
      2016-09-01 09:49:20,987 ERROR [stderr] (main) - Producer Method [StageConfig] with qualifiers [@Any @Default] declared as [[BackedAnnotatedMethod] @Produces @Dependent public org.wildfly.swarm.container.runtime.RuntimeServer.stageConfig()],
      2016-09-01 09:49:20,987 ERROR [stderr] (main) - org.wildfly.swarm.cdi.StageConfigBean@5c769088
      2016-09-01 09:49:20,987 ERROR [stderr] (main)

      2016-09-01 09:49:20,987 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:367)

      2016-09-01 09:49:20,987 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:281)

      2016-09-01 09:49:20,987 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:134)

      2016-09-01 09:49:20,987 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:155)

      2016-09-01 09:49:20,987 ERROR [stderr] (main) at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:518)

      2016-09-01 09:49:20,988 ERROR [stderr] (main) at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:68)

      2016-09-01 09:49:20,988 ERROR [stderr] (main) at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:66)

      2016-09-01 09:49:20,988 ERROR [stderr] (main) at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:63)

      2016-09-01 09:49:20,988 ERROR [stderr] (main) at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:56)

      2016-09-01 09:49:20,988 ERROR [stderr] (main) at java.util.concurrent.FutureTask.run(FutureTask.java:266)

      2016-09-01 09:49:20,988 ERROR [stderr] (main) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

      2016-09-01 09:49:20,988 ERROR [stderr] (main) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

      2016-09-01 09:49:20,988 ERROR [stderr] (main) at java.lang.Thread.run(Thread.java:745)

      2016-09-01 09:49:20,988 ERROR [stderr] (main) at org.jboss.threads.JBossThread.run(JBossThread.java:320)

      2016-09-01 09:49:20,988 ERROR [stderr] (main) "}}

      2016-09-01 09:49:20,988 ERROR [stderr] (main) at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:203)

      2016-09-01 09:49:20,988 ERROR [stderr] (main) at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:77)

      2016-09-01 09:49:20,989 ERROR [stderr] (main) at org.wildfly.swarm.Swarm.deploy(Swarm.java:374)

      2016-09-01 09:49:20,989 ERROR [stderr] (main) at org.wildfly.swarm.Swarm.main(Swarm.java:498)

      2016-09-01 09:49:20,989 ERROR [stderr] (main) ... 7 more

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  heiko.braun Heiko Braun
                  Reporter:
                  andreas.r. Andreas R.
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: