title: JavaEE 6: Can't compile @Resource(lookup="")
body: <p>I am trying to use <code>@Resource(lookup="")</code> to look up a resource configured in Glassfish 3.1. I am using Eclipse 3.5. </p>
  
  <p>I've set <code>-Djava.endorsed.dirs=${GLASSFISH_HOME}/modules/endorsed</code> and added <code>javax.annotation.jar</code> to my projects build bath but still it doesn't compile.</p>
  
  <p>I am not able to see the lookup parameter with <code>@Resource</code>.</p>
  
  <p>Could someone help me understand why am I not getting the lookup parameter with <code>@Resource</code>?</p>