title: Issue with resource-ref om web.xml - Failed to process bindings for metadata
body: <p>I have resource-ref to the datasource in my deployment descriptor. </p>
  
  <p><strong>web.xml</strong></p>
  
  <pre><code>    &lt;resource-ref&gt;
             &lt;description&gt;&lt;/description&gt;
             &lt;res-ref-name&gt;jdbc/myAppDS&lt;/res-ref-name&gt;
             &lt;res-type&gt;javax.sql.DataSource&lt;/res-type&gt;
             &lt;res-auth&gt;Application&lt;/res-auth&gt;
             &lt;res-sharing-scope&gt;Unshareable&lt;/res-sharing-scope&gt;
  &lt;/resource-ref&gt;
  </code></pre>
  
  <p>When I try to publish the ear in my local RAD - websphere environment, I'm getting below exception.</p>
  
  <blockquote>
    <p>Caused by: com.ibm.wsspi.injectionengine.InjectionException: CWNEN0044E: <strong>A resource reference binding could not be found for the following resource references [jdbc/myAppDS], defined for the MyApp Web Application component.</strong> 
    at com.ibm.wsspi.injectionengine.InjectionProcessor.collectInjectionNBindingData(InjectionProcessor.java:1042)
        at com.ibm.ws.injectionengine.InjectionEngineImpl.processBindings(InjectionEngineImpl.java:516)
        ... 77 more</p>
  </blockquote>
  
  <p>datasource myAppDS is registered with the Websphere and test connection is also successful. Is there any reason why the war is unable to find the resource?</p>