title: WildFly deployment fails - "JBAS014771: Services with missing/unavailable dependencies"
body: <p>I am new to Web services. I took over some development project from another developer.
  Everything was working fine, until I created my own testing project to see how everything fits together. When I reverted back from my testing project to my previous working project, the project compiles but would not start up during deployment. I do not even know where to start looking. </p>
  
  <p>I am using Eclipse Kepler and I deploy to a WildFly server.</p>
  
  <p>The logs show the following error message:</p>
  
  <pre><code>10:39:06,146 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("deploy") failed - address: ([("deployment" =&gt; "JEM-eap.ear")]) - failure description: {
      "JBAS014771: Services with missing/unavailable dependencies" =&gt; [
          "jboss.deployment.subunit.\"JEM-eap.ear\".\"JEM-ui.war\".weld.weldClassIntrospector is missing [jboss.deployment.subunit.\"JEM-eap.ear\".\"JEM-ui.war\".beanmanager]",
          "jboss.deployment.unit.\"JEM-eap.ear\".weld.weldClassIntrospector is missing [jboss.deployment.unit.\"JEM-eap.ear\".beanmanager]"
      ],
      "JBAS014879: One or more services were unable to start due to one or more indirect dependencies not being available." =&gt; {
          "Services that were unable to start:" =&gt; [
              "jboss.deployment.subunit.\"JEM-eap.ear\".\"JEM-ejb.jar\".POST_MODULE",
              "jboss.deployment.subunit.\"JEM-eap.ear\".\"JEM-ui.war\".INSTALL",
              "jboss.deployment.unit.\"JEM-eap.ear\".INSTALL",
              "jboss.persistenceunit.\"JEM-eap.ear/JEM-ejb.jar#JPA-ejb\".__FIRST_PHASE__"
          ],
          "Services that may be the cause:" =&gt; [
              "jboss.deployment.subunit.\"JEM-eap.ear\".\"JEM-ui.war\".beanmanager",
              "jboss.deployment.unit.\"JEM-eap.ear\".beanmanager",
              "jboss.jdbc-driver.sqljdbc4_jar"
          ]
      }
  }
  
  10:39:06,146 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("add") failed - address: ([
      ("subsystem" =&gt; "datasources"),
      ("data-source" =&gt; "JascoEnergy")
  ]) - failure description: {"JBAS014771: Services with missing/unavailable dependencies" =&gt; [
      "jboss.driver-demander.java:/jdbc/JascoEnergy is missing [jboss.jdbc-driver.sqljdbc4_jar]",
      "jboss.data-source.java:/jdbc/JascoEnergy is missing [jboss.jdbc-driver.sqljdbc4_jar]"
  ]}
  10:39:06,146 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("add") failed - address: ([
      ("subsystem" =&gt; "datasources"),
      ("data-source" =&gt; "JascoEnergy")
  ]) - failure description: {
      "JBAS014771: Services with missing/unavailable dependencies" =&gt; [
          "jboss.driver-demander.java:/jdbc/JascoEnergy is missing [jboss.jdbc-driver.sqljdbc4_jar]",
          "jboss.data-source.java:/jdbc/JascoEnergy is missing [jboss.jdbc-driver.sqljdbc4_jar]"
      ],
      "JBAS014879: One or more services were unable to start due to one or more indirect dependencies not being available." =&gt; {
          "Services that were unable to start:" =&gt; [
              "jboss.data-source.reference-factory.JascoEnergy",
              "jboss.naming.context.java.jdbc.JascoEnergy"
          ],
          "Services that may be the cause:" =&gt; [
              "jboss.deployment.subunit.\"JEM-eap.ear\".\"JEM-ui.war\".beanmanager",
              "jboss.deployment.unit.\"JEM-eap.ear\".beanmanager",
              "jboss.jdbc-driver.sqljdbc4_jar"
          ]
      }
  }
  </code></pre>