3 Replies Latest reply on Jan 19, 2017 10:25 AM by mmielniczek

    Management dependency doesn't work with CDI in Wildfly swarm application

    mmielniczek

      Hi,

      I faced a problem with probably some dependency incompatibility. When management and cdi artifacts of org.wildfly.swarm are both used then I got error:

      2017-01-11 10:01:06,698 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC000001: Failed to start service jboss.deployment.unit."CDIArquillianTest.jar".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."CDIArquillianTest.jar".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: java.lang.TypeNotPresentException: Type org.wildfly.swarm.security.SecurityFraction not present

       

      It is described here with source code and details:

      java - Wildfly Swarm SecurityFraction not present in Arquillian test - Stack Overflow

       

      Example is based on arquilian unit test.

       

      Please support here to solve the issue/bug.