Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 32003 invoked from network); 16 Jul 2009 01:59:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Jul 2009 01:59:45 -0000 Received: (qmail 31444 invoked by uid 500); 16 Jul 2009 01:59:54 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 31356 invoked by uid 500); 16 Jul 2009 01:59:54 -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 31348 invoked by uid 99); 16 Jul 2009 01:59:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jul 2009 01:59:54 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of xhhsld@gmail.com designates 209.85.216.198 as permitted sender) Received: from [209.85.216.198] (HELO mail-px0-f198.google.com) (209.85.216.198) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jul 2009 01:59:44 +0000 Received: by pxi36 with SMTP id 36so1706224pxi.27 for ; Wed, 15 Jul 2009 18:59:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=KBY8PCIQGUphCVeW3jrblwbH9giFDZRYonIlslCGN5M=; b=vlZ4q4qMZH9MyHvPTZe4t+i4UC4Y2K2NZCU+fn4UYu/G+tjvMW6+ronQAJqt7fVEIf o2GfIU52jZaYTtfeZrmNYll4/DG1nJpLk7QIpbF3l4Oz0c4zTYbbCCv+w7JSpgFWnXrr tysNNTtbnxb21URnTcsL7+uwzTwrNnDcxV4jI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=mbmI2sT303wTxRGFzwfAfJDbYqeWrRKyMh4lZthfu8M6VjYLrAhl27YmpFednvruuu xTZqdQDUQ07U2LGxM5UAVQhhJZVdtQ5uPNyeeIOrKxwPLTOyWFvf+g/a18MY7gUhr7lK VV0YIRSY8++QG11slhUc/GasLu68At/Le2p9c= MIME-Version: 1.0 Received: by 10.114.112.4 with SMTP id k4mr13524865wac.140.1247709564769; Wed, 15 Jul 2009 18:59:24 -0700 (PDT) In-Reply-To: <24508861.post@talk.nabble.com> References: <24508861.post@talk.nabble.com> Date: Thu, 16 Jul 2009 09:59:24 +0800 Message-ID: <45f744e40907151859m134d2cf3qf05b1efa6ec6ef4b@mail.gmail.com> Subject: Re: How to reuse the jars in geronimo repository? From: Ivan To: user@geronimo.apache.org Content-Type: multipart/alternative; boundary=0016364c63a1641a5a046ec9050c X-Virus-Checked: Checked by ClamAV on apache.org --0016364c63a1641a5a046ec9050c Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit IIRC, the setting commons-collections commons-collections 3.2 jar is only for server side, which means the collection.jar will be added to the webapp's classloader. 2009/7/16 Wureka > > > Hi, > I use Eclipse 3.4 to develop a WAR application for Geronimo 2.1.4. > The application needs commons-collections-3.2.jar. For shrinking my > application size, I hope to reuse the same jar file in geronimo repository > if there is the jar my application needs. > > Fortunately I did find that there is the jar in the repository. And I add > the below dependencies in block in my geronimo-web.xml > > commons-collections > commons-collections > 3.2 > jar > > > However, in Eclipse, I saw the code using the class in > commons-collections-3.2.jar still has red circle X on the lines where the > class appears. > > What action do I still need to do for fixing the priblem? > Thank you for your help. > > -- > View this message in context: > http://www.nabble.com/How-to-reuse-the-jars-in-geronimo-repository--tp24508861s134p24508861.html > Sent from the Apache Geronimo - Users mailing list archive at Nabble.com. > > -- Ivan --0016364c63a1641a5a046ec9050c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable IIRC, the setting
<dep:dependency>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<dep:groupId>commons-
collections</dep:groupId>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<dep:artifactId>commons-collections&l= t;/dep:artifactId>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<dep:version>3.2</dep:version><= br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<dep:type>jar</dep:type>
=A0 =A0 =A0 =A0 =A0 =A0</dep:dependency>
is only for server side,= which means the collection.jar will be added to the webapp's classload= er.


2009/7/16 Wureka <wureka.tw@m2k.com.tw>


Hi,
I use Eclipse 3.4 to develop a WAR application for Geronimo 2.1.4.
The application needs =A0commons-collections-3.2.jar. For shrinking my
application size, I hope to reuse the same jar file in geronimo repository<= br> if there is the jar my application needs.

Fortunately I did find that there is the jar in the repository. And I add the below dependencies in <dep:dependencies> block in my geronimo-web= .xml
=A0 =A0 =A0 =A0 =A0 =A0<dep:dependency>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<dep:groupId>commons-collections</= dep:groupId>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<dep:artifactId>commons-collections&l= t;/dep:artifactId>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<dep:version>3.2</dep:version><= br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<dep:type>jar</dep:type>
=A0 =A0 =A0 =A0 =A0 =A0</dep:dependency>

However, in Eclipse, I saw the code using the class in
commons-collections-3.2.jar still has red circle X on the lines where the class appears.

What action do I still need to do for fixing the priblem?
Thank you for your help.

--
View this message in context: http://www.nabble.com/How-to-reuse-the-jars-in-geronimo-repository--= tp24508861s134p24508861.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



--
Ivan
--0016364c63a1641a5a046ec9050c--