-
1. Re: javax.annotation.Resource
ebergerson Mar 27, 2007 8:03 PM (in response to urswag)For that matter, how in general do you find the correct jar for any class using JBoss. I have been looking for the correct jar for javax.ejb.Stateless for 2 hours. Not a clue.
Given the wide range of jars, and the number of locations (/lib, /client, /server//lib) they live in, really, how do you know which jar contains which classes? -
2. Re: javax.annotation.Resource
weston.price Mar 27, 2007 8:09 PM (in response to urswag)The
javax.annotation.Resource
can be found in the jboss-ejb3x.jar of your distribution. Generally, if an annotation or a specific class is from the EJB3 API (not JBoss specific) it can be found in this module. A simplejar tvf jar-name.jar
will usually do the trick. -
3. Re: javax.annotation.Resource
ebergerson Mar 27, 2007 8:11 PM (in response to urswag)And in what directory you do you find the jboss-ejb3x.jar. I have looked and can't find it anywhere.
eb@CANAL /cygdrive/c/Program Files/jboss-4.0.5.GA-all$ find . -name "jboss-ejb3x.jar"
eb@CANAL /cygdrive/c/Program Files/jboss-4.0.5.GA-all$ -
4. Re: javax.annotation.Resource
weston.price Mar 27, 2007 8:18 PM (in response to urswag)How did you install EJB3? This jar is usually found in under the ejb3.deployer directory which in JBoss 4.0.5 is found in
jboss-home/server/<server-config>/deploy/ejb3.deployer
At the very least your find command should pick it up. Looks like something either wasn't installed right, or something was moved.
-
5. Re: javax.annotation.Resource
cherold May 15, 2007 4:00 AM (in response to urswag)Hi
As far as I could see the Class i in jboss-ejb3x.jar (with 'x' ).
This jar could be founf in the lib dir and not in the deploy.
regards