Re: threads vs. servlets

2015-03-10 Thread David Bullock
On 11 March 2015 at 04:43, Christopher Schultz wrote: Basically, making a > servlet threadsafe only requires you to avoid any non-threadsafe class > members in the servlet itself... > Since we're tossing pennies, I've often wondered how the app-server achieves the effect that any instance-level

Re: [URGENT] Content-Encoding: gzip not set

2015-03-10 Thread Mark Eggers
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 3/10/2015 3:33 PM, Victor Rodriguez wrote: > I'm sorry. I should have prefaced my original question by stating > that I'd read the Tomcat documentation and did extensive googling > on the subject, but could not find the answer I was looking for. >

Re: [URGENT] Content-Encoding: gzip not set

2015-03-10 Thread Victor Rodriguez
I'm sorry. I should have prefaced my original question by stating that I'd read the Tomcat documentation and did extensive googling on the subject, but could not find the answer I was looking for. The only solution I found was having a servlet filter that adds the 'Content-encoding: gzip' respons

Re: [URGENT] Content-Encoding: gzip not set

2015-03-10 Thread André Warnier
Victor Rodriguez wrote: I finally have it working in Apache using the following. If there's an easy way to accomplish this in Tomcat I'd pref that cuz I could just leverage our existing deployed tomcats. Thanks! AddType application/json .json AddType application/vnd.quantized-mesh .terrain Add

Form-based authentication breaks after upgrade to Tom 7.0.59

2015-03-10 Thread rop
We are trying to upgrade Tomcat from 7.0.35 to 7.0.59. For some reason, the form-based authentication gets broken after the upgrade, and just gives "Invalid username and/or password, please try again" when trying to login. Cannot find anything in catalina.out related to this. >From our logging,

Re: threads vs. servlets

2015-03-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Carl, Others have already responded, but I figured I'd add my two cents, too. On 3/10/15 11:25 AM, Carl Dreher wrote: >> If I write a servlet such as the above, is there ever only once >> instance of it running? > >>> Don't confuse objects with t

Re: [URGENT] Content-Encoding: gzip not set

2015-03-10 Thread Victor Rodriguez
I finally have it working in Apache using the following. If there's an easy way to accomplish this in Tomcat I'd pref that cuz I could just leverage our existing deployed tomcats. Thanks! AddType application/json .json AddType application/vnd.quantized-mesh .terrain AddEncoding x-gzip .gz .tgz .

Re: [URGENT] Content-Encoding: gzip not set

2015-03-10 Thread Victor Rodriguez
AddType application/json .json AddType application/vnd.quantized-mesh .terrain

Re: Is it possible to make Tomcat 6.0.24 to return 50x code when webapp not started?

2015-03-10 Thread Mark Thomas
On 10/03/2015 16:41, Emmanuel Franquemagne wrote: > Hello, > > Here is the description of my problem: I have a REST webservice > hosted in a tomcat instance and which is accessed by automated > processes; these processes request information about business objects > and take decision accordingly. E

Re: [URGENT] Content-Encoding: gzip not set

2015-03-10 Thread Rainer Jung
Hi Chris, Am 10.03.2015 um 15:09 schrieb Christopher Schultz: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Rainer, On 3/9/15 7:01 PM, Rainer Jung wrote: Am 09.03.2015 um 23:11 schrieb Christopher Schultz: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Igor, On 3/9/15 6:01 PM, Igor Cici

Is it possible to make Tomcat 6.0.24 to return 50x code when webapp not started?

2015-03-10 Thread Emmanuel Franquemagne
Hello, Here is the description of my problem: I have a REST webservice hosted in a tomcat instance and which is accessed by automated processes; these processes request information about business objects and take decision accordingly. Especially, when business object isn't available, the webserv

Re: [URGENT] Content-Encoding: gzip not set

2015-03-10 Thread Victor Rodriguez
Interesting, we don't front with Apache, but we do have an F5 load balancer. Maybe it can add the "Content-encoding; gzip' response header. Thanks for the idea! In the meantime, I'll keep plugging away trying to get Tomcat to do it correctly. thanks again! On Mon, Mar 9, 2015 at 4:01 PM, Igor C

Re: threads vs. servlets

2015-03-10 Thread Kaydell Leavitt
Unsubscribe. Please?! -- Kaydell kayd...@yahoo.com On Mar 10, 2015, at 9:25 AM, Carl Dreher wrote: >> If I write a servlet such as the above, is there ever only once instance of >> it running? > >>> Don't confuse objects with threads. There is one instance of a particular >>> servlet, bu

Re: threads vs. servlets

2015-03-10 Thread Neven Cvetkovic
Hey Carl, On Tue, Mar 10, 2015 at 11:25 AM, Carl Dreher wrote: > If I write a servlet such as the above, is there ever only once instance >> of it running? >> > > Don't confuse objects with threads. There is one instance of a >>> particular servlet, but many threads may be executing in it conc

RE: threads vs. servlets

2015-03-10 Thread Caldarale, Charles R
> From: Carl Dreher [mailto:focus...@arn.net] > Subject: Re: threads vs. servlets > > > If I write a servlet such as the above, is there ever only once instance > > > of it running? > > Don't confuse objects with threads. There is one instance of a particular > > servlet, but > > many thread

Re: threads vs. servlets

2015-03-10 Thread Carl Dreher
If I write a servlet such as the above, is there ever only once instance of it running? Don't confuse objects with threads. There is one instance of a particular servlet, but many threads may be executing in it concurrently, with each thread processing a separate request. I understand tha

Re: restricting access to images

2015-03-10 Thread Neven Cvetkovic
Carl, Chris and Chuck have already provided great insights. Below are few thoughts to consider. On 3/9/15 12:04 PM, Carl Dreher wrote: > > I need to restrict access to a website's images, to people that > > have logged on, have authorization etc. I've searched though the > > Tomcat user's mailin

Re: Tomcat minor upgrade

2015-03-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Rajesh, On 3/10/15 7:00 AM, Rajesh Cherukuri wrote: > can some one help me how to do the tomcat minor upgrade from 7.0.39 > to 7.0.59 Are you using separate CATALINA_HOME and CATALINA_BASE directories? 1. If NO: a. Go read RUNNING.txt in Tomcat

Re: [URGENT] Content-Encoding: gzip not set

2015-03-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Rainer, On 3/9/15 7:01 PM, Rainer Jung wrote: > Am 09.03.2015 um 23:11 schrieb Christopher Schultz: >> -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 >> >> Igor, >> >> On 3/9/15 6:01 PM, Igor Cicimov wrote: >>> On 10/03/2015 6:14 AM, "Victor Rodr

AW: Tomcat minor upgrade

2015-03-10 Thread Thomas Rohde
-Ursprüngliche Nachricht- Von: Rajesh Cherukuri [mailto:rajec...@gmail.com] Gesendet: Dienstag, 10. März 2015 12:43 An: Tomcat Users List Betreff: Re: Tomcat minor upgrade Thanks Thomas so it is just that we need to update the newer version of file's that shows in the link you provid

Re: Tomcat minor upgrade

2015-03-10 Thread Rajesh Cherukuri
Thanks Thomas so it is just that we need to update the newer version of file's that shows in the link you provided correct ? or do we need any more changes to libraries On Tue, Mar 10, 2015 at 4:59 PM, Thomas Rohde wrote: > -Ursprüngliche Nachricht- > Von: Rajesh Cherukuri [mailto:

AW: Tomcat minor upgrade

2015-03-10 Thread Thomas Rohde
-Ursprüngliche Nachricht- Von: Rajesh Cherukuri [mailto:rajec...@gmail.com] Gesendet: Dienstag, 10. März 2015 12:01 An: Tomcat Users List Betreff: Tomcat minor upgrade hi can some one help me how to do the tomcat minor upgrade from 7.0.39 to 7.0.59 Hi Rajesh, check Tomcat migration gu

Tomcat minor upgrade

2015-03-10 Thread Rajesh Cherukuri
hi can some one help me how to do the tomcat minor upgrade from 7.0.39 to 7.0.59

Re: mod_jk causing stuck Apache processes

2015-03-10 Thread Rainer Jung
Am 03.03.2015 um 23:11 schrieb Jesse Defer: any update on the behavior of the patched nodes? Did it behave better, ie. did the problem reoccur on other nodes but not on the patched ones, or were all nodes mostly without problems during the last 2 days? Any strange things on the patched ones? I'