Re: [Q] when to share jars

2005-06-15 Thread teknokrat
delbd wrote: Then put those libs in WEB-INF/lib too Le Mardi 14 Juin 2005 14:31, teknokrat a écrit : Charl Gerber wrote: When do you share jars (struts, log4j, jstl, etc) for webapps in the common/lib directory and when does each app need its own copy of the jars? Log4j we've found by

Re: [Q] when to share jars

2005-06-15 Thread Larry Meadors
How many web apps do you have? Put the jar in shared, and you get to restart them all anyway...on each shared jar update. I am sure your users will love that. ;-) Larry On 6/15/05, teknokrat [EMAIL PROTECTED] wrote: delbd wrote: Then put those libs in WEB-INF/lib too And if we need to

[Q] when to share jars

2005-06-14 Thread Charl Gerber
When do you share jars (struts, log4j, jstl, etc) for webapps in the common/lib directory and when does each app need its own copy of the jars? Log4j we've found by trail and error is better to have a jar per webapp, as the loggers seems to overwrite each other, but which commonly used jars

RE: [Q] when to share jars

2005-06-14 Thread Dale, Matt
- From: Charl Gerber [mailto:[EMAIL PROTECTED] Sent: 14 June 2005 10:57 To: tomcat-user@jakarta.apache.org Subject: [Q] when to share jars When do you share jars (struts, log4j, jstl, etc) for webapps in the common/lib directory and when does each app need its own copy of the jars? Log4j we've

RE: [Q] when to share jars

2005-06-14 Thread Charl Gerber
To: tomcat-user@jakarta.apache.org Subject: [Q] when to share jars When do you share jars (struts, log4j, jstl, etc) for webapps in the common/lib directory and when does each app need its own copy of the jars? Log4j we've found by trail and error is better to have a jar per webapp

Re: [Q] when to share jars

2005-06-14 Thread Tim Funk
Never. I share jars. I wish I hadn't. When you upgrade JSTL, struts, etc - all get the upgrade for free - but that means ultra stable apps which haven't been touched in years may magically break. [Exception - log4j ... I like have a common/lib log4j] -Tim Charl Gerber wrote: When do you

Re: [Q] when to share jars

2005-06-14 Thread Charl Gerber
If you share log4j, wouldn't it mean that if two web-apps both use eg com.foo.Bar, they cannot be configured to log to different logfiles and that the com.foo.Bar logger (with appenders) is shared between webapps? --- Tim Funk [EMAIL PROTECTED] wrote: Never. I share jars. I wish I hadn't.

Re: [Q] when to share jars

2005-06-14 Thread Tim Funk
I think so. But IIRC, if you have a log4j in common/lib and WEB-INF/lib - the WEB-INF/lib will be used for that webapp. So you can place logging in a different file for that webapp and class. -Tim Charl Gerber wrote: If you share log4j, wouldn't it mean that if two web-apps both use eg

Re: [Q] when to share jars

2005-06-14 Thread delbd
The best place to search for this info is in the library website. You found the problem of log4j by trail / error? if you had read the log4j doc, it's written explicitly, do not put log4j in the shared lib of your container or you won't be able to have a different config per webapp. For

Re: [Q] when to share jars

2005-06-14 Thread Nikola Milutinovic
Tim Funk wrote: Never. I share jars. I wish I hadn't. When you upgrade JSTL, struts, etc - all get the upgrade for free - but that means ultra stable apps which haven't been touched in years may magically break. You're absolutely right Tim. If it works, don't fix it. And there is nothing

Re: [Q] when to share jars

2005-06-14 Thread Larry Meadors
Amen brother! Sharing jars between web apps is just a Bad Idea (tm). Disk is cheap, and so is the time required to copy a jar. ...unless you are an ISP with 1000+ web apps running on a sinlge box, then it *might* be OK, but even then, I would stop and think very carefully before doing it.

Re: [Q] when to share jars

2005-06-14 Thread teknokrat
Charl Gerber wrote: When do you share jars (struts, log4j, jstl, etc) for webapps in the common/lib directory and when does each app need its own copy of the jars? Log4j we've found by trail and error is better to have a jar per webapp, as the loggers seems to overwrite each other, but which

Re: [Q] when to share jars

2005-06-14 Thread delbd
Then put those libs in WEB-INF/lib too Le Mardi 14 Juin 2005 14:31, teknokrat a écrit : Charl Gerber wrote: When do you share jars (struts, log4j, jstl, etc) for webapps in the common/lib directory and when does each app need its own copy of the jars? Log4j we've found by trail and

Re: RE: [Q] when to share jars

2005-06-14 Thread Giuseppe Briotti
== Date: Tue, 14 Jun 2005 11:43:04 +0100 (BST) From: Charl Gerber [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: RE: [Q] when to share jars == yep, shared/lib. I suspect struts also needs to be in every

Re: [Q] when to share jars

2005-06-14 Thread Andre Van Klaveren
Bottom line is that the only libraries you should put in shared/lib are ones that you know are stable and won't be changing much, if at all (can anybody really know this?). Every application that depends on a shared library gets impacted when you upgrade the shared library. If there are several