-
1. lookup attribute missing on @Resource?
jaikiran Feb 3, 2011 8:09 AM (in response to nickarls)It should be part of the endorsed.dirs http://community.jboss.org/message/577979#577979
-
2. lookup attribute missing on @Resource?
wolfc Feb 3, 2011 8:12 AM (in response to nickarls)1 of 1 people found this helpfulThe JavaSE version of @Resource is incompatible with the JavaEE version.
http://download.oracle.com/javase/6/docs/api/javax/annotation/Resource.html
-
3. Re: lookup attribute missing on @Resource?
nimo22 Feb 3, 2011 9:43 AM (in response to jaikiran)Nicklas, are u using eclipse?
I already have this the -Djava.endorsed.dirs="C:/jboss-6.1.0-SNAPSHOT/lib/endorsed" in vm-args of my jboss as.
I use jboss tools and also I included the lib/endorsed to my classpath.
<classpathentry kind="lib" path="C:/jboss-6.1.0-SNAPSHOT/lib/endorsed"/>
Eclipse IDE does not regocnize it.
-
4. Re: lookup attribute missing on @Resource?
nickarls Feb 3, 2011 3:32 PM (in response to nimo22)No, running mvn in a separate shell mostly. But I get the root cause of this. In all it's horribility.
-
5. lookup attribute missing on @Resource?
nimo22 Feb 4, 2011 2:27 AM (in response to nickarls)Yes, indeed..welcome to dependency hell;) I got the same failure.
Maybe this helps a little:
http://java-abwaschbar.blogspot.com/2011/01/resource-annotation-and-lookup.html
http://javahowto.blogspot.com/2010/04/resourcelookup-and-classpath.html