Re: encodeURL, jsessionid and mod_rewrite ?

2017-10-04 Thread Laurent Perez
Peter Kreuser wrote: > >> >> Peter Kreuser >> >> Am 04.10.2017 um 02:44 schrieb Christopher Schultz < >>> ch...@christopherschultz.net>: >>> >>> -BEGIN PGP SIGNED MESSAGE----- >>> Hash: SHA256 >>> >>> L

encodeURL, jsessionid and mod_rewrite ?

2017-10-03 Thread Laurent Perez
Hi I'm using apache+mod_proxy+mod_rewrite as a tomcat frontend. A "foo" war is deployed at /foo context path under tomcat. The /foo path is not public, apache has a rewrite rule defined as : /bar/* rewrites internally to /foo/*. I'm using jstl and its for every url in my jsps to gain the

Getting a WAR last deployment timestamp thru JMX ?

2017-09-07 Thread Laurent Perez
deployment time of a war ? Thanks laurent -- http://laurentperez.fr J2EE, HTML5, JS, CSS3

Re: Setting up HTTP/2 with no SSL connector ?

2017-03-31 Thread Laurent Perez
Yes I was under the false impression that Chrome did support h2c ; it does not, as you pointed. HTTP/2 works fine now. Thanks On Thu, Mar 30, 2017 at 10:46 PM, Mark Thomas <ma...@apache.org> wrote: > On 30 March 2017 20:53:06 BST, Laurent Perez <l.lauren...@gmail.com> > wrote:

Re: Setting up HTTP/2 with no SSL connector ?

2017-03-30 Thread Laurent Perez
re could I check in tomcat source to see if the client is sending the h2c upgrade token ? laurent On Thu, Mar 30, 2017 at 9:07 PM, Mark Thomas <ma...@apache.org> wrote: > > On 30/03/17 18:02, Laurent Perez wrote: > > Hi > > > > I managed to run the servlets/serverpush/

Setting up HTTP/2 with no SSL connector ?

2017-03-30 Thread Laurent Perez
between mod_proxy and Tomcat. But org.apache.coyote.AbstractProcessor#isPushSupported then returns false, as if the UpgradeProtocol did not fire. Is it possible to enable HTTP/2 with no SSL connector ? Thanks laurent -- http://cv.laurentperez.fr J2EE, HTML5, JS, CSS3

RE: Best practice to programmatically get the disableURLRewriting context attribute value

2014-04-17 Thread Sauvel Laurent
Thanks for your answer. 1. Before testing the code below with different Tomcat configurations, I would like to know if there is a better way to do what I want. I'm not really satisfied with this code that is closely related to Tomcat classes. 2. The original problem is that I would like to:

Re: Re : Re: Issue with keep-alive connections, when using APR Connector on Windows and starting Processes from Servlets

2012-07-02 Thread Laurent Petit
PM, Laurent Petit lpe...@yseop.com wrote: On Fri, 2012-06-29 at 15:27 +0200, Jeff MAURY wrote: No, it does not (yet) make sense because one piece of the puzzle is missing. The Local socket is not a TCP socket, it is created from a path rather than from an IP address. So

Re: Re : Re: Issue with keep-alive connections, when using APR Connector on Windows and starting Processes from Servlets

2012-06-29 Thread Laurent Petit
-sa.bInheritHandle = TRUE; ( http://svn.apache.org/repos/asf/tomcat/native/branches/1.1.x/native/os/win32/ntpipe.c ) Jeff, What else could we do to help investigate / fix this issue ? Cheers, -- Laurent Regards, Konstantin Preißer

Re: Re : Re: Issue with keep-alive connections, when using APR Connector on Windows and starting Processes from Servlets

2012-06-29 Thread Laurent Petit
architecture ? What I guessed is that the Tomcat native stuff created with the inherit flag, but even if it does, I don't see why it should not work if the socket is closed after a timeout. Regards Jeff On Fri, Jun 29, 2012 at 11:22 AM, Laurent Petit lpe...@yseop.com wrote: Hello Jeff

Re: Re : Re: Issue with keep-alive connections, when using APR Connector on Windows and starting Processes from Servlets

2012-06-29 Thread Laurent Petit
) Jeff On Fri, Jun 29, 2012 at 2:40 PM, Laurent Petit lpe...@yseop.com wrote: Hello, On Fri, 2012-06-29 at 11:45 +0200, Jeff MAURY wrote: That what I guessed but I don't understand everything. The code you are referencing is related to NTPipes and not sockets. I'm

Re: Re : Re: Issue with keep-alive connections, when using APR Connector on Windows and starting Processes from Servlets

2012-06-25 Thread Laurent Petit
Hello, Is there anything I can do to help qualify the problem even more ? Beyond having shown the source code of the servlet, would a fully mavenized example help? Anything else? Regards, -- Laurent On Fri, 2012-06-22 at 10:21 +0200, Laurent Petit wrote: Hello, On Thu, 2012-06-21 at 22

Re: Re : Re: Issue with keep-alive connections, when using APR Connector on Windows and starting Processes from Servlets

2012-06-25 Thread Laurent Petit
, Laurent Petit lpe...@yseop.com wrote: Hello, Is there anything I can do to help qualify the problem even more ? Beyond having shown the source code of the servlet, would a fully mavenized example help? Anything else? Regards, -- Laurent On Fri, 2012-06-22 at 10:21 +0200

Re: Re : Re: Issue with keep-alive connections, when using APR Connector on Windows and starting Processes from Servlets

2012-06-25 Thread Laurent Petit
, -- Laurent Petit On Mon, 2012-06-25 at 14:42 +0200, Jeff MAURY wrote: Yes, fine Jeff On Mon, Jun 25, 2012 at 1:46 PM, Laurent Petit lpe...@yseop.com wrote: On Mon, 2012-06-25 at 11:51 +0200, Jeff MAURY wrote: If you can post a Mavenized example, I could have time to run

Re: Re : Re: Issue with keep-alive connections, when using APR Connector on Windows and starting Processes from Servlets

2012-06-22 Thread Laurent Petit
is the code for the small java program: https://www.refheap.com/paste/3286 Regards, -- Laurent Jeff On Thu, Jun 21, 2012 at 10:45 PM, Laurent Petit lpe...@yseop.com wrote: En Réponse à Tomcat Users List users@tomcat.apache.org le 21 juin 2012 00:07 Can you verify your 2 threads

Re : Re: Issue with keep-alive connections, when using APR Connector on Windows and starting Processes from Servlets

2012-06-21 Thread Laurent Petit
, Jun 20, 2012 at 4:19 PM, Laurent Petit lpe...@yseop.com wrote: Hello, I have a problem with keep-alive connections, when starting a subprocess (via JDK's default ProcessBuilder/Process API), while also having started Tomcat with the APR HTTP/1.1 Connector. The problem symptom is with Keep

Issue with keep-alive connections, when using APR Connector on Windows and starting Processes from Servlets

2012-06-20 Thread Laurent Petit
Hello, I have a problem with keep-alive connections, when starting a subprocess (via JDK's default ProcessBuilder/Process API), while also having started Tomcat with the APR HTTP/1.1 Connector. The problem symptom is with Keep-Alive connection, as follows: - the client (browser, jmeter, etc.)

Re: Tomcat 7 - New attribut aliases in the context configuration item

2011-12-06 Thread Sylvain Laurent
Here is the preview of the documentation : http://ci.apache.org/projects/tomcat/tomcat7/docs/config/context.html#Virtual_webapp (this is a nightly snapshot of the tomcat 7 branch) On 6 déc. 2011, at 17:31, Sylvain Goulmy wrote: Hi Sylvain, I have taken the sources from the trunk version

Re: Tomcat 7 - New attribut aliases in the context configuration item

2011-12-06 Thread Sylvain Laurent
On 6 déc. 2011, at 18:07, Sylvain Goulmy wrote: Hi Sylvain, I have tested your functionnality thanks to the description you give in your code. This is just EXACTLY what i wanted. I can define an external directory, the ressources are searched in my application and then in the directory

Re: Tomcat 7 - New attribut aliases in the context configuration item

2011-12-05 Thread Sylvain Laurent
to have the functionnality on the live environment, i'll keep on watching your patch to see if that can give me the functionnality i'm looking for. Thank you for this information. On Fri, Dec 2, 2011 at 8:11 PM, Sylvain Laurent slaur...@apache.org wrote: keep a watch on https

Re: Tomcat 7 - New attribut aliases in the context configuration item

2011-12-02 Thread Sylvain Laurent
keep a watch on https://issues.apache.org/bugzilla/show_bug.cgi?id=51741 . When it is implemented, it should give you this functionality. On 30 nov. 2011, at 14:58, Sylvain Goulmy wrote: So the effect is that multiple physical directories must be searched for a given resource?

Re: Babysitting ThreadLocals

2011-11-25 Thread Sylvain Laurent
On 25 nov. 2011, at 15:58, Christopher Schultz wrote: On 11/24/11 4:02 PM, Sylvain Laurent wrote: I don't think this ThreadLocal creates a real leak of classloader. It would if dayFormat was static. IIRC, ThreadLocal essentially puts a key/value pair in a Map in the Thread. I dunno what

Re: Babysitting ThreadLocals

2011-11-24 Thread Sylvain Laurent
On 23 nov. 2011, at 16:48, Christopher Schultz wrote: Our servlet defines the ThreadLocal to be protected (because this is a base class for several servlets that all do similar things) and transient (because we just don't need it to be serialized) and override the initialValue method, like

Re: ThreadLocal Memory Leak Protection - Executor threadRenewalDelay questions

2011-10-27 Thread Sylvain Laurent
Hello, On 26 oct. 2011, at 17:55, Rohit Kelapure wrote: * Reposting from the dev list as advised * Dear All, After going through the thread renewal code in /tomcat-8.0.x/java/org/apache/tomcat/util/threads/TaskQueue.java ,

How to add/remove DataSource dynamically to a running Tomcat/WebApp

2011-08-18 Thread Laurent Fournie
I'm building a multi-tenant WebApp. For ease of maintenance and operation, I would like to have a single WebApp (WAR) in a single Tomcat instance (JVM process) handling the requests of all tenants. Tenants (my customers) can be added and removed dynamically in the system (using an

Re: [OT] Tomcat 7 parallel deployment and PermGen Heap Space

2011-07-22 Thread Sylvain Laurent
My personal advice with the Oracle driver is to put it at the server level, not at the webapp level. For instance if you use the query timeouts, oracle JDBC spawns a Thread to handle the timeouts, and there is no way to properly stop this thread so tomcat will continue complaining about leaking

Re: Start connectors after deployment of all webapps have been completed

2011-05-15 Thread Sylvain Laurent
have a look at the bindOnInit parameter on the connector http://tomcat.apache.org/tomcat-7.0-doc/config/http.html On 15 mai 2011, at 12:31, Afkham Azeez wrote: Hi folks, We are using Embedded Tomcat 7.0.14. We create connectors in the normal way, add the webapps to Tomcat, and then call

Re: Suggestions for really getting to the bottom of memory leak issues on hot-deploys

2011-05-14 Thread Sylvain Laurent
[from your blog entry] I also think that logging leaks may be more helpful than using part of manager, because many don't deploy manager (they remove it). it is logged when the application is stopped, on recent tomcat 6 and 7. I think your approach to finding leaks by performing comparisons is

Tomcat JMX Monitoring - Busy Threads?

2011-03-03 Thread Sean Laurent
I'm trying to monitor Tomcat 6.0.29 using JMX. Specifically, I want to monitor the number of active threads servicing requests so I can get an alert if it approaches the maximum. While I have JMX monitoring working in general, I can't seem to get the number of threads. Everything I have read

Re: IS that a good idea moving all the common libs?

2010-12-22 Thread Sylvain Laurent
On 22 déc. 2010, at 12:49, Mark Thomas wrote: It is do-able if you are prepared to accept the associated constraints: - all web apps must use the exact same version of every shared library - updating the shared libraries requires a Tomcat restart - all of the shared web apps must be well

Re: 6.0.26 java.lang.Thread.State: WAITING (on object monitor)

2010-12-11 Thread Sylvain Laurent
Some short answers : - (for the moment) threads are always reused, even after an application is stopped. - tomcat 6.0.26 tries to clean the threadlocals which may provoke a leak, but 1) it was unsafe and has been disabled by default from 6.0.27 (see

Re: [Tomcat] Can I see if 'maxThreads' is exceeded?

2010-11-29 Thread Sylvain Laurent
On 29 nov. 2010, at 15:01, Mark Thomas wrote: On 29/11/2010 13:57, sol myr wrote: Hi, I'm new to Tomcat management, and would appreciate help on the 'maxThreads' property of the Http Connector: 1) Please tell if I understood correctly: Suppose I configure 'maxThreads=100', and 130

Re: OutOfMemoryError some time on some tomcat!!!!1

2010-11-23 Thread Sylvain Laurent
Don't bother with jhat, try eclipse Memory Analysis Tool instead. It's much more friendly and efficient to find leaks. On 23 nov. 2010, at 12:18, xu cheng wrote: hi, Chuck.Caldarale I referenced to these two links http://blogs.sun.com/fkieviet/entry/classloader_leaks_the_dreaded_java

Removing the date from the name of the file catalina.{date}.log

2010-03-17 Thread Laurent Vaills
. Laurent

Re: Removing the date from the name of the file catalina.{date}.log

2010-03-17 Thread Laurent Vaills
I am so stupid ! Thanks for pointing me this error, it works as expected now. Laurent 2010/3/17 Konstantin Kolinko knst.koli...@gmail.com 2010/3/17 Laurent Vaills laurent.vai...@gmail.com: (...) 1catalina.org.apache.juli.FileHandler.level = FINE

ServletContext.java version in the Tomcat 6.0.16 or 6.0.18 source code

2009-04-06 Thread Laurent SAUVEL
Application Server: Apache Tomcat/6.0.16 Thank you in advance for your answers. Laurent - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

shared libs, but non shared static object instances between multiple webapps?

2008-05-07 Thread Laurent
(java?) classloader is reacting specially in that case, like shortcutting it's ressource search?! Thanks, Laurent JVM : 1.6.0 update2 OS : Windows Server 2003 Tomcat : 6.0.13

Instantiating jsp custom tags outside the tag scope itself ?

2007-04-20 Thread Laurent Perez
. It works, but is there something very, very wrong with this approach ? My tag usage within my renderer class follows the Tag lifecycle, i.e I always call tag.recycle(); at the end. Thanks for any input ! laurent -- a href=http://in-pocket.blogspot.com;http://in-pocket.blogspot.com - Mobile world

Tomcat5.5.17 not releasing custom JSP tags ?

2006-12-06 Thread Laurent Perez
Hi A webapp I'm working on uses custom JSP tags (1.2) under tomcat 5.5.17. I ran into the following problem : custom b tag is supposed to have custom a tags as children : ba/a//b b has a addChild(Tag tag) method, doing children.add(tag); b doStartTag() inits its children container : children =

Session not released after session.invalidate()

2006-07-28 Thread Laurent Duperval
Hello, I am using JBoss 3.2.5 with Tomcat 5.0.26. We are doing performance testing and we have found some issue which may be related to the way Tomcat handles sessions. Specifically, when we do a login/logout then look at the active sessions using the JBoss console, it says that there is one

enable HTTP PUT on only one webapp

2006-06-30 Thread Laurent SAUVAGE
Hi, I would like to enable HTTP PUT method on only one webapp, not to all webapps. I prefer to not modify system wide web.xml, because if I do it this way I have to secure other webapps. How can I do it easily ? Regards, Laurent.

getContext(uri) returns null

2006-06-14 Thread Laurent SAUVAGE
? Regards, Laurent.

Re: Tomcat 5.5 installation problem

2005-12-27 Thread Laurent FALLET
Hello, Normally you shouldn't have any problem, I've achieved this (3 tomcat 5 on the same physical machine and OS, linked through load balancing with Apache. Try again but it should work with the usual install. Regards, Laurent 2005/12/27, [EMAIL PROTECTED] [EMAIL PROTECTED]: Hi I am

mod_jk troubles under heavy load

2005-12-13 Thread Laurent Perez
problem and are there tips to avoid this ? Thanks for any input Laurent -- a href=http://in-pocket.blogspot.com;http://in-pocket.blogspot.com - Mobile world, technology and more/a - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: mod_jk troubles under heavy load

2005-12-13 Thread Laurent Perez
. Thanks again Laurent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]