Return-Path: Delivered-To: apmail-openejb-users-archive@www.apache.org Received: (qmail 56523 invoked from network); 19 Oct 2007 00:50:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Oct 2007 00:50:19 -0000 Received: (qmail 36790 invoked by uid 500); 19 Oct 2007 00:50:06 -0000 Delivered-To: apmail-openejb-users-archive@openejb.apache.org Received: (qmail 36774 invoked by uid 500); 19 Oct 2007 00:50:06 -0000 Mailing-List: contact users-help@openejb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openejb.apache.org Delivered-To: mailing list users@openejb.apache.org Received: (qmail 36757 invoked by uid 99); 19 Oct 2007 00:50:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Oct 2007 17:50:06 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [64.71.26.219] (HELO s44.eatj.com) (64.71.26.219) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 19 Oct 2007 00:50:03 +0000 Received: (qmail 29672 invoked from network); 18 Oct 2007 17:49:40 -0700 Received: from unknown (HELO s44.eatj.com) (127.0.0.1) by localhost.localdomain with SMTP; 18 Oct 2007 17:49:40 -0700 Received: from 64.71.26.219 (proxying for 66.108.212.158) (SquirrelMail authenticated user dario@nycjava.net); by webmail.s43.eatj.com with HTTP; Thu, 18 Oct 2007 20:49:40 -0400 (EDT) Message-ID: <52671.64.71.26.219.1192754980.squirrel@64.71.26.219> In-Reply-To: <13281604.post@talk.nabble.com> References: <13279676.post@talk.nabble.com> <13281604.post@talk.nabble.com> Date: Thu, 18 Oct 2007 20:49:40 -0400 (EDT) Subject: Re: Where do I get javax.persistence package? From: "Dario Laverde" To: users@openejb.apache.org User-Agent: SquirrelMail/1.4.3a X-Mailer: SquirrelMail/1.4.3a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Checked: Checked by ClamAV on apache.org Hello Satsuma, Add the following 2 jars to your classpath: geronimo-ejb_3.0_spec-1.0.jar geronimo-jpa_3.0_spec-1.1.jar For an example (using Tomcat) check my blog entry at: http://javanotebook.com/2007/09/28/openejb_3_and_tomcat_6.html -Dario > Thank you Mohammad for your reply. > > I can not find such a jar file from the lib directory. The only ones close > to that(containing 'persistence') are openjpa-persistence-1.0.0.jar and > openjpa-persistence-jdbc-1.0.0.jar, so I added both of those to my > classpath, but that didn't solve the problem. Any more tips? > > > > Mohammad Nour El-Din wrote: >> >> Try including the persistence-api-XXXX.jar found in the >> ${openejb.home}/lib >> directory . >> >> On 10/18/07, satsuma 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 >> >> > > -- > View this message in context: > http://www.nabble.com/Where-do-I-get-javax.persistence-package--tf4648542.html#a13281604 > Sent from the OpenEJB User mailing list archive at Nabble.com. > >