6 Replies Latest reply on May 22, 2015 12:51 PM by Daniel Christen

    Unsatisfied Dependencies, CDI injection

    Daniel Christen Newbie

      Hello

       

      I'm experimenting with the Wildfly Quickstart EJB-IN-EAR Project (quickstart/ejb-in-ear at master · wildfly/quickstart · GitHub). I'd like that the Session Beans implements an interface. In the web layer I'd like to access the Session Bean via this interface and in aid of CDI (see code below). Always when I try to deploy the modified project to my Wildfly 8 Application Server the application run into the following error "Unsatisfied dependencies for type IGreeterEJB with qualifiers @Default".

       

      Can anyone help me?

       

       

       

      Project Artifacts

       

      Java Files

      Session Bean (GreeterEJB)

      package org.jboss.as.quickstarts.ear.ejb;
      import javax.ejb.Stateful;
      import org.jboss.as.quickstarts.ear.common.IGreeterEJB;
      @Stateful
      public class GreeterEJB implements IGreeterEJB{
      
        @Override
          public String sayHello(String name) {
              return "Hello " + name;
          }
      }
      
      

       

      Session Interface (IGreeterEJB):

      package org.jboss.as.quickstarts.ear.common;
      public interface IGreeterEJB {
          String sayHello(String name);
      }
      
      

       

      Managed Bean

      package org.jboss.as.quickstarts.ear.controller;
      import java.io.Serializable;
      import javax.enterprise.context.SessionScoped;
      import javax.inject.Inject;
      import javax.inject.Named;
      import org.jboss.as.quickstarts.ear.common.IGreeterEJB;
      @Named("greeter")
      @SessionScoped
      public class Greeter implements Serializable {
          @Inject
          private IGreeterEJB greeterEJB;
          private String message;
          public void setName(String name) {
              message = greeterEJB.sayHello(name);
          }
          public String getMessage() {
              return message;
          }
      }
      
      

       

      POM Files

      root pom:

      <?xml version="1.0"?>
      <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>org.wildfly.quickstarts</groupId>
          <artifactId>wildfly-ejb-in-ear</artifactId>
          <version>9.0.0-SNAPSHOT</version>
          <name>WildFly Quickstarts: EJB and War in an Ear - Root pom</name>
          <description>WildFly Quickstarts: EJB and War in an Root pom</description>
          <packaging>pom</packaging>
          <url>http://wildfly.org</url>
          <modules>
              <module>ejb</module>
              <module>web</module>
              <module>ear</module>
              <module>common</module>
          </modules>
          <properties>
              <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
              <version.wildfly.maven.plugin>1.0.2.Final</version.wildfly.maven.plugin>
              <version.wildfly>9.0.0.Alpha1</version.wildfly>
              <version.jboss.spec.javaee.7.0>1.0.0.Final</version.jboss.spec.javaee.7.0>
              <version.compiler.plugin>3.1</version.compiler.plugin>
              <version.ear.plugin>2.6</version.ear.plugin>
              <version.ejb.plugin>2.3</version.ejb.plugin>
              <version.war.plugin>2.5</version.war.plugin>
              <maven.compiler.target>1.7</maven.compiler.target>
              <maven.compiler.source>1.7</maven.compiler.source>
          </properties>
          <dependencyManagement>
              <dependencies>
                  <dependency>
                      <groupId>org.wildfly.quickstarts</groupId>
                      <artifactId>wildfly-ejb-in-ear-common</artifactId>
                      <version>${project.version}</version>
                      <type>jar</type>
                  </dependency>
                  <dependency>
                      <groupId>org.wildfly.quickstarts</groupId>
                      <artifactId>wildfly-ejb-in-ear-ejb</artifactId>
                      <version>${project.version}</version>
                      <type>ejb</type>
                  </dependency>
                  <dependency>
                      <groupId>org.wildfly.quickstarts</groupId>
                      <artifactId>wildfly-ejb-in-ear-web</artifactId>
                      <version>${project.version}</version>
                      <type>war</type>
                      <scope>compile</scope>
                  </dependency>
                  <dependency>
                      <groupId>org.jboss.spec</groupId>
                      <artifactId>jboss-javaee-7.0</artifactId>
                      <version>${version.jboss.spec.javaee.7.0}</version>
                      <type>pom</type>
                      <scope>import</scope>
                  </dependency>
              </dependencies>
          </dependencyManagement>
          <build>
              <plugins>
                  <plugin>
                      <artifactId>maven-compiler-plugin</artifactId>
                      <version>${version.compiler.plugin}</version>
                      <configuration>
                          <source>${maven.compiler.source}</source>
                          <target>${maven.compiler.target}</target>
                      </configuration>
                  </plugin>
                  <plugin>
                      <groupId>org.wildfly.plugins</groupId>
                      <artifactId>wildfly-maven-plugin</artifactId>
                      <version>${version.wildfly.maven.plugin}</version>
                      <configuration>
                          <skip>true</skip>
                      </configuration>
                  </plugin>
              </plugins>
          </build>
      </project>
      
      


      ear pom:

      <?xml version="1.0"?>
      <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>
          <parent>
              <artifactId>wildfly-ejb-in-ear</artifactId>
              <groupId>org.wildfly.quickstarts</groupId>
              <version>9.0.0-SNAPSHOT</version>
          </parent>
          <artifactId>wildfly-ejb-in-ear-ear</artifactId>
          <packaging>ear</packaging>
          <name>WildFly Quickstarts: EJB and War in an Ear - EAR</name>
          <description>WildFly Quickstarts: EJB and WAR in an EAR - EAR</description>
          <dependencies>
              <!-- Dependencies on the ejb and web modules so that they can be found by the ear plugin -->
              <dependency>
                  <groupId>org.wildfly.quickstarts</groupId>
                  <artifactId>wildfly-ejb-in-ear-web</artifactId>
                  <type>war</type>
              </dependency>
              <dependency>
                  <groupId>org.wildfly.quickstarts</groupId>
                  <artifactId>wildfly-ejb-in-ear-ejb</artifactId>
                  <type>ejb</type>
              </dependency>
          </dependencies>
          <build>
            <finalName>${project.artifactId}</finalName>
              <plugins>
                  <!-- Ear plugin -->
                  <plugin>
                      <groupId>org.apache.maven.plugins</groupId>
                      <artifactId>maven-ear-plugin</artifactId>
                      <version>${version.ear.plugin}</version>
                      <configuration>
                          <version>6</version>
                          <defaultLibBundleDir>lib</defaultLibBundleDir>
                          <modules>
                              <webModule>
                                  <groupId>org.wildfly.quickstarts</groupId>
                                  <artifactId>wildfly-ejb-in-ear-web</artifactId>
                                  <contextRoot>/wildfly-ejb-in-ear</contextRoot>
                              </webModule>
                          </modules>
                          <fileNameMapping>no-version</fileNameMapping>
                      </configuration>
                  </plugin>
                  <!-- WildFly plugin to deploy ear -->
                  <plugin>
                      <groupId>org.wildfly.plugins</groupId>
                      <artifactId>wildfly-maven-plugin</artifactId>
                      <version>${version.wildfly.maven.plugin}</version>
                      <configuration>
                          <filename>${project.artifactId}.ear</filename>
                          <skip>false</skip>
                      </configuration>
                  </plugin>
              </plugins>
          </build>
      </project>
      
      


      ejb pom:

      <?xml version="1.0"?>
      <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>
          <parent>
              <artifactId>wildfly-ejb-in-ear</artifactId>
              <groupId>org.wildfly.quickstarts</groupId>
              <version>9.0.0-SNAPSHOT</version>
          </parent>
          <artifactId>wildfly-ejb-in-ear-ejb</artifactId>
          <name>WildFly Quickstarts: EJB and War in an Ear - EJB</name>
          <description>WildFly Quickstarts: EJB and War in an Ear - EJB</description>  
          <dependencies>
              <dependency>
                  <groupId>org.wildfly.quickstarts</groupId>
                  <artifactId>wildfly-ejb-in-ear-common</artifactId>
                  <type>jar</type>
              </dependency>
              <dependency>
                  <groupId>javax.enterprise</groupId>
                  <artifactId>cdi-api</artifactId>
                  <scope>provided</scope>
              </dependency>
              <dependency>
                  <groupId>org.jboss.spec.javax.annotation</groupId>
                  <artifactId>jboss-annotations-api_1.2_spec</artifactId>
                  <scope>provided</scope>
              </dependency>
              <dependency>
                  <groupId>org.jboss.spec.javax.ejb</groupId>
                  <artifactId>jboss-ejb-api_3.2_spec</artifactId>
                  <scope>provided</scope>
              </dependency>
          </dependencies>
          <build>
              <finalName>${project.artifactId}</finalName>
              <plugins>
                  <plugin>
                      <artifactId>maven-ejb-plugin</artifactId>
                      <version>${version.ejb.plugin}</version>
                      <configuration>
                          <!-- Tell Maven we are using EJB 3.1 -->
                          <ejbVersion>3.1</ejbVersion>
                      </configuration>
                  </plugin>
              </plugins>
          </build>
      </project>
      
      

       

      web pom:

      <?xml version="1.0"?>
      <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>
          <parent>
              <artifactId>wildfly-ejb-in-ear</artifactId>
              <groupId>org.wildfly.quickstarts</groupId>
              <version>9.0.0-SNAPSHOT</version>
          </parent>
          <artifactId>wildfly-ejb-in-ear-web</artifactId>
          <packaging>war</packaging>
          <name>WildFly Quickstarts: EJB and War in an Ear - WEB</name>
          <description>WildFly Quickstarts: EJB and War in an Ear - WEB</description>
          <dependencies>
              <dependency>
                  <groupId>org.wildfly.quickstarts</groupId>
                  <artifactId>wildfly-ejb-in-ear-common</artifactId>
                  <type>jar</type>
              </dependency>
              <!-- Import the CDI API, we use provided scope as the API is included in JBoss WildFly -->
              <dependency>
                  <groupId>javax.enterprise</groupId>
                  <artifactId>cdi-api</artifactId>
                  <scope>provided</scope>
              </dependency>
              <!-- Import the Common Annotations API (JSR-250), we use provided scope
                  as the API is included in JBoss WildFly -->
              <dependency>
                  <groupId>org.jboss.spec.javax.annotation</groupId>
                  <artifactId>jboss-annotations-api_1.2_spec</artifactId>
                  <scope>provided</scope>
              </dependency>
              <!-- Import the JSF API, we use provided scope as the API is included in JBoss WildFly -->
              <dependency>
                  <groupId>org.jboss.spec.javax.faces</groupId>
                  <artifactId>jboss-jsf-api_2.2_spec</artifactId>
                  <scope>provided</scope>
              </dependency>
              <!-- Import the EJB API, we use provided scope as the API is included in
                    JBoss WildFly -->
              <dependency>
                  <groupId>org.jboss.spec.javax.ejb</groupId>
                  <artifactId>jboss-ejb-api_3.2_spec</artifactId>
                  <scope>provided</scope>
              </dependency>
          </dependencies>
          <build>
              <!-- Set the name of the war, used as the context root when the app
                  is deployed -->
              <finalName>${project.artifactId}</finalName>
              <plugins>
                  <plugin>
                      <artifactId>maven-war-plugin</artifactId>
                      <version>${version.war.plugin}</version>
                      <configuration>
                          <!-- Java EE 7 doesn't require web.xml, Maven needs to catch up! -->
                          <failOnMissingWebXml>false</failOnMissingWebXml>
                      </configuration>
                  </plugin>
              </plugins>
          </build>
      </project>
      
      

       


      Project structure:

      -ejb-in-ear/

      -common/

          -src/main/java/org/jboss/as/quickstarts/ear/common/

                -IGreeterEJB.java

          -pom.xml

      -ear/

          -pom.xml

      -ejb/

          -src/main

                -java/org/jboss/as/quickstarts/ear/ejb/

                    -GreeterEJB.java

          -pom.xml

      -web/

          -src/main

                -java/org/jboss/as/quickstarts/ear/web/

                    -Greeter.java

                -webapp/

                    -WEB-INF/

                          -beans.xml

                          -faces-config.xml

                    -index.xhtml

          -pom.xml

      -pom.xml

       

      Stacktrace

       

      18:20:24,483 INFO  [org.jboss.weld.deployer] (MSC service thread 1-2) JBAS016009: Stopping weld service for deployment wildfly-ejb-in-ear-ear.ear
      18:20:24,512 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment null (runtime-name: wildfly-ejb-in-ear-ejb.jar) in 32ms
      18:20:24,515 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877: Stopped deployment null (runtime-name: wildfly-ejb-in-ear-web.war) in 35ms
      18:20:24,517 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877: Stopped deployment wildfly-ejb-in-ear-ear.ear (runtime-name: wildfly-ejb-in-ear-ear.ear) in 37ms
      18:20:24,519 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015876: Starting deployment of "wildfly-ejb-in-ear-ear.ear" (runtime-name: "wildfly-ejb-in-ear-ear.ear")
      18:20:24,535 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015876: Starting deployment of "null" (runtime-name: "wildfly-ejb-in-ear-ejb.jar")
      18:20:24,535 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "null" (runtime-name: "wildfly-ejb-in-ear-web.war")
      18:20:24,613 INFO  [org.jboss.weld.deployer] (MSC service thread 1-6) JBAS016002: Processing weld deployment wildfly-ejb-in-ear-ear.ear
      18:20:24,642 INFO  [org.jboss.weld.deployer] (MSC service thread 1-6) JBAS016002: Processing weld deployment wildfly-ejb-in-ear-web.war
      18:20:24,651 INFO  [org.jboss.weld.deployer] (MSC service thread 1-7) JBAS016002: Processing weld deployment wildfly-ejb-in-ear-ejb.jar
      18:20:24,654 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-7) JNDI bindings for session bean named GreeterEJB in deployment unit subdeployment "wildfly-ejb-in-ear-ejb.jar" of deployment "wildfly-ejb-in-ear-ear.ear" are as follows:
      
      
        java:global/wildfly-ejb-in-ear-ear/wildfly-ejb-in-ear-ejb/GreeterEJB!org.jboss.as.quickstarts.ear.common.IGreeterEJB
        java:app/wildfly-ejb-in-ear-ejb/GreeterEJB!org.jboss.as.quickstarts.ear.common.IGreeterEJB
        java:module/GreeterEJB!org.jboss.as.quickstarts.ear.common.IGreeterEJB
        java:global/wildfly-ejb-in-ear-ear/wildfly-ejb-in-ear-ejb/GreeterEJB
        java:app/wildfly-ejb-in-ear-ejb/GreeterEJB
        java:module/GreeterEJB
      
      
      18:20:24,661 INFO  [org.jboss.weld.deployer] (MSC service thread 1-7) JBAS016005: Starting Services for CDI deployment: wildfly-ejb-in-ear-ear.ear
      18:20:24,670 INFO  [org.jboss.weld.deployer] (MSC service thread 1-2) JBAS016008: Starting weld service for deployment wildfly-ejb-in-ear-ear.ear
      18:20:25,130 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.unit."wildfly-ejb-in-ear-ear.ear".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."wildfly-ejb-in-ear-ear.ear".WeldStartService: Failed to start service
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904) [jboss-msc-1.2.0.Final.jar:1.2.0.Final]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_25]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_25]
        at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]
      Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type IGreeterEJB with qualifiers @Default
        at injection point [BackedAnnotatedField] @Inject private org.jboss.as.quickstarts.ear.controller.Greeter.greeterEJB
        at org.jboss.as.quickstarts.ear.controller.Greeter.greeterEJB(Greeter.java:0)
      
      
        at org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:368)
        at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:289)
        at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:135)
        at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:166)
        at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:514)
        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:60)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:53)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [rt.jar:1.7.0_25]
        at java.util.concurrent.FutureTask.run(FutureTask.java:166) [rt.jar:1.7.0_25]
        ... 3 more
      
      
      18:20:25,139 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 7) JBAS014613: Operation ("redeploy") failed - address: ([("deployment" => "wildfly-ejb-in-ear-ear.ear")]) - failure description: {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"wildfly-ejb-in-ear-ear.ear\".WeldStartService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"wildfly-ejb-in-ear-ear.ear\".WeldStartService: Failed to start service
          Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type IGreeterEJB with qualifiers @Default
        at injection point [BackedAnnotatedField] @Inject private org.jboss.as.quickstarts.ear.controller.Greeter.greeterEJB
        at org.jboss.as.quickstarts.ear.controller.Greeter.greeterEJB(Greeter.java:0)
      "}}
      18:20:25,141 ERROR [org.jboss.as.server] (management-handler-thread - 7) JBAS015860: Redeploy of deployment "wildfly-ejb-in-ear-ear.ear" was rolled back with the following failure message:
      {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"wildfly-ejb-in-ear-ear.ear\".WeldStartService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"wildfly-ejb-in-ear-ear.ear\".WeldStartService: Failed to start service
          Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type IGreeterEJB with qualifiers @Default
        at injection point [BackedAnnotatedField] @Inject private org.jboss.as.quickstarts.ear.controller.Greeter.greeterEJB
        at org.jboss.as.quickstarts.ear.controller.Greeter.greeterEJB(Greeter.java:0)
      "}}
      18:20:25,143 INFO  [org.jboss.as.controller] (management-handler-thread - 7) JBAS014774: Service status report
      JBAS014775:    New missing/unsatisfied dependencies:
            service jboss.deployment.subunit."wildfly-ejb-in-ear-ear.ear"."wildfly-ejb-in-ear-web.war".component."javax.faces.webapp.FacetTag".WeldInstantiator (unavailable) dependents: [service jboss.deployment.subunit."wildfly-ejb-in-ear-ear.ear"."wildfly-ejb-in-ear-web.war".component."javax.faces.webapp.FacetTag".START]
            service jboss.deployment.subunit."wildfly-ejb-in-ear-ear.ear"."wildfly-ejb-in-ear-web.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".CREATE (unavailable) dependents: [service jboss.deployment.subunit."wildfly-ejb-in-ear-ear.ear"."wildfly-ejb-in-ear-web.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".START]
            service jboss.deployment.subunit."wildfly-ejb-in-ear-ear.ear"."wildfly-ejb-in-ear-web.war".component."org.jboss.weld.servlet.WeldInitialListener".WeldInstantiator (unavailable) dependents: [service jboss.deployment.subunit."wildfly-ejb-in-ear-ear.ear"."wildfly-ejb-in-ear-web.war".component."org.jboss.weld.servlet.WeldInitialListener".START]
      JBAS014776:    Newly corrected services:
            service jboss.deployment.unit."wildfly-ejb-in-ear-ear.ear".WeldStartService (new available)
      JBAS014777:  Services which failed to start:      service jboss.deployment.unit."wildfly-ejb-in-ear-ear.ear".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."wildfly-ejb-in-ear-ear.ear".WeldStartService: Failed to start service
            service jboss.deployment.unit."tp-ear-1.0-SNAPSHOT.ear".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."tp-ear-1.0-SNAPSHOT.ear".WeldStartService: Failed to start service
            service jboss.deployment.unit."wildfly-ejb-in-ear-ear.ear".WeldStartService
      
      
      18:20:29,462 INFO  [org.jboss.as.repository] (management-handler-thread - 8) JBAS014900: Content added at location /Applications/wildfly-8.0.0.Final/standalone/data/content/4b/6c0af831d75278c8821fe89aaf5f4cc0f7e09b/content
      18:20:29,466 INFO  [org.jboss.weld.deployer] (MSC service thread 1-2) JBAS016009: Stopping weld service for deployment wildfly-ejb-in-ear-ear.ear
      18:20:29,483 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015877: Stopped deployment null (runtime-name: wildfly-ejb-in-ear-ejb.jar) in 19ms
      18:20:29,488 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015877: Stopped deployment null (runtime-name: wildfly-ejb-in-ear-web.war) in 25ms
      18:20:29,491 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015877: Stopped deployment wildfly-ejb-in-ear-ear.ear (runtime-name: wildfly-ejb-in-ear-ear.ear) in 28ms
      18:20:29,493 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015876: Starting deployment of "wildfly-ejb-in-ear-ear.ear" (runtime-name: "wildfly-ejb-in-ear-ear.ear")
      18:20:29,510 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015876: Starting deployment of "null" (runtime-name: "wildfly-ejb-in-ear-web.war")
      18:20:29,510 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "null" (runtime-name: "wildfly-ejb-in-ear-ejb.jar")
      18:20:29,567 INFO  [org.jboss.weld.deployer] (MSC service thread 1-7) JBAS016002: Processing weld deployment wildfly-ejb-in-ear-ear.ear
      18:20:29,588 INFO  [org.jboss.weld.deployer] (MSC service thread 1-7) JBAS016002: Processing weld deployment wildfly-ejb-in-ear-ejb.jar
      18:20:29,590 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-7) JNDI bindings for session bean named GreeterEJB in deployment unit subdeployment "wildfly-ejb-in-ear-ejb.jar" of deployment "wildfly-ejb-in-ear-ear.ear" are as follows:
      
      
        java:global/wildfly-ejb-in-ear-ear/wildfly-ejb-in-ear-ejb/GreeterEJB!org.jboss.as.quickstarts.ear.common.IGreeterEJB
        java:app/wildfly-ejb-in-ear-ejb/GreeterEJB!org.jboss.as.quickstarts.ear.common.IGreeterEJB
        java:module/GreeterEJB!org.jboss.as.quickstarts.ear.common.IGreeterEJB
        java:global/wildfly-ejb-in-ear-ear/wildfly-ejb-in-ear-ejb/GreeterEJB
        java:app/wildfly-ejb-in-ear-ejb/GreeterEJB
        java:module/GreeterEJB
      
      
      18:20:29,591 INFO  [org.jboss.weld.deployer] (MSC service thread 1-2) JBAS016002: Processing weld deployment wildfly-ejb-in-ear-web.war
      18:20:29,605 INFO  [org.jboss.weld.deployer] (MSC service thread 1-2) JBAS016005: Starting Services for CDI deployment: wildfly-ejb-in-ear-ear.ear
      18:20:29,617 INFO  [org.jboss.weld.deployer] (MSC service thread 1-5) JBAS016008: Starting weld service for deployment wildfly-ejb-in-ear-ear.ear
      18:20:30,009 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC000001: Failed to start service jboss.deployment.unit."wildfly-ejb-in-ear-ear.ear".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."wildfly-ejb-in-ear-ear.ear".WeldStartService: Failed to start service
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904) [jboss-msc-1.2.0.Final.jar:1.2.0.Final]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_25]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_25]
        at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]
      Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type IGreeterEJB with qualifiers @Default
        at injection point [BackedAnnotatedField] @Inject private org.jboss.as.quickstarts.ear.controller.Greeter.greeterEJB
        at org.jboss.as.quickstarts.ear.controller.Greeter.greeterEJB(Greeter.java:0)
      
      
        at org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:368)
        at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:289)
        at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:135)
        at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:166)
        at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:514)
        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:60)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:53)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [rt.jar:1.7.0_25]
        at java.util.concurrent.FutureTask.run(FutureTask.java:166) [rt.jar:1.7.0_25]
        ... 3 more
      
      
      18:20:30,016 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 8) JBAS014613: Operation ("redeploy") failed - address: ([("deployment" => "wildfly-ejb-in-ear-ear.ear")]) - failure description: {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"wildfly-ejb-in-ear-ear.ear\".WeldStartService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"wildfly-ejb-in-ear-ear.ear\".WeldStartService: Failed to start service
          Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type IGreeterEJB with qualifiers @Default
        at injection point [BackedAnnotatedField] @Inject private org.jboss.as.quickstarts.ear.controller.Greeter.greeterEJB
        at org.jboss.as.quickstarts.ear.controller.Greeter.greeterEJB(Greeter.java:0)
      "}}
      18:20:30,018 ERROR [org.jboss.as.server] (management-handler-thread - 8) JBAS015860: Redeploy of deployment "wildfly-ejb-in-ear-ear.ear" was rolled back with the following failure message:
      {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"wildfly-ejb-in-ear-ear.ear\".WeldStartService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"wildfly-ejb-in-ear-ear.ear\".WeldStartService: Failed to start service
          Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type IGreeterEJB with qualifiers @Default
        at injection point [BackedAnnotatedField] @Inject private org.jboss.as.quickstarts.ear.controller.Greeter.greeterEJB
        at org.jboss.as.quickstarts.ear.controller.Greeter.greeterEJB(Greeter.java:0)
      "}}
      18:20:30,020 INFO  [org.jboss.as.controller] (management-handler-thread - 8) JBAS014774: Service status report
      JBAS014775:    New missing/unsatisfied dependencies:
            service jboss.deployment.unit."wildfly-ejb-in-ear-ear.ear".WeldStartService (unavailable) dependents: [service jboss.deployment.unit."wildfly-ejb-in-ear-ear.ear".CdiValidatorFactoryService]
      JBAS014777:  Services which failed to start:      service jboss.deployment.unit."wildfly-ejb-in-ear-ear.ear".WeldStartService
            service jboss.deployment.unit."tp-ear-1.0-SNAPSHOT.ear".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."tp-ear-1.0-SNAPSHOT.ear".WeldStartService: Failed to start service
            service jboss.deployment.unit."wildfly-ejb-in-ear-ear.ear".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."wildfly-ejb-in-ear-ear.ear".WeldStartService: Failed to start service
      
      
      
      
      
      
      
      
      

       

       

      Additional infos

      • AS: Wildfly 8.0.2