Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 4371 invoked from network); 21 Sep 2007 00:25:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Sep 2007 00:25:52 -0000 Received: (qmail 18587 invoked by uid 500); 21 Sep 2007 00:25:42 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 18570 invoked by uid 500); 21 Sep 2007 00:25:42 -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 18559 invoked by uid 99); 21 Sep 2007 00:25:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Sep 2007 17:25:42 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [69.147.102.69] (HELO smtp106.plus.mail.re1.yahoo.com) (69.147.102.69) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 21 Sep 2007 00:27:41 +0000 Received: (qmail 28913 invoked from network); 21 Sep 2007 00:25:17 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:Mime-Version:In-Reply-To:References:Content-Type:Message-Id:Content-Transfer-Encoding:From:Subject:Date:To:X-Mailer; b=MxJhZh3yWIM97ntgJwT+lWX+BmC8E6FCQmo2eW7gx6iqI2uBtoVslWYyc0mL0iP4l2zsLoIpBF5D7+elwLpTW9ooMbyC1RPpwnIpqtsgOFuNjAdTVJ/siTeZie35fPGTDkH1oh/XjgaNsZcM69fQHlJE0AXzJ/61pkEekzMgx1o= ; Received: from unknown (HELO ?192.168.1.101?) (david_jencks@209.134.45.200 with plain) by smtp106.plus.mail.re1.yahoo.com with SMTP; 21 Sep 2007 00:25:16 -0000 X-YMail-OSG: 0_Ja5oIVM1lwIJHaaeJpJZ2Z5kUypMBuvS_Eh72Mmdf1Hr3KSDBenqMsAC.cRO80wrQzs_dA4tqh85lMIrP5DdJ.H5ltiAEmnaZjAl6W5mlPXbCByw-- Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <12806948.post@talk.nabble.com> References: <12806948.post@talk.nabble.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <3116EE8C-CA68-457A-97F1-EF7E67D52375@yahoo.com> Content-Transfer-Encoding: 7bit From: David Jencks Subject: Re: classloading within an EAR file problem Date: Thu, 20 Sep 2007 20:24:54 -0400 To: user@geronimo.apache.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org Despite Tomasz's optimism I don't think you can do this. In geronimo the rars and ejb jars in an ear get put in one classloader and each web-app gets put in another classloader. The ear classloader is a parent of every war classloader. The problem is that the war classloaders don't get publically accessible names that you could use in the dependencies section to make one a parent of another. I'm afraid your best bet in geronimo is to put the shared classes into a jar in the ear's lib directory. I would not object in the least if you raised a jira for this issue but I doubt I personally will be able to work on it very soon. thanks david jencks On Sep 20, 2007, at 6:08 PM, pieterd wrote: > > Hi, (using geronimo v2) > > I have an EAR file with 2 WAR files: > bsl.war (service layer) > webstore.war (application) > > The webstore.war calls classes within the bsl.war > > Is there a way I can get geronimo to load the bsl.war file first > and the > webstore.war file second within the same classloader? I have had a > look at > the documentation around the application.xml and geronimo- > application.xml, > but it is not clear. > > currently geronimo gives me a "java.lang.NoClassDefFoundError" when > deploying the EAR. > > With weblogic I would have done this with the following in the > weblogic-application.xml file: > > > > bsl.war > > > > webstore.war > > > > > > thanks > > -pieter > -- > View this message in context: http://www.nabble.com/classloading- > within-an-EAR-file-problem-tf4490585s134.html#a12806948 > Sent from the Apache Geronimo - Users mailing list archive at > Nabble.com. >