Log4j2


Emiliano Carlesi

Email: [email protected]
Lync: [email protected]
Mobile: +39 3487837153
Phone: +39 0650939115



-----Original Message-----
From: Stefan Magnus Landrø [mailto:[email protected]] 
Sent: Thursday, May 28, 2015 11:59 PM
To: HttpClient User Discussion
Subject: Re: There are known problems of running HttpClient in a web 
application?

What logging framework are you using?

2015-05-28 23:43 GMT+02:00 Emiliano Carlesi <[email protected]
>:

> Hi to all,
> I have a problem I can't understand related to the execution of 
> HttpClient
> 4 within a web application running in Tomcat + Struts2.
>
> I create an HTTP client for a specific site that uses basic 
> authentication over HTTPS.
> While execute my client from a console application,  it works properly.
> When I try to use the client from within the web application I always 
> get an HTTP 301 result code from the web server.
>
> I have no access to the server logs.
>
> I try to enable the trace using these  instruction:
>
>
> System.setProperty("org.apache.commons.logging.Log","org.apache.common
> s.logging.impl.SimpleLog"); 
> System.setProperty("org.apache.commons.logging.simplelog.showdatetime"
> ,
> "true");
> System.setProperty("org.apache.commons.logging.simplelog.log.org.apach
> e.http.wire",
> "DEBUG");
> System.setProperty("org.apache.commons.logging.simplelog.log.org.apach
> e.http.impl.conn",
> "DEBUG");
> System.setProperty("org.apache.commons.logging.simplelog.log.org.apach
> e.http.impl.client",
> "DEBUG");
> System.setProperty("org.apache.commons.logging.simplelog.log.org.apach
> e.http.client",
> "DEBUG");
> System.setProperty("org.apache.commons.logging.simplelog.log.org.apach
> e.http",
> "DEBUG");
>
> The trace work when I invoke the client from within the console 
> application, instead nothing is logged when the client is invoked from 
> within the web application.
>
> I try to use fiddler to see what travel on the wire but there are 
> problem with the HTTPS.
>
> There is some known issue with this scenario?
>
> Thanks
>
> Ciao
>
> Emiliano Carlesi
>
> Email: [email protected]
> Lync: [email protected]
> Mobile: +39 3487837153
> Phone: +39 0650939115
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


--
BEKK Open
http://open.bekk.no

TesTcl - a unit test framework for iRules http://testcl.com

Reply via email to