Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 12278 invoked from network); 9 Dec 2006 00:00:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Dec 2006 00:00:54 -0000 Received: (qmail 69783 invoked by uid 500); 9 Dec 2006 00:01:00 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 69763 invoked by uid 500); 9 Dec 2006 00:00:59 -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 69752 invoked by uid 99); 9 Dec 2006 00:00:59 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Dec 2006 16:00:59 -0800 X-ASF-Spam-Status: No, hits=4.8 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [68.142.206.240] (HELO smtp107.plus.mail.mud.yahoo.com) (68.142.206.240) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 08 Dec 2006 16:00:47 -0800 Received: (qmail 66711 invoked from network); 9 Dec 2006 00:00:23 -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:From:Subject:Date:To:X-Mailer; b=tcmu2oqyGlcehlDLzNqglzDdPl1PnK4jddDSVA0LDrld7/IZaxBJvQKXSq/tlp6H0lxLuWiqCSqkH85i9/+MCqL4dBthumM5YqqCmuHHkCUIB1MpxNcp7gpVHnRkEdTpLHHit6wLE1ftbdjOvOh9fe5y0YY+uexayVKTrhqCx3Y= ; Received: from unknown (HELO ?192.168.15.101?) (david_jencks@66.224.185.171 with plain) by smtp107.plus.mail.mud.yahoo.com with SMTP; 9 Dec 2006 00:00:21 -0000 X-YMail-OSG: dz0.AD4VM1nXU26ouqSAjDVGT1JCYtpNPPvihPfZR0fvIgWyMmYbO9vASSsOflEb3gqZgf1AlGxkuGkhPa6sNJiA0MA5jbeZrDY49P_zVyqkpBD5v.tElAk1O4Rmu2b3tcnJbnEef3xNCGE- Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: References: Content-Type: multipart/alternative; boundary=Apple-Mail-11-484128964 Message-Id: <7E937180-CE24-4FD7-AA6E-DFD4703D1439@yahoo.com> From: David Jencks Subject: Re: Third party jars inside ear files Date: Fri, 8 Dec 2006 16:00:06 -0800 To: user@geronimo.apache.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-11-484128964 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed The only think I know of that you can do is to include a dummy ejb jar file with no ejbs in it and put your libs in it's manifest classpath. It will need a skeleton ejb-jar.xml descriptor so it can get deployed correctly. You are correct that the dependency elements only refer jars outside the ear in the geronimo repository. The other thing you could do is to put the jars in the geronimo repo and use dependency elements. This is fairly easy if you use maven... .but still not as easy as it should be. hope this helps david jencks On Dec 8, 2006, at 12:10 PM, Spotts, Joel ((ISS Atlanta)) wrote: > I have a number of third party jars I want to include inside an > ear. I would like all my web applications to have access those > jars. I realize that I can list those jars inside the manifest > files of the wars (using the Class path directive), but that would > mean that each war would load those jars in different class > loaders. Is there a way I can designate that those jars I include > in the ear should be available to the wars loaded by the class > loader of the ear (such that the same class loader would load the > jars for all wars inside that ear)? I have not found a way to > configure that in the geronimo-application.xml. The closest > directive I found is the dependency directive, but it seems like > you can only load jars external to the ear (placed in the > repository as separate compenents), but not for jars included in > the ears? > > Thanks, > > Yoel Spotts > --Apple-Mail-11-484128964 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1 The only think I know of that = you can do is to include a dummy ejb jar file with no ejbs in it and put = your libs in it's manifest classpath.=A0 It will need a skeleton = ejb-jar.xml descriptor so it can get deployed correctly.

You are correct that the = dependency elements only refer jars outside the ear in the geronimo = repository.=A0 The other thing you could do is to put the jars in the = geronimo repo and use dependency elements.=A0 This is fairly easy if you = use maven... .but still not as easy as it should be.

hope this = helps
david jencks

On Dec 8, 2006, at = 12:10 PM, Spotts, Joel ((ISS Atlanta)) wrote:

I have a number of third party jars I want to = include inside an ear. I would like all my web applications to have = access those jars. I realize that I can list those jars inside the = manifest files of the wars (using the Class path directive), but that = would mean that each war would load those jars in different class = loaders. Is there a way I can designate that those jars I include in the = ear should be available to the wars loaded by the class loader of the = ear (such that the same class loader would load the jars for all wars = inside that ear)? I have not found a way to configure that in the = geronimo-application.xml. The closest directive I found is the = dependency directive, but it seems like you can only load jars external = to the ear (placed in the repository as separate compenents), but not = for jars included in the ears?

Thanks,

Yoel = Spotts


= --Apple-Mail-11-484128964--