I would put them in the web app myself.  Here is the reasoning:

1.  You want to encapsulate an application so that it can be deployed to a
container without having to muck with the web container installation.  So when
you upgrade to the nth version of Tomcat or switch to Jetty or BEA, etc. you
will have less to test for and modify in a vanilla app server environment.

2.  You don't want to create cross web app dependencies.  This can make
upgrading the versions of the commons libs or jars in general a much bigger
investment in testing and logistics if you deploy to an environment with many
web applications on it.

3.  Your web apps are usually separate applications which usually means
different database connections will be used for them.  If they are shared
between applications by all means put it in common/lib.


--- Kevin HaleBoyes <[EMAIL PROTECTED]> wrote:
> --- "Craig R. McClanahan" <[EMAIL PROTECTED]> wrote:
> > 
> > In Tomcat the picture is slightly more complicated, because Tomcat
> > provides a couple of extra layers between system and webapp:
> > 
> >  
> >
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html
> > 
> > but the same principles apply.
> 
> Given this and the other information provided in this thread, I
> assume that I'd have to copy the commons-dbcp and commons-pool
> (provided by Struts and residing in MyWebApp/WEB-INF/lib) into the
> CATALINA_HOME/common/lib directory.  My reasoning is that it is
> Tomcat that is managing the connection pool and not the webapp, so
> any classes associated with dbcp are coming from common/lib.
> 
> Anyway, I've copied the two jar files and modified my code and
> everything is running great.
> 
> It is a real shame that I have to do this.  Not only is my webapp
> now dependant on Oracle it also has to know about
> DelegatingResultSet and that I'm using DBCP.  At least it's all
> tucked away into a DAO class and doesn't effect the rest of the
> application.
> 
> Many, many thanks to everyone that has helped.
> Not only has it helped me solve my immediate problem it has
> prompted me to re-read the class loader howto!
> Kevin.
> 
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Shopping - Send Flowers for Valentine's Day
> http://shopping.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to