tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Funk <funk...@joedog.org>
Subject Re: [Q] when to share jars
Date Tue, 14 Jun 2005 11:19:38 GMT
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 "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 <funkman@joedog.org> 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".
>>
>>[Exception - log4j ... I like have a common/lib
>>log4j]
>>
>>-Tim
>>
>>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 commonly used jars (struts,
>>>jstl) can be shared?
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message