Re: encodeURL, jsessionid and mod_rewrite ?

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

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 ;jsessi

Getting a WAR last deployment timestamp thru JMX ?

2017-09-07 Thread Laurent Perez
n the last 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 wrote: > On 30 March 2017 20:53:06 BST, Laurent Perez > wrote: > >Thank you Mark. > > > >h2c is

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

2017-03-30 Thread Laurent Perez
. Where 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 wrote: > > On 30/03/17 18:02, Laurent Perez wrote: > > Hi > > > > I managed to run the servlets/serverpush/simpleimage HTTP

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: a)

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
SOCKET) dup; } } #endif #endif /* def WIN32 */ > > Jeff > > > On Fri, Jun 29, 2012 at 4:38 PM, Laurent Petit wrote: > > > On Fri, 2012-06-29 at 15:27 +0200, Jeff MAURY wrote: > > > No, > > > > > > it does not (yet) make

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
space and won't paste them all in this thread ( google search criteria : "windows inheriting socket handles" ) > > Jeff > > > On Fri, Jun 29, 2012 at 2:40 PM, Laurent Petit wrote: > > > Hello, > > > > On Fri, 2012-06-29 at 11:45 +0200, Jeff MAURY

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
with Tomcat Native implementation, but do you know the global > 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 > Jef

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
is even more appealing. I know nothing about tomcat-native implementation, but I was able to see that the bInheritHandle member is set to true here in tomcat native's C code: lpetit:~/tmp/tomcat-native $ grep "bInheritHandle" -R * native/os/win32/ntpipe.c:con->

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
g the problem, Regards, -- 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 wrote: > > > On Mon, 2012-06-25 at 11:51 +0200, Jeff MAURY wrote: > > > > > If you can po

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
Jun 25, 2012 at 11:40 AM, Laurent Petit 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? > &g

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

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
d here 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 wrote: > > > En Réponse à "Tomcat Users List" le 21 juin > > 2012 00:07 Can you verify

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

2012-06-21 Thread Laurent Petit
, 2012 at 4:19 PM, Laurent Petit 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 i

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.) s

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 dire

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-05 Thread Sylvain Laurent
onment, i'd like 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 wrote

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 i

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 , > /tomcat-8.0.x/java/org/apache/tomcat/util/threads/ThreadPo

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 Administration

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 st

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 i

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 sugges

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 "we

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 https://issues.apache.org/bugzilla/show_bug.c

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

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 > ht

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 > 2010/3/17 Laurent Vaills : > >(...) > > 1catalina.org.apache.juli.FileHandler.level = FINE > > 1catalina.org.apache.juli.FileHandler.patter

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

2010-03-17 Thread Laurent Vaills
something. Laurent

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

2009-04-06 Thread Laurent SAUVEL
t: Servlet Engine: 2.5 JSP Engine: 2.1 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
e); Seems the tomcat (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
a chain of renderers. 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 -- http://in-pocket.blogspot.com";>http://in-pocket

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 tag is supposed to have custom tags as children : has a addChild(Tag tag) method, doing children.add(tag); doStartTag() inits its children container : children = new ArrayLi

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 acti

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
rrect ServletContext ? Regards, Laurent.

Deployment order strategy

2006-02-03 Thread LE CALVE, Laurent
> I have 3 different .war files to deploy under Tomcat 5.5 > I deploy under Tomcat (under webapps) these 3 files with Eclipse 3.2 and the > order they start under Tomcat is very important for me because they > communicate between them with WebServices. > > When Tomcat starts, I want that Tomc

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]>

mod_jk versus mod_proxy under load ?

2005-12-26 Thread Laurent Perez
I googled quite a bit and results are just random, someone will tell jk is faster, someone else will tell proxy is faster, so I'm looking for some advice on this TC list. Thanks for any input Laurent -- http://in-pocket.blogspot.com";>http://in-pocket.blogspot.com - Mobile wor

Re: mod_jk troubles under heavy load

2005-12-13 Thread Laurent Perez
so I'll add this property and check the load afterwards. Thanks again Laurent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

mod_jk troubles under heavy load

2005-12-13 Thread Laurent Perez
Is it a known performance problem and are there tips to avoid this ? Thanks for any input Laurent -- http://in-pocket.blogspot.com";>http://in-pocket.blogspot.com - Mobile world, technology and more - To unsubscri

ServletException hard to understand

2005-12-05 Thread Laurent FALLET
:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection (Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java :577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.java:683) at java.lang.Thread.run(Unknown Source) Thanks if you can give me a hand on that. Laurent