Where to place a common jar file?

2005-09-19 Thread David Thielen
Hi; If I have a jar file used by multiple servlets, should I put it in ${catalina}/common/lib or in ${catalina}/webapps/${each_app}/WEB-INF/lib? I ask because I have seen various warnings that most jar files need to be placed in each webapp and not in common (like struts). ??? - thanks

Re: Where to place a common jar file?

2005-09-19 Thread David Smith
Shared jars can be placed in common/lib, but keep in mind that all your webapps will be locked to the same version of the jar. It's better to have a copy in the webapp instead where you'll have more version independence between wepapps. --David David Thielen wrote: >Hi; > > > >If I have a jar

Re: Where to place a common jar file?

2005-09-19 Thread Mark Eggers
>From the Tomcat documetation: http://localhost:8080/tomcat-docs/class-loader-howto.html * For classes and resources specific to a particular web application, place unpacked classes and resources under /WEB-INF/classes of your web application archive, or place JAR files containing those class

RE: Where to place a common jar file?

2005-09-19 Thread David Thielen
2005 4:19 PM To: Tomcat Users List Subject: Re: Where to place a common jar file? >From the Tomcat documetation: http://localhost:8080/tomcat-docs/class-loader-howto.html * For classes and resources specific to a particular web application, place unpacked classes and resources under /WEB-IN

RE: Where to place a common jar file?

2005-09-19 Thread Mark Eggers
I think so. If you use global naming resources and a resource link (accessing your jdbc database via jndi), then you might only need to place the jdbc drivers in server/lib. Reading some other online documentation, this appears to be the preferred method. /mde/ --- David Thielen <[EMAIL PROTECT