title: Missing dependency JBoss AS 7.1.1
body: <p>I know there is a lots of topics on this error, but I am still having some troubles with it.</p>
  
  <p>I'm actually trying to deploy a war on JBoss 7.1.1 and unfortunately I'm getting this error again and again:</p>
  
  <pre><code>JBAS014775:    New missing/unsatisfied dependencies:
    service jboss.naming.context.java.module.myapplication.myapplication.env.jdbc_app (missing) dependents: [service jboss.naming.context.java.module.myapplication.myapplication.env.jdbc.PKBNM01]
  </code></pre>
  
  <p>This is how my DS is defined in standalone.xml (I'm well connected to my DB):</p>
  
  <pre><code>&lt;datasource jta="false" jndi-name="java:/jdbc/jdbc_app" pool-name="jdbc_app" enabled="true" use-ccm="false"&gt;
      &lt;connection-url&gt;jdbc:oracle:thin:@localhost:1521:xe&lt;/connection-url&gt;
      &lt;driver-class&gt;oracle.jdbc.OracleDriver&lt;/driver-class&gt;
      &lt;driver&gt;ojdbc6.jar&lt;/driver&gt;
      &lt;security&gt;
          &lt;user-name&gt;ADMIN&lt;/user-name&gt;
          &lt;password&gt;PASSWORD&lt;/password&gt;
      &lt;/security&gt;
      &lt;validation&gt;
          &lt;validate-on-match&gt;false&lt;/validate-on-match&gt;
          &lt;background-validation&gt;false&lt;/background-validation&gt;
      &lt;/validation&gt;
      &lt;statement&gt;
          &lt;share-prepared-statements&gt;false&lt;/share-prepared-statements&gt;
      &lt;/statement&gt;
  &lt;/datasource&gt;
  </code></pre>
  
  <p>This is the jboss-web.xml:</p>
  
  <pre><code>&lt;jboss-web&gt;
         &lt;resource-ref&gt;
             &lt;res-ref-name&gt;jdbc/PKBNM01&lt;/res-ref-name&gt;
             &lt;jndi-name&gt;jdbc_app&lt;/jndi-name&gt;
         &lt;/resource-ref&gt;
         &lt;context-root&gt;myApplication&lt;/context-root&gt;
   &lt;/jboss-web&gt;
  </code></pre>
  
  <p>And this is my web.xml:</p>
  
  <pre><code>&lt;resource-ref&gt;
      &lt;res-ref-name&gt;jdbc/PKBNM01&lt;/res-ref-name&gt;
      &lt;res-type&gt;javax.sql.DataSource&lt;/res-type&gt;
      &lt;res-auth&gt;Container&lt;/res-auth&gt;
  &lt;/resource-ref&gt;
  </code></pre>
  
  <p>If someone could explain me what I did wrong or even just give me a clue, it would be very welcomed...</p>