Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 69265 invoked from network); 1 Aug 2008 22:47:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Aug 2008 22:47:30 -0000 Received: (qmail 90463 invoked by uid 500); 1 Aug 2008 22:47:28 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 90435 invoked by uid 500); 1 Aug 2008 22:47:28 -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 90424 invoked by uid 99); 1 Aug 2008 22:47:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Aug 2008 15:47:28 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of travis.stevens@gaiam.com designates 208.65.145.71 as permitted sender) Received: from [208.65.145.71] (HELO p01c12o148.mxlogic.net) (208.65.145.71) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Aug 2008 22:46:32 +0000 Received: from unknown [216.183.117.45] (EHLO postoffice.gaiam.com) by p01c12o148.mxlogic.net (mxl_mta-5.6.1-1) over TLS secured channel with ESMTP id 36293984.3449793456.651374.00-001.p01c12o148.mxlogic.net (envelope-from ); Fri, 01 Aug 2008 16:46:59 -0600 (MDT) Received: from [172.20.41.93] (172.20.41.93) by postoffice.gaiam.com (10.97.2.35) with Microsoft SMTP Server (TLS) id 8.1.291.1; Fri, 1 Aug 2008 16:47:02 -0600 Subject: Re: packaging my ear From: Travis Stevens To: In-Reply-To: References: <1217610447.23995.8.camel@tstevens-ubuntu> Content-Type: text/plain Date: Fri, 1 Aug 2008 16:46:30 -0600 Message-ID: <1217630790.23995.11.camel@tstevens-ubuntu> MIME-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit X-Spam: [F=0.1000000000; S=0.100(2008062001)] X-MAIL-FROM: X-SOURCE-IP: [(unknown)] X-Virus-Checked: Checked by ClamAV on apache.org I added my jars to the lib dir and it worked, so thank you. I was using the maven-ear-plugin and assumed that it would put the jars in the appropriate place by default. -Trav On Fri, 2008-08-01 at 10:55 -0700, David Jencks wrote: > Only stuff in lib gets automatically added to the ear classpath. If > you really need the other jars to be at the root of the ear you'll > need to redefine the lib directory to / (this might cause problems, > I'm not sure) or use manifest classpath in your ejb module to pick up > the jars. > > hope this helps > david jencks > > On Aug 1, 2008, at 10:07 AM, Travis Stevens wrote: > > > Howdy. > > > > I'm getting the following failure: > > 16:47:29,741 ERROR [Deployer] Deployment failed due to > > java.lang.NoClassDefFoundError: com/gaiam/gcsi/service/ProgramService > > at java.lang.ClassLoader.defineClass1(Native Method) > > at java.lang.ClassLoader.defineClass(ClassLoader.java:620) > > at java.lang.ClassLoader.defineClass(ClassLoader.java:465) > > > > I think that I am missing something when packaging the ear file. > > Basically, the class ProgramService is in gcsi-services.jar which is > > placed at the root of the ear. ProgramService is just a simple > > interface. > > > > The three EJB specific classes, notably @Local ProgramServiceLocal, > > @Remote ProgramServiceRemote and @Statless ProgramServiceImpl, > > reside in > > gcsi-impl.jar which is also placed at the root of the ear. There is > > an > > entry in META-INF/application.xml for that file: > > > > > > gcsi-ear > > > > gcsi-impl.jar > > > > > > > > The entity beans are placed in lib/gcsi-core.jar. > > > > All the rest of the libraries (like commons-lang.jar, etc) are > > placed in > > the root of the ear file. > > > > Any thoughts would be appreciated. > > > > -Trav > > > > > > >