From users-return-200217-apmail-tomcat-users-archive=tomcat.apache.org@tomcat.apache.org Mon Aug 10 19:16:04 2009 Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 61483 invoked from network); 10 Aug 2009 19:16:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Aug 2009 19:16:03 -0000 Received: (qmail 53035 invoked by uid 500); 10 Aug 2009 19:16:07 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 52946 invoked by uid 500); 10 Aug 2009 19:16:06 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 52934 invoked by uid 99); 10 Aug 2009 19:16:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Aug 2009 19:16:06 +0000 X-ASF-Spam-Status: No, hits=2.4 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [207.97.245.185] (HELO smtp185.iad.emailsrvr.com) (207.97.245.185) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Aug 2009 19:15:57 +0000 Received: from relay28.relay.iad.mlsrvr.com (localhost [127.0.0.1]) by relay28.relay.iad.mlsrvr.com (SMTP Server) with ESMTP id EDA811B4090 for ; Mon, 10 Aug 2009 15:15:32 -0400 (EDT) Received: by relay28.relay.iad.mlsrvr.com (Authenticated sender: david.wall-AT-yozons.com) with ESMTPSA id ADF651B407C for ; Mon, 10 Aug 2009 15:15:32 -0400 (EDT) Message-ID: <4A8071D6.3050408@computer.org> Date: Mon, 10 Aug 2009 12:15:34 -0700 From: David Wall User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: TC 6.0.20 - how to know session restored on restart? References: <4A7BB774.9070407@computer.org> <4A7C6060.5090404@computer.org> <4A7C618D.7040109@apache.org> <4A7C7A4D.8040108@computer.org> <4A7C7B3D.50501@apache.org> <4A7C8BA4.3000304@computer.org> <4A7F3E68.2040203@computer.org> <0AAE5AB84B013E45A7B61CB66943C17229B61682BC@USEA-EXCH7.na.uis.unisys.com> In-Reply-To: <0AAE5AB84B013E45A7B61CB66943C17229B61682BC@USEA-EXCH7.na.uis.unisys.com> Content-Type: multipart/alternative; boundary="------------050607090700020400090106" X-Virus-Checked: Checked by ClamAV on apache.org --------------050607090700020400090106 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Caldarale, Charles R wrote: >> From: David Wall [mailto:d.wall@computer.org] >> Subject: Re: TC 6.0.20 - how to know session restored on restart? >> >> This must be a multi-thread timing issue because I had >> not had this happen on several other restarts. >> > > AFAIK, Tomcat initialization is single-thread. > Odd. I noted that if I use the tomcat manager and reload the webapp, it works as I'd normally expect: 2009-08-10 12:10:15,375 DEBUG (com.esignforms.open.servlet.ContextListener) ContextListener() instantiated 2009-08-10 12:10:15,375 DEBUG (com.esignforms.open.servlet.SessionListener) SessionListener() instantiated 2009-08-10 12:10:15,391 DEBUG (com.esignforms.open.servlet.ContextListener) ContextListener() contextInitialized: /test 2009-08-10 12:10:15,407 DEBUG (com.esignforms.open.admin.SessionTrackerInfo) SessionTracker.SessionInfo() - Session did activate: E977295FD564F79471427627CB422D23 But if I stop tomcat and restart it, I get the other: 2009-08-10 12:12:55,922 DEBUG (com.esignforms.open.admin.SessionTrackerInfo) SessionTracker.SessionInfo() - Session did activate: E977295FD564F79471427627CB422D23 2009-08-10 12:12:55,922 DEBUG (com.esignforms.open.servlet.ContextListener) ContextListener() instantiated 2009-08-10 12:12:55,922 DEBUG (com.esignforms.open.servlet.SessionListener) SessionListener() instantiated 2009-08-10 12:12:56,453 DEBUG (com.esignforms.open.servlet.ContextListener) ContextListener() contextInitialized: /test > >> Does this behavior make sense that Tomcat resumes passivated >> sessions before it even sets up the context? >> > > Do you have the SingleSignOn valve enabled, by any chance? > No, it's a rather default install on Windows XP with Java 6. The only change I have made to Tomcat's server.xml was to turn compression on and use the NIO connector. David --------------050607090700020400090106--