Re: Proposal to contribute a SyslogAccessLogValve to the Tomcat project

2013-12-16 Thread Cyrille Le Clerc
at 5:41 PM, Cyrille Le Clerc wrote: > Hi Christopher, > > Changing the existing AccessLogValve to use a logger would have an impact on > performances with the creation of intermediate String objects and keeping > backward compatibility on the access logs files management (naming, &g

Re: Proposal to contribute a SyslogAccessLogValve to the Tomcat project

2013-12-12 Thread Cyrille Le Clerc
; approach would require substantial efforts. Cyrille On Thu, Dec 12, 2013 at 2:56 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Cyrille, > > On 12/12/13, 3:56 AM, Cyrille Le Clerc wrote: > >

Re: Proposal to contribute a SyslogAccessLogValve to the Tomcat project

2013-12-12 Thread Cyrille Le Clerc
ce library. The only help I need is the split of the AccessLogValve to reuse the formatting logic. Cyrille On Thu, Dec 12, 2013 at 11:42 AM, Brian Burch wrote: > > On 12/12/13 08:56, Cyrille Le Clerc wrote: >> >> Hello Christopher, >> >> Delegating to log4j/logbac

Re: Proposal to contribute a SyslogAccessLogValve to the Tomcat project

2013-12-12 Thread Cyrille Le Clerc
HA256 > > Cyrille, > > On 12/11/13, 1:49 PM, Cyrille Le Clerc wrote: > > Dear Tomcat community, > > > > We at CloudBees implemented a SyslogAccessLogValve that outputs > > the access logs to a syslog server. > > > > The support of Syslog is more detailed

Proposal to contribute a SyslogAccessLogValve to the Tomcat project

2013-12-11 Thread Cyrille Le Clerc
Dear Tomcat community, We at CloudBees implemented a SyslogAccessLogValve that outputs the access logs to a syslog server. The support of Syslog is more detailed that what we can usually find in java logging libraries as it allows to * configure all the syslog header fields: appName, source hostn

Re: What monitoring do you use/recommend?

2011-04-21 Thread Cyrille Le Clerc
Hello Gautam, I recommend you to have a look at Hyperic HQ (1). I had very good experiences with it, including a big french telco operator which has been using it for more than three years nearly 100 Tomcat JVMs. VMWare/SpringSource is investing a lot on Hyperic HQ, the Open Source / Comm

Re: HTTP connector to be aware of proxied SSL requests

2010-06-17 Thread Cyrille Le Clerc
ing 'internalProxies' attribute and rely on the default that trusts all the class A, B & C private IP addresses. Hope this helps, Cyrille -- Cyrille Le Clerc clecl...@xebia.fr http://blog.xebia.fr On Thu, Jun 17, 2010 at 2:41 AM, Matt Peterson wrote: > > Hi All, > > > &

Re: Proposal : port mod_expires in java as ExpiresFilter Servlet Filter

2010-04-16 Thread Cyrille Le Clerc
tWriteResponseBody' event is that I tried my best to implement in ExpiresFilter the same behavior as in Apache Httpd mod_expires. Cyrille On Mon, Mar 29, 2010 at 8:32 PM, Cyrille Le Clerc wrote: > > Thanks for your fast feedbacks Christopher, > > I updated the patch proposed on

Proposal : Enhancing docs for RemoteIpValve and RemoteIpFilter

2010-03-30 Thread Cyrille Le Clerc
know if this proposal is interesting. Cyrille -- Cyrille Le Clerc clecl...@xebia.fr (1) http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html#Remote IP Valve (2) will be available in Tomcat 7 in /config/filter.html (3) http://tomcat.apache.org/tomcat-6.0-doc

Re: Proposal : port mod_expires in java as ExpiresFilter Servlet Filter

2010-03-29 Thread Cyrille Le Clerc
t 3:20 PM, Christopher Schultz wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Cyrille, > > On 3/26/2010 12:43 PM, Cyrille Le Clerc wrote: > > I have proposed with bugzilla 48998 a port of Apache mod_expires in > > Java as ExpiresFilter Servlet Filte

Proposal : port mod_expires in java as ExpiresFilter Servlet Filter

2010-03-26 Thread Cyrille Le Clerc
://issues.apache.org/bugzilla/show_bug.cgi?id=48998 I would be very happy to work on enhancing this proposal if the project is interested. Cyrille -- Cyrille Le Clerc clecl...@xebia.fr http://blog.xebia.fr - To unsubscribe, e-mail

Re: Question on Linux Tomcat Apache Server and Port Redirection for a robotics site

2010-03-15 Thread Cyrille Le Clerc
My mistake on port 80 without being root, I never used jsvc ; I relied on startup.sh. Cyrille On Mon, Mar 15, 2010 at 1:53 PM, André Warnier wrote: > Cyrille Le Clerc wrote: >> >> #4 I slightly disagree with André on asking Tomcat to listen on port >> 80 ; I am very reluc

Re: Question on Linux Tomcat Apache Server and Port Redirection for a robotics site

2010-03-15 Thread Cyrille Le Clerc
   Hello Melanie,    I share André's vision : #1 To get the root context http://www.robotronics.org/ forwarded to Tomcat, the easiest way is to declare your java application as the root context of your Tomcat (either naming it ROOT.war or declaring it with path="" in server.xml according to your

Re: Question on Linux Tomcat Apache Server and Port Redirection for a robotics site

2010-03-14 Thread Cyrille Le Clerc
-match/ http://blog.xebia.fr/2009/05/05/tomcat-adresse-ip-de-linternaute-load-balancer-reverse-proxy-et-header-http-x-forwarded-for/ http://blog.xebia.fr/2009/11/13/tomcat-ssl-communications-securisees-et-x-forwarded-proto/ Hope this helps, good luck Cyrille -- Cyrille Le Clerc clecl...@xebia.fr http://b

Re: getServerName returns 'localhost'

2010-03-03 Thread Cyrille Le Clerc
to look at the "ProxyPreserveHost On" directive in Apache configuration (2). If you use It would look like : ProxyPreserveHost On ProxyPass /mypath http://localhost:8080/mypath Hope this helps, Cyrille -- Cyrille Le Clerc clecl...@xebia.fr http://blog.xebia.fr (1) see http://httpd.

Re: Apache 2.2 and TomCat 6.0 using SSL

2010-02-26 Thread Cyrille Le Clerc
ot;https" ... .. ProxyPreserveHost On ProxyPass /mypath balancer://myapplicationssl/mypath stickysession=JSESSIONID TOMCAT CONFIGURATION = ... ... Hope this helps, Cyrille On Th

Re: Apache 2.2 and TomCat 6.0 using SSL

2010-02-25 Thread Cyrille Le Clerc
in version 6.0.24 of Tomcat and is available for previous versions in a separate jar (2). Hope this helps, Cyrille -- Cyrille Le Clerc clecl...@xebia.fr (1) http://blog.xebia.fr/2009/11/13/tomcat-ssl-communications-securisees-et-x-forwarded-proto/ (2) http://code.google.com/p/xebia-france/wiki/Rem

Re: GC(JVM Heap usage) tool

2010-02-08 Thread Cyrille Le Clerc
Hello Paulwintech, I suggest you to have a look at Hyperic. It is a very interesting tool and you can extend it quite easily with custom JMX MBeans. Cyrille -- Cyrille Le Clerc clecl...@xebia.fr On Mon, Feb 8, 2010 at 2:01 PM, Leon Rosenberg < rosenberg.l...@googlemail.com> wrote: > H

Re: Threadlocal problem

2010-02-02 Thread Cyrille Le Clerc
eanup this ThreadLocal. Cyrille -- Cyrille Le Clerc clecl...@xebia.fr (1) http://fisheye6.atlassian.com/browse/commons/proper/lang/trunk/src/java/org/apache/commons/lang/builder/ToStringStyle.java?r=594386#l136 On Tue, Feb 2, 2010 at 2:44 PM, Mark Thomas wrote: > > On 02/02/2010 13:

JMX Client UnmarshalException with JmxRemoteLifecycleListener and useLocalPorts="true"

2010-01-25 Thread Cyrille Le Clerc
insights on this problem, I am very interested. Cyrille -- Cyrille Le Clerc clecl...@xebia.fr Environment : apache-tomcat-6.0.24, Java HotSpot(TM) Server VM (build 11.3-b02, mixed mode), hyperic-agent-4.1.2-1053, Linux 2.6.9-78.ELlargesmp HYPERIC AGENT ERROR MESSAGE 2010

Re: Changing request address to x-forwarded-for

2010-01-06 Thread Cyrille Le Clerc
including this valve will hopefully be released very soon ; vote has started on the tomcat-dev mailing list just before christmas. Don't hesitate to ask questions if the docs aren't clear enough, Hope this helps, Cyrille -- Cyrille Le Clerc clecl...@xebia.fr http://blog.xe

Re: How To Get MBean Server of Apache Tomcat.

2009-12-08 Thread Cyrille Le Clerc
the two firsts jsps as I mostly monitor Tomcat and application specific MBeans, not very much JVM MBeans (except via Hyperic). Hope this helps, Cyrille -- Cyrille Le Clerc clecl...@xebia.fr http://blog.xebia.fr (1) : java.lang:type=Runtime, java.lang:type=OperatingSystem, java.lang:type=

Re: How To Get MBean Server of Apache Tomcat.

2009-12-08 Thread Cyrille Le Clerc
\ -Dcom.sun.management.jmxremote.port=6969 \ -Dcom.sun.management.jmxremote.ssl=false \ -Dcom.sun.management.jmxremote.authenticate=false JMX listen port 6969 is configurable. All details at http://tomcat.apache.org/tomcat-6.0-doc/monitoring.html Hope this helps, Cyrille -- Cyrille Le Clerc clecl

Re: Tomcat Https loadbalancing??

2009-11-25 Thread Cyrille Le Clerc
tocol, all the network device can speak it, I can troubleshoot it with telnet and curl, ... :-) Cyrille -- Cyrille Le Clerc clecl...@xebia.fr http://blog.xebia.fr On Wed, Nov 25, 2009 at 12:09 PM, David Cassidy wrote: > Cyrille, > > Nice if you've got that sort of money. > it is q

Re: Tomcat Https loadbalancing??

2009-11-25 Thread Cyrille Le Clerc
slation is quite good (2). My preference is to use a level 7 load balancer in front of Apache httpd servers with mod_proxy_http+mod_proxy_balancer and then Tomcat servers. Of course, this topology is not always the best one but is very often relevant. Hope this helps, Cyrille -- Cyrill

Re: Advise on configuring SSL

2009-11-25 Thread Cyrille Le Clerc
Httpd and Load Balancer layers. The document is written in french but the google translation is quite good (3). Hope this helps, Cyrille -- Cyrille Le Clerc clecl...@xebia.fr http://blog.xebia.fr (1) http://code.google.com/p/xebia-france/wiki/RemoteIpValve (2) http://blog.xebia.fr/2009/11/13/t

Re: Cannot set remote address in valve (Tomcat 5.5)

2009-10-21 Thread Cyrille Le Clerc
proxy-that-is-not-the-load-balancer" Does it make sense ? Cyrille -- Cyrille Le Clerc clecl...@xebia.fr cyri...@cyrilleleclerc.com http://blog.xebia.fr On Wed, Oct 21, 2009 at 6:57 AM, Elli Albek wrote: > > A question: How do you know that a proxy is trusted? Is it by providing a >

Re: Valves being converted to Filters?

2009-10-20 Thread Cyrille Le Clerc
aced with a Filter API. I feel interfaces (HttpServletRequest & HttpServletResponse) will be much more easy to manipulate than the current implementations (Request, Response). Hopr this clarifies my message, Cyrille -- Cyrille Le Clerc clecl...@xebia.fr cyri...@cyrilleleclerc.c

Re: Cannot set remote address in valve (Tomcat 5.5)

2009-10-11 Thread Cyrille Le Clerc
quirements as it is granted to "The original author or authors ..." but it can be changed with pleasure. Hope this helps, Cyrille -- Cyrille Le Clerc clecl...@xebia.fr cyri...@cyrilleleclerc.com http://blog.xebia.fr On Sun, Sep 27, 2009 at 11:13 AM, Mark Thomas wrote: > >

Re: Cannot set remote address in valve (Tomcat 5.5)

2009-10-09 Thread Cyrille Le Clerc
one day, I will find time to blog about it with clear schemas ; it will be much more easy to understand than long sentences :-) Cyrille -- Cyrille Le Clerc clecl...@xebia.fr cyri...@cyrilleleclerc.com http://blog.xebia.fr - To

Re: Cannot set remote address in valve (Tomcat 5.5)

2009-10-09 Thread Cyrille Le Clerc
Hello Christopher, > >    I am afraid there may be a flaw in the algorythm looking for the > > first IP  of the coma delimited x-forwarded-for header without > > ensuring that this first IP has been set by a trusted proxy and not by > > the requester ( getFirstIP(xforwardedForHeaderValue) ). Su

Re: Cannot set remote address in valve (Tomcat 5.5)

2009-10-08 Thread Cyrille Le Clerc
and at the WAR level with a servlet filter : RemoteIpValve (4) and XForwardedFilter (5). In addition to handle X-Forwarded-For, they also integrate X-Forwarded-Proto (ssl). These java ports integrate the same trusted proxies concept to prevent spoofing. Cyrille -- Cyrille Le Clerc clecl...@xeb

Re: Cannot set remote address in valve (Tomcat 5.5)

2009-10-05 Thread Cyrille Le Clerc
RemoteIpValve (https://issues.apache.org/bugzilla/show_bug.cgi?id=47330) . Hope this helps, Cyrille -- Cyrille Le Clerc clecl...@xebia.fr cyri...@cyrilleleclerc.com http://blog.xebia.fr On Mon, Oct 5, 2009 at 12:43 PM, Elli Albek wrote: > > - Original Message - > From: Christopher Schu

Re: Secure jsessionid cookie : request.scheme==https versus request.secure == true

2009-06-23 Thread Cyrille Le Clerc
ubclassing org.springframework.security.securechannel.SecureChannelProcessor. We use the second on production today, I added the small piece of code at the end of this email for the people who would be intesrested. Cyrille -- Cyrille Le Clerc cyrille.lecl...@pobox.com clecl...@xebia.fr http://blog.xebia.fr pu

Re: Secure jsessionid cookie : request.scheme==https versus request.secure == true

2009-06-22 Thread Cyrille Le Clerc
pache/catalina/connector/RemoteIpValve.java On Tue, Jun 23, 2009 at 12:40 AM, Mark Thomas wrote: > Cyrille Le Clerc wrote: >> Thanks very much for the time you spend on my problem Christopher. >> >> I use two connectors : one with secure=true and scheme=http ; another >> with s

Re: Secure jsessionid cookie : request.scheme==https versus request.secure == true

2009-06-22 Thread Cyrille Le Clerc
Thanks very much for the time you spend on my problem Christopher. I use two connectors : one with secure=true and scheme=http ; another with secured=true, scheme=https. > What is the requirement that scheme=http? You can actually use a > (non-secure) HTTP connector and still set scheme=https. Do

Re: Secure jsessionid cookie : request.scheme==https versus request.secure == true

2009-06-22 Thread Cyrille Le Clerc
Thanks for your response Christopher, > > Could we imagine an evolution of Tomcat to generate secure session > > cookies if "request.scheme == https" rather than on "request.secure == > > true" ? I would be very pleased to propose a patch. > > Do you have a reason to set request.secure=false wh

Re: Secure jsessionid cookie : request.scheme==https versus request.secure == true

2009-06-22 Thread Cyrille Le Clerc
han "https". Due to this secure JSESSIONID cookie for non SSL http requests, clients like "Apache Http Client" won't retransmit the cookie for between requests. I hope my usecase is clearer. Cyrille On Sun, Jun 21, 2009 at 12:52 PM, Cyrille Le Clerc wrote: >

Secure jsessionid cookie : request.scheme==https versus request.secure == true

2009-06-21 Thread Cyrille Le Clerc
;secure" requests whose remoteAddr matches the 10.* block. Cyrille (1) See http://fisheye6.atlassian.com/browse/tomcat/trunk/java/org/apache/catalina/connector/Request.java?r=HEAD#l2367 (2) web browsers, Apache Commons Http client, etc -- Cyrille Le Clerc cyrille.lecl...@pobox.com clecl...@xebia