RE: Logging Problem

2004-06-24 Thread Kalnichevski, Oleg

Tim,

* What is the exact JRE version that you are using?
* Are you running HttpClient in a container (servlet container, EJB container)?
* What other libraries do you have on the JRE's classpath?
* Have you tried setting those system properties upon the JRE startup using -D 
directive?

Oleg

-Original Message-
From: Tim Patton [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 24, 2004 19:06
To: [EMAIL PROTECTED]
Subject: Logging Problem


I've been trying to get logging output to debug a cookie problem but no luck
so far.  As far as I can tell from the docs, I just need these 4 lines of
code in my progrma somewhere:


System.setProperty(org.apache.commons.logging.simplelog.defaultlog,debug
);
  System.setProperty(org.apache.commons.logging.Log,
org.apache.commons.logging.impl.SimpleLog);
  System.setProperty(org.apache.commons.logging.simplelog.showdatetime,
true);

System.setProperty(org.apache.commons.logging.simplelog.log.httpclient.wire
, debug);

System.setProperty(org.apache.commons.logging.simplelog.log.org.apache.comm
ons.httpclient, debug);


Am I missing something else?  I get no logging output, but my program can
connect to a site and grab a page no problem.  I do not have Log4J anywhere
on my machine as far as I can tell.  I made a short test program to see what
was going on, I can send that to the list if it will help.

Tim


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


***
The information in this email is confidential and may be legally privileged.  Access 
to this email by anyone other than the intended addressee is unauthorized.  If you are 
not the intended recipient of this message, any review, disclosure, copying, 
distribution, retention, or any action taken or omitted to be taken in reliance on it 
is prohibited and may be unlawful.  If you are not the intended recipient, please 
reply to or forward a copy of this message to the sender and delete the message, any 
attachments, and any copies thereof from your system.
***

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Logging Problem

2004-06-24 Thread Tim Patton
Nevermind, I am dumb, I didn't know I had to set all the properties before I
created a Client object.  I don't think the docs mentioned that.

Tim
- Original Message - 
From: Kalnichevski, Oleg [EMAIL PROTECTED]
To: Commons HttpClient Project [EMAIL PROTECTED]
Sent: Thursday, June 24, 2004 1:15 PM
Subject: RE: Logging Problem



Tim,

* What is the exact JRE version that you are using?
* Are you running HttpClient in a container (servlet container, EJB
container)?
* What other libraries do you have on the JRE's classpath?
* Have you tried setting those system properties upon the JRE startup
using -D directive?

Oleg

-Original Message-
From: Tim Patton [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 24, 2004 19:06
To: [EMAIL PROTECTED]
Subject: Logging Problem


I've been trying to get logging output to debug a cookie problem but no luck
so far.  As far as I can tell from the docs, I just need these 4 lines of
code in my progrma somewhere:


System.setProperty(org.apache.commons.logging.simplelog.defaultlog,debug
);
  System.setProperty(org.apache.commons.logging.Log,
org.apache.commons.logging.impl.SimpleLog);
  System.setProperty(org.apache.commons.logging.simplelog.showdatetime,
true);

System.setProperty(org.apache.commons.logging.simplelog.log.httpclient.wire
, debug);

System.setProperty(org.apache.commons.logging.simplelog.log.org.apache.comm
ons.httpclient, debug);


Am I missing something else?  I get no logging output, but my program can
connect to a site and grab a page no problem.  I do not have Log4J anywhere
on my machine as far as I can tell.  I made a short test program to see what
was going on, I can send that to the list if it will help.

Tim


-
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]



***
The information in this email is confidential and may be legally privileged.
Access to this email by anyone other than the intended addressee is
unauthorized.  If you are not the intended recipient of this message, any
review, disclosure, copying, distribution, retention, or any action taken or
omitted to be taken in reliance on it is prohibited and may be unlawful.  If
you are not the intended recipient, please reply to or forward a copy of
this message to the sender and delete the message, any attachments, and any
copies thereof from your system.

***

-
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Logging problem

2003-12-31 Thread Lomvardias Christopher
When attempting to run the example source code at the bottom of
http://jakarta.apache.org/commons/httpclient/tutorial.html within
JRun/ColdFusion MX, I get the following error:

[1]org.apache.commons.logging.LogConfigurationException:
java.lang.ClassCastException
at
org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:558)
at
org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:345)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:390)
at
org.apache.commons.httpclient.HttpClient.clinit(HttpClient.java:100)

I should note that JRun/ColdFusion MX uses Log4J, so I assume there is some
interaction going on here that is causing the problem.

I'd welcome any suggestions.

Thanks,

Chris




Re: Logging problem

2003-12-31 Thread Eric Johnson
Chris,

Looks suspiciously like a ClassLoader problem, and not directly related 
to HttpClient.  I suggest looking on the net for compatibility issues 
with JRun/ColdFusion MX and commons-logging.

Also see the logging instructions for HttpClient here: 
http://jakarta.apache.org/commons/httpclient/logging.html, although if 
you're using Log4J, you'll have to adopt the instructions as 
appropriate.  I suggest searching the HttpClient email archives 
(http://nagoya.apache.org/eyebrowse/SummarizeList?listId=128) for Log4J 
to see how other people have solved this.

-Eric Johnson

Lomvardias Christopher wrote:

When attempting to run the example source code at the bottom of
http://jakarta.apache.org/commons/httpclient/tutorial.html within
JRun/ColdFusion MX, I get the following error:
[1]org.apache.commons.logging.LogConfigurationException:
java.lang.ClassCastException
at
org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:558)
at
org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:345)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:390)
at
org.apache.commons.httpclient.HttpClient.clinit(HttpClient.java:100)
I should note that JRun/ColdFusion MX uses Log4J, so I assume there is some
interaction going on here that is causing the problem.
I'd welcome any suggestions.

Thanks,

Chris



 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Wire logging problem...

2003-10-06 Thread David Brady
I use Log4j for our current project - no problems with it.

I've added to our log4j.properties file:

log4j.category.org.apache=INFO

This represses all of the httpclient debug messages (great!), but it doesn't 
impact the wire debug messages.

Am I missing something?

I've checked the logging documentation @
http://jakarta.apache.org/commons/httpclient/logging.html - and played with 
setting some system properites.  Nothing helped.  Once I get to the point of 
throwing random nconfiguration properties around, I figure it is best to ask 
for some help...

Any help appreciated.  Thanks much.

_
Instant message during games with MSN Messenger 6.0. Download it now FREE!  
http://msnmessenger-download.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Wire logging problem...

2003-10-06 Thread Eric Johnson
David,

You might try setting the logging level for the Logger called 
httpclient.wire.

In other words, add this:

log4j.category.httpclient.wire=

with the debug level of your choice.  If you look carefully at the 
logging.html page, you can dig this tidbit out from this line:
System.setProperty(org.apache.commons.logging.simplelog.log.httpclient.wire, 
debug);

although perhaps that is not as obvious as it should be.

-Eric.

David Brady wrote:

I use Log4j for our current project - no problems with it.

I've added to our log4j.properties file:

log4j.category.org.apache=INFO

This represses all of the httpclient debug messages (great!), but it 
doesn't impact the wire debug messages.

Am I missing something?

I've checked the logging documentation @
http://jakarta.apache.org/commons/httpclient/logging.html - and played 
with setting some system properites.  Nothing helped.  Once I get to 
the point of throwing random nconfiguration properties around, I 
figure it is best to ask for some help...

Any help appreciated.  Thanks much.

_
Instant message during games with MSN Messenger 6.0. Download it now 
FREE!  http://msnmessenger-download.com

-
To unsubscribe, e-mail: 
[EMAIL PROTECTED]
For additional commands, e-mail: 
[EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Wire logging problem...

2003-10-06 Thread David Brady



David,

You might try setting the logging level for the Logger called 
httpclient.wire.

In other words, add this:

log4j.category.httpclient.wire=
Alas, I already had it in my log4j.properties file from my experiments over 
the weekend.  Didn't impact wire logging levels at all:

log4j.category.org.apache=INFO
log4j.logger.httpclient.wire=INFO
_
Help protect your PC.  Get a FREE computer virus scan online from McAfee. 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Wire logging problem...

2003-10-06 Thread David Brady
Yup - found it / fixed it.  I had transcribed log4j.category to 
log4j.logger.

That was it.   Thanks much.

Cheers,
David




From: David Brady [EMAIL PROTECTED]
Reply-To: Commons HttpClient Project 
[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Wire logging problem...
Date: Mon, 06 Oct 2003 12:19:37 -0700




David,

You might try setting the logging level for the Logger called 
httpclient.wire.

In other words, add this:

log4j.category.httpclient.wire=
Alas, I already had it in my log4j.properties file from my experiments over 
the weekend.  Didn't impact wire logging levels at all:

log4j.category.org.apache=INFO
log4j.logger.httpclient.wire=INFO
_
Help protect your PC.  Get a FREE computer virus scan online from McAfee. 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

-
To unsubscribe, e-mail: 
[EMAIL PROTECTED]
For additional commands, e-mail: 
[EMAIL PROTECTED]

_
Get McAfee virus scanning and cleaning of incoming attachments.  Get Hotmail 
Extra Storage!   http://join.msn.com/?PAGE=features/es

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]