hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Scherler <thorsten.scherler....@juntadeandalucia.es>
Subject Re: Help please - htpclient-4.0alpha3
Date Mon, 17 Mar 2008 08:00:32 GMT
On Sun, 2008-03-16 at 15:00 +0530, Biju P wrote:
> Hi,
> 
> I am working on a research, on web technologies. I have downloaded your 
> httpclient4.0-alpha3. 
> I have tried running ClientExecuteDirect.java program that comes with 
> httpclient4.0-alpha3. But I am getting the below error message. 
> 
> executing request to http://issues.apache.org:80
> log4j:WARN No appenders could be found for logger 
> (org.apache.http.impl.client.ClientParamsStack).
> log4j:WARN Please initialize the log4j system properly.

You need to create a file called log4j.properties and store it in the
root of your classpath directory (I would expect to store it in
WEB-INF/classes will work in your case).

example log4j properties content:
log4j.rootLogger=debug, stdout, logfile

log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - <%m>%n

log4j.appender.logfile=org.apache.log4j.RollingFileAppender
log4j.appender.logfile.File=log.txt
log4j.appender.logfile.MaxFileSize=512KB
# Keep three backup files.
log4j.appender.logfile.MaxBackupIndex=3
# Pattern to output: date priority [category] - message
log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
log4j.appender.logfile.layout.ConversionPattern=%d %p [%c] - %m%n

HTH

salu2

> 
> It would be great help, if you could help me on this.
> 
> Thanks alot,
> Biju P M
> Mailto: biju.p@tcs.com
> =====-----=====-----=====
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain 
> confidential or privileged information. If you are 
> not the intended recipient, any dissemination, use, 
> review, distribution, printing or copying of the 
> information contained in this e-mail message 
> and/or attachments to it are strictly prohibited. If 
> you have received this communication in error, 
> please notify us by reply e-mail or telephone and 
> immediately and permanently delete the message 
> and any attachments. Thank you
> 
> 
-- 
Thorsten Scherler                                 thorsten.at.apache.org
Open Source Java                      consulting, training and solutions


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message