From user-return-6531-apmail-geronimo-user-archive=geronimo.apache.org@geronimo.apache.org Mon Apr 30 12:00:42 2007 Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 6147 invoked from network); 30 Apr 2007 12:00:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Apr 2007 12:00:41 -0000 Received: (qmail 60563 invoked by uid 500); 30 Apr 2007 12:00:45 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 60529 invoked by uid 500); 30 Apr 2007 12:00:44 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 60518 invoked by uid 99); 30 Apr 2007 12:00:44 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Apr 2007 05:00:44 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: 208.97.132.5 is neither permitted nor denied by domain of sppatel2@gmail.com) Received: from [208.97.132.5] (HELO spaceymail-a2.g.dreamhost.com) (208.97.132.5) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Apr 2007 05:00:37 -0700 Received: from [9.37.214.165] (bi01p1.nc.us.ibm.com [129.33.49.251]) by spaceymail-a2.g.dreamhost.com (Postfix) with ESMTP id A39C110627F for ; Mon, 30 Apr 2007 05:00:03 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: References: <20070423074543.181451e9c2a7ebbcd6ae28cea81146c8.7e29f67dae.wbe@email.secureserver.net> <462CF8FC.8050603@joyfulnoisewebdesign.com> <462CFE4E.9040206@joyfulnoisewebdesign.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <1D84533D-223E-4C7C-8281-DA5259EC4D45@gmail.com> Content-Transfer-Encoding: 7bit From: Sachin Patel Subject: Re: What jars need to be included to make the EJB related annotations work? Date: Mon, 30 Apr 2007 08:00:01 -0400 To: user@geronimo.apache.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org If you use WTP and the Geronimo Server Adapter, by choosing the Geronimo Runtime, these annotation jars should be added automatically to a Geronimo specific classpath container for each project. -sachin On Apr 28, 2007, at 9:17 AM, Hasan Ceylan wrote: > I know that this is not the best way to handle missing jars. But > What I do when I am under time pressure to locate a class is to run > winrar at the top level directory end search for say > Stateless.class in the sub directories. > > It searches the jars down that path and always finds them. > > Just my 2c... :) > > Hasan Ceylan > > For hunting for the > Jay D. McHugh wrote: >> Here is where the annotation jar is located within an installed >> (trunk) G 2.0: >> ./repository/org/apache/geronimo/specs/geronimo- >> annotation_1.0_spec/1.1-SNAPSHOT/geronimo-annotation_1.0_spec-1.1- >> SNAPSHOT.jar Because you're on an older version than I am, the >> versions you find may be different but that should get you close. >> Also, there were a couple of significant enhancements (and a few >> important bug fixes) that came out after M3. I would suggest >> downloading the 'unofficial' M4 binaries at: >> http://people.apache.org/~hogstrom/2.0-M4-rc1/ >> Hopefully, there will be an official M5 soon - Once there is, I'd >> suggest switching again. >> Jay >> Jim Barrows wrote: >>> On 4/23/07, Jay D. McHugh wrote: >>>> Jim, >>> >>>> >>>> What type of annotations are you wanting to use? >>> >>> EJB, and all the other J2EE stuff. >>>> >>>> JPA? >>> >>> These are working either via spring or Hibernate jars that I'm >>> including. >>> >>>> I am using annotations related to resources and JPA and the jars >>>> that I >>>> have added to my build path to support this are: >>>> >>>> javax.servlet-api >>>> javax.persistence-api >>>> org.apache.openjpa.openjpa-persistence-jdbc >>>> (this next one is probably the big one) >>> >>> >>>> org.apache.geronimo.specs.geronimo-annotation_1.0_spec >>> This one I can't find. >>> >>>> >>>> None of these are being included in my app, they are just there >>>> to allow >>>> Eclipse to do some validation and compile everything. >>>> >>>> Which version of Geronimo are you trying to deploy to? >>> >>> 2.0 M3 >>>> >>>> Jay >>>> >>>> Jim Barrows wrote: >>>> > On 4/23/07, Mark Aufdencamp wrote: >>>> >> Hi James, >>>> >> >>>> >> I've been using the same environment for the last few >>>> months. If >>>> >> you have >>>> >> any questions regarding MyEclipse and Geronimo, feel free to >>>> send >>>> >> them my >>>> >> way:) >>>> >> >>>> >> As your using 5.1.1, I'll presume your using EJB 2.1 with >>>> XDoclet >>>> >> annotations. If you haven't gone through the two EJB >>>> tutorials on the >>>> >> MyEclipse site, I'd suggest checking them out. laliluna also >>>> has a free >>>> >> tutorial on defining relationships. Thier one-to-many uni >>>> tutorial >>>> >> is free. >>>> >> They also have a tutorial for more complex relationships, >>>> but I have >>>> >> not >>>> >> purchased it yet. >>>> > >>>> > I want to use Annotations, and not XDoclet. Nothing against >>>> XDoclet. >>>> > >>>> >> >>>> >> You shouldn't require any jar's for XDoclet generation of >>>> EJB's. If >>>> >> you've >>>> >> created a MyEclipse EJB project and added the EJB XDoclet >>>> support to >>>> >> it via >>>> >> the project properties, the ejb-jar.xml should be auto- >>>> generating for >>>> >> you >>>> >> when you run the MyEclipse XDoclet menu option on the project. >>>> >> You'll need >>>> >> to handcraft your openejb-jar.xml deployment descriptor. >>>> >> >>>> >> Hope that helps getting you in the right direction. >>>> >> >>>> >> Mark Aufdencamp >>>> >> Mark@Aufdencamp.com >>>> >> >>>> >> >>>> >> >>>> >> >>>> >> >>>> >> >>>> >> >>>> >> >>>> >> -------- Original Message -------- >>>> >> Subject: What jars need to be included to make the EJB related >>>> >> annotations work? >>>> >> From: "Jim Barrows" >>>> >> Date: Mon, April 23, 2007 6:13 am >>>> >> To: user >>>> >> >>>> >> I'm using Eclipse 3.2.2, with the MyEclipse 5.1.1 plugins >>>> installed. >>>> >> >>>> >> However, when creating an EJB, the annotations do not work. >>>> After >>>> >> >>>> >> looking around, I realized that I needed the righ Jar file >>>> (s), but >>>> >> >>>> >> could not figure out with jars in Geronimo would do that for me. >>>> >> >>>> >> Could anyone point them out to me? >>>> >> >>>> >> >>>> >> >>>> >> -- >>>> >> >>>> >> James A Barrows >>>> >> >>>> >> >>>> >> >>>> > >>>> > >>>> >>> >>> >