The javax.annotation.Resource being used during compilation is not the latest version of JSR-250. If you are compiling with Ant, override the compiler's endorsed directory to point to your glassfishv3 endorsed directory
[pre]
<javac destdir="${classesdir}"
classpathref="run.class.path"
debug="on"
deprecation="on"
verbose="false">
<compilerarg value="-Djava.endorsed.dirs=${GLASSFISH_HOME}/modules/endorsed"/>
<src path="${srcdir}"/>
</javac>
[/pre]
Then you should be able to use @Resource(lookup="somename")
[Message sent by forum member 'oosthuizen' (andre.oosthuizen_at_thumbtribe.co.za)]
http://forums.java.net/jive/thread.jspa?messageID=379015