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

HTTPS and CDI in combination

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Out of Date
    • 2016.12.0
    • 2017.2.0
    • None
    • None
    • 2017-Jan-A
    • 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)

      Attachments

        Issue Links

          Activity

            People

              kfinniga@redhat.com Ken Finnigan
              maxant_jira Ant Kutschera (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: