Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 65569 invoked from network); 3 Aug 2004 09:00:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 3 Aug 2004 09:00:30 -0000 Received: (qmail 95082 invoked by uid 500); 3 Aug 2004 09:00:00 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 94934 invoked by uid 500); 3 Aug 2004 08:59:59 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 94916 invoked by uid 99); 3 Aug 2004 08:59:59 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [217.72.192.209] (HELO smtp05.web.de) (217.72.192.209) by apache.org (qpsmtpd/0.27.1) with ESMTP; Tue, 03 Aug 2004 01:59:56 -0700 Received: from [217.82.174.88] (helo=[192.168.1.35]) by smtp05.web.de with asmtp (TLSv1:RC4-MD5:128) (WEB.DE 4.101 #44) id 1Brv9G-0004gI-00 for tomcat-user@jakarta.apache.org; Tue, 03 Aug 2004 10:59:54 +0200 Message-ID: <410F5433.8030307@web.de> Date: Tue, 03 Aug 2004 11:00:35 +0200 From: =?ISO-8859-1?Q?Andr=E9_Weidemann?= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.1) Gecko/20040707 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: tomcat output gets mixed up for different requests References: <40EE80F5.8040406@web.de> <20040709131754.GC27191@strange.dreamhost.com> In-Reply-To: <20040709131754.GC27191@strange.dreamhost.com> X-Enigmail-Version: 0.84.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Sender: Andre.Weidemann@web.de X-Sender: Andre.Weidemann@web.de X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N QM wrote: > Two clients' content getting mixed up with one another: sounds like > misuse of a shared variable, such as an instance variable inside the > servlet class, use of the servlet context for client data, etc. I checked all variables and declarations and I'm sure that there are no variables being "misused". For debugging purposes I added a System.out(this); at the beginning of the doGet() method of the servlet class. No matter which client is calling the servlet, the output of System.out(this); is always the same. The output looks like this: "Navigation@1142196" So it seems that Tomcat does not spawn a new servlet for a new request, althought my web.xml file contains: Navigation Navigation 5 With every client calling the same Method it seems very likely that the output is getting mixed up. Adding a *synchronized* in front of the doGet() method, makes the problem disappear, but also makes the Tomcat very slow. Any help will be greatly appreciated, Andr�. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org