IIRC, the setting
<dep:dependency>
               <dep:groupId>commons-
collections</dep:groupId>
               <dep:artifactId>commons-collections</dep:artifactId>
               <dep:version>3.2</dep:version>
               <dep:type>jar</dep:type>
           </dep:dependency>
is only for server side, which means the collection.jar will be added to the webapp's classloader.


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  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 <dep:dependencies> block in my geronimo-web.xml
           <dep:dependency>
               <dep:groupId>commons-collections</dep:groupId>
               <dep:artifactId>commons-collections</dep:artifactId>
               <dep:version>3.2</dep:version>
               <dep:type>jar</dep:type>
           </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