Re: Session timeouts: ignore "periodic polling" URL?

2011-03-20 Thread sebb
On 20 March 2011 11:19, André Warnier wrote: > sol myr wrote: >> >> Hi, >> >> We have a Servelts/JSP application Tomcat6. >> Our javascripts issues automatic, periodic polling requests (Ajax and >> Comet), in order to keep the view  up-to-date. >> Unfortunately this prevents sessions from timing o

Re: Tomcat Caching Problem

2011-03-29 Thread sebb
On 29 March 2011 21:47, Jinal Dhruv wrote: > I dont understand second option..Can U explain a bit more? In case you cannot access the cited document: http://tomcat.apache.org/tomcat-6.0-doc/config/context.html#Common%20Attributes it says: "reloadable Set to true if you want Catalina to m

Re: [OT] Protecting against HTTP response splitting

2011-04-01 Thread sebb
On 1 April 2011 15:49, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Ronald, > > On 3/31/2011 8:21 PM, Christopher Schultz wrote: >> On 3/31/2011 7:05 AM, Ronald Klop wrote: >>> I would say that some proper input validation solves your problem. >>> Does new URL(r

Re: linux users who unload from zip file can't start tomcat

2011-04-02 Thread sebb
On 2 April 2011 10:35, Robert P. J. Day wrote: > >  i just noticed that users on a linux/unix system that unload tomcat7 > from the zip file are going to have trouble running it since the bin/ > scripts are not marked executable in the zip file. Unfortunately Zip does not support such attributes.

Re: [OT] servlet-specific error pages

2011-04-14 Thread sebb
On 14 April 2011 01:10, Justin Randall wrote: > > Hi Chris, > >> Of course. I was wondering about other exceptions or errors that maybe I >> cannot control from that code. > > Are you referring to internal exceptions within Tomcat's own code or simply > unexpected exceptions within the servlet's

Re: storing images

2011-05-06 Thread sebb
If multiple threads try to create the image at the same time it is possible that one thread will see a partial file - or the file may be locked. If you are not doing this already, I suggest creating the file with a unique temporary name and then renaming it once complete. The rename may fail if an

Re: Cannot find daemon loader org/apache/commons/daemon/support/DaemonLoader

2011-05-13 Thread sebb
On 13 May 2011 13:56, Jim Seymour wrote: > On Wed, 11 May 2011 18:04:15 -0400 > Jim Seymour wrote: > >> On Thu, 12 May 2011 01:16:43 +0400 >> Konstantin Kolinko wrote: >> >> > 1) jsvc is not developed within Apache Tomcat project but within >> > the Apache Commons - it belongs to Apache Commons

[OT?] Virtual hosting - does the port need to match the URL port?

2011-05-17 Thread sebb
HTTP requests include a "Host:" header which generally specifies the target hostname and port (omitted if it is the default port). AIUI, in virtual hosting situations, the name in the Host header may be different from the URL host. So for example a request to: http://localhost:8080/ might be sen

Re: [OT?] Virtual hosting - does the port need to match the URL port?

2011-05-17 Thread sebb
On 17 May 2011 22:17, Konstantin Kolinko wrote: > 2011/5/18 sebb : >> As far as I can tell, Tomcat validates the format of the Host header, >> but otherwise ignores the port? >> Is that correct? > > No. > See e.g. Http11Processor.parseHost(MessageBytes) in t

Re: [OT?] Virtual hosting - does the port need to match the URL port?

2011-05-17 Thread sebb
On 17 May 2011 23:35, André Warnier wrote: > sebb wrote: >> >> HTTP requests include a "Host:" header which generally specifies the >> target hostname and port (omitted if it is the default port). > >> AIUI, in virtual hosting situations, the name in the

Re: Clarification on --JvmXX windows service installer parameters

2011-05-21 Thread sebb
On 21 May 2011 01:52, space monkey wrote: > Tomcat 7.0.14 > Windows XP+ > > Hello Tomcat users, > > I am trying to understand how the *--JvmMs*, *--JvmMx*, and *JvmSs* windows > service install paramerters differ from setting the JVM memory values > explicitly with *--JvmOptions*? > > Please see t

Re: Feature request: "fullstart" command

2011-06-16 Thread sebb
On 16 June 2011 11:29, Pid wrote: > On 15/06/2011 21:00, Francis GALIEGUE wrote: >> Tomcat has many abilities to deploy applications at run time (war, >> tree, context, you name it). However, when used in production, these >> abilities are used cautiously, if they are used at all. >> >> In many sc

Re: Feature request: "fullstart" command

2011-06-16 Thread sebb
On 16 June 2011 12:16, Francis GALIEGUE wrote: > On Thu, Jun 16, 2011 at 13:04, sebb wrote: > [...] >> >> And it may cause problems on some OSes which don't use unix-style exit codes. >> For example, OpenVMS uses the low order 3 bits of a process exit code >>

Re: Feature request: "fullstart" command

2011-06-16 Thread sebb
On 16 June 2011 12:32, Francis GALIEGUE wrote: > On Thu, Jun 16, 2011 at 13:30, sebb wrote: > [...] >>> >>> It's up to main() to call System.exit(), so how is that a problem? >> >> If the exit code is not passed to the OS, but is merely a method >>