tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mohammad Nour El-Din" <nour.moham...@gmail.com>
Subject Re: Where do I get javax.persistence package?
Date Thu, 18 Oct 2007 18:38:00 GMT
Try including the persistence-api-XXXX.jar found in the ${openejb.home}/lib
directory .

On 10/18/07, satsuma <karijakari@hotmail.com> wrote:
>
>
> Hi,
>
> I have just started EJB programming and I ran into a problem, when trying
> to
> implement a simple stateless session bean that accesses database. I have
> been following the instruction in the openEJB documentation page,
> http://openejb.apache.org/databases.html
>
> When I try to compile my class, I get an error that states "package
> javax.persistence.* does not exist" and because of this I can not use
> annotations such as @Resource or @PersistenceContext. The @Stateless
> annotation on the other hand, works as supposed(I made the hello world
> tutorial from the documentation).
>
> I have added geronimo-ejb_3.0_spec-1.0.jar and
> openejb-client-3.0-beta-1.jar
> to my classpath, do I need to add something more?
>
> Thanks.
> --
> View this message in context:
> http://www.nabble.com/Where-do-I-get-javax.persistence-package--tf4648542.html#a13279676
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
>


-- 
Thanks
- Mohammad Nour

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message