tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Robinson <>
Subject Re: java.lang.NoClassDefFoundError: org/apache/commons/collections/SequencedHashMap
Date Sun, 02 Dec 2007 23:24:14 GMT
Caldarale, Charles R wrote:
>> From: [] 
>> Subject: Re: java.lang.NoClassDefFoundError: 
>> org/apache/commons/collections/SequencedHashMap
>> Common/lib is for internal use and wouldnt be expected to 
>> demand load the classes you require as is the case for the
>> webapp WEB-INF
> Although the reference given is quite appropriate, the statements
> preceding it are incorrect.
> The common/lib location is not for Tomcat internal use; it provides a
> location for classes that must be visible to *both* Tomcat and webapps,
> such as the servlet API interfaces and JDBC drivers for connection
> pooling.
> And, of course, all classes are "demand loaded" on first reference,
> regardless of location.
> Placing application-specific classes in WEB-INF/lib is certainly the
> right thing to do, since that contributes to webapp independence.

After reading that doc I agree with chuck. The WEB-INF/lib location works for my
specific app and gives it independence from the admin app if that's using a
different version. Placing it in commons/lib might confuse the other app.



To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message