Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Out of Date
    • Affects Version/s: 2016.12.0
    • Fix Version/s: 2017.2.0
    • Component/s: None
    • Labels:
      None
    • Sprint:
      2017-Jan-A
    • Steps to Reproduce:
      Hide

      1) clone wildfly-swarm-examples project.
      2) git checkout 2016.12.0
      3) cd jaxrs/jaxrs-shrinkwrap-https
      4) mvn clean install => this shows that everything works
      5) edit pom.xml and add the following dependency:

      <dependency>
      <groupId>org.wildfly.swarm</groupId>
      <artifactId>cdi</artifactId>
      </dependency>

      6) mvn clean install

      Fails with the error shown in the description. The same is true if attempting to start Main from the IDE, e.g. IntelliJ.

      NB Swarm starts up without problems when building with "mvn clean install -DskipTests" and then executing the uberjar with "java -jar target/xxx".

      Show
      1) clone wildfly-swarm-examples project. 2) git checkout 2016.12.0 3) cd jaxrs/jaxrs-shrinkwrap-https 4) mvn clean install => this shows that everything works 5) edit pom.xml and add the following dependency: <dependency> <groupId>org.wildfly.swarm</groupId> <artifactId>cdi</artifactId> </dependency> 6) mvn clean install Fails with the error shown in the description. The same is true if attempting to start Main from the IDE, e.g. IntelliJ. NB Swarm starts up without problems when building with "mvn clean install -DskipTests" and then executing the uberjar with "java -jar target/xxx".

      Description

      Adding CDI to jaxrs-shrinkwrap-https example causes it to fail. Error is:

      2016-12-11 23:07:15,338 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.unit."myapp.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."myapp.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: WELD-001408: Unsatisfied dependencies for type SocketBindingGroup with qualifiers @Named
      at injection point [BackedAnnotatedField] @Inject @Named private org.wildfly.swarm.management.runtime.ManagementSocketBindingsCustomizer.group
      at org.wildfly.swarm.management.runtime.ManagementSocketBindingsCustomizer.group(ManagementSocketBindingsCustomizer.java:0)

      at org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:359)
      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)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  kenfinni Ken Finnigan
                  Reporter:
                  maxant Ant Kutschera
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: