commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Affan Qureshi" <quere...@etilize.com>
Subject Re: [Logging] Where to put new jars in Tomcat?
Date Thu, 10 Apr 2003 14:05:42 GMT
Thanks but I think it does find the log4j.properties coz it is printing the
debug info right (according to the file in
WEB-INF/classes/log4j.properties).

Wouldn't placing jar files or properties file in App Server dirs tie up my
app to the server. I would love to have my app as a freely
distributable/deployable.

Maybe I need to get rid of property files altogether and do configuration
programmatically. But the problem is the Log4J implementation is hiding
behind commons-logging API and common-logging does not have any
configuration mechanism. Anyone tried programmatic configuration of log4j
under commons-logging (via a web interface etc)?

Thanks,
Affan

----- Original Message -----
From: "Robert Priest" <Robert.Priest@bentley.com>
To: "'Jakarta Commons Users List'" <commons-user@jakarta.apache.org>
Sent: Thursday, April 10, 2003 6:24 PM
Subject: RE: [Logging] Where to put new jars in Tomcat?


> It just sounds like it is not finding that log4j.properties file. If the
new
> commons-logging in your server\lib is using log4j, maybe you need a
> log4j.properties file in server\classes.
>
>
>
> -----Original Message-----
> From: Affan Qureshi [mailto:quereshi@etilize.com]
> Sent: Thursday, April 10, 2003 4:08 AM
> To: Jakarta Commons Users List
> Subject: [Logging] Where to put new jars in Tomcat?
>
>
> Hi,
> I have downloaded commons-logging-1.0.3 and found two jar files in it:
> commons-logging.jar
> commons-logging-api.jar
>
> Now which one am i supposed to put in my webapp/WEB-INF/lib and what about
> tomcat's server/lib and common/lib? I found that tomcat's server/lib
already
> had commons-logging.jar and I replaced it with the new one having the same
> name. Also replaced the existing common/lib/commons-logging-api.jar with
the
> new commons-logging-api.jar. But when tomcat starts up i get:
> log4j:WARN No appenders could be found for logger
> (org.apache.commons.digester.D
> igester).
> log4j:WARN Please initialize the log4j system properly.
> and
> Do I have to put log4j in tomcat too? I have log4j.jar in my WEB-INF/lib.
I
> also have log4j.properties and commons-logging.properties and
> WEB-INF/classes.
>
> Right now I am not getting any log messages anywhere.
>
> Any where i can find exact steps to make this work? i have searched the
> archive and tried some of the combinations nothing seems to fit in.
>
> I am using Tomcat 4.1.18 on Win2000 and JDK1.4.
>
> Affan
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>


Mime
View raw message