EJB 3.0 annotations not being recognized in eclipse [message #433537] |
Sun, 19 February 2006 12:10  |
Eclipse User |
|
|
|
I have Eclipse 3.1.2 running on JDK 1.5.06 and my project is set to 5.0
compliance. The example out-of-container EJB 3.0 application I'm using is
located at http://technology.amis.nl/blog/?p=1043 .
Eclipse does not recognise the EJB 3.0 specific annotations such as @Id
and I get compile time errors saying cannot resolve them. I wasn't sure if
Dali was required since it wasn't specified in the tutorial above. Goole
didn't turn up an hints except to command-line compile.
I'd like to know how I can get eclipse to recognize the ejb 3.0
annotations. Would appreciate any help regarding this.
-sudhakar
|
|
|
|
|
|
Re: EJB 3.0 annotations not being recognized in eclipse [message #433658 is a reply to message #433648] |
Tue, 11 April 2006 09:49  |
Eclipse User |
|
|
|
Rajesh,
You need some variation of the EJB3 Persistence jars from one of the early
adopters (kodo, jboss, hibernate, glassfish, etc) and make the jar(s)
available to your Eclipse project(s).
Kevin
Rajesh wrote:
> Hi
> I just want to enable the annotations in Eclipse 3.1. How can I do that ?
> Thanks
> Rajesh
|
|
|
Re: EJB 3.0 annotations not being recognized in eclipse [message #573204 is a reply to message #433537] |
Mon, 20 February 2006 08:34  |
Eclipse User |
|
|
|
remember to enable JDK 5 for the project and add the ejb3 persistence jars
to the project. The annotations are like any other class - they need to be
on the classpath to work.
/max
> I have Eclipse 3.1.2 running on JDK 1.5.06 and my project is set to 5.0
> compliance. The example out-of-container EJB 3.0 application I'm using
> is located at http://technology.amis.nl/blog/?p=1043 . Eclipse does not
> recognise the EJB 3.0 specific annotations such as @Id and I get compile
> time errors saying cannot resolve them. I wasn't sure if Dali was
> required since it wasn't specified in the tutorial above. Goole didn't
> turn up an hints except to command-line compile.
>
> I'd like to know how I can get eclipse to recognize the ejb 3.0
> annotations. Would appreciate any help regarding this.
>
> -sudhakar
>
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
|
|
|
|
|
Re: EJB 3.0 annotations not being recognized in eclipse [message #578466 is a reply to message #433648] |
Tue, 11 April 2006 09:49  |
Eclipse User |
|
|
|
Rajesh,
You need some variation of the EJB3 Persistence jars from one of the early
adopters (kodo, jboss, hibernate, glassfish, etc) and make the jar(s)
available to your Eclipse project(s).
Kevin
Rajesh wrote:
> Hi
> I just want to enable the annotations in Eclipse 3.1. How can I do that ?
> Thanks
> Rajesh
|
|
|
Powered by
FUDForum. Page generated in 0.24717 seconds