Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 79220 invoked from network); 10 May 2005 07:21:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 May 2005 07:21:42 -0000 Received: (qmail 19074 invoked by uid 500); 10 May 2005 07:23:56 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 18947 invoked by uid 500); 10 May 2005 07:23:54 -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 18768 invoked by uid 99); 10 May 2005 07:23:52 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from mxfep01.bredband.com (HELO mxfep01.bredband.com) (195.54.107.70) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 10 May 2005 00:23:48 -0700 Received: from [10.0.91.13] ([213.115.143.245] [213.115.143.245]) by mxfep01.bredband.com with ESMTP id <20050510072018.NWNI24425.mxfep01.bredband.com@[10.0.91.13]> for ; Tue, 10 May 2005 09:20:18 +0200 Message-ID: <428060B2.5040804@geosition.com> Date: Tue, 10 May 2005 09:20:18 +0200 From: =?ISO-8859-1?Q?Joakim_Ahl=E9n?= User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Users List Subject: Undeploying webapp on windows Content-Type: multipart/mixed; boundary="------------050103070707060304010204" X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --------------050103070707060304010204 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, I guess this question has come up a thousand times on this list, but i still have no workaround for it so i need to get a tip or two from you guys. We're using Tomcat 5.5.9 on Windows 2003 Server, and we cannot hot-deploy webapps. The cause is one of our jar-files in WEB-INF being locked, so the webapp cannot be undeployed. (The directory webapps// cannot be deleted). Now, i've scanned the net a lot about this problem and have tried lots and lots of stuff. - Stopping the webapp before trying to remove the webapps//-directory does NOT work. - Using reloadable="true", antiJARLocking="true" antiResourceLocking="true" in the context.xml for each webapp does NOT work. We have about 75 (almost identical) webapps or so running on our server. With the software "Process Explorer" from sysinternals (http://www.sysinternals.com/files/procexpnt.zip), i can see all open files in the system. On any given time, "tomcat5.exe" has one jar-file in each of about 3-5 webapps open with a file handle. These are never closed, but open for as long as tomcat lives (or at least, for a very long time. Hours or days.) Now, i know what is said about this problem. "It's an OS problem, not a tomcat issue". I can't understand that though, since: - Hot deploy worked perfectly under windows with tomcat 4.1.X. What has changed since then? - Tomcat evidently has several file handles open to these jar-files which it doesn't close. Isn't the problem this, that tomcat doesn't close the file handles to its opened jar-files? I can close these file handles manually from within process explorer, but then tomcat goes berserk and nothing works. Is there anything i'm missing here? Isn't there any way whatsoever to be able to use hot deploy under windows today? Why doesn't antiJARLocking and antiResourceLocking work at all, i thought these should adress this particular problem? I'm attaching a screenshot of the open files from within process explorer. Hope you can help me! Regards Joakim --------------050103070707060304010204 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org --------------050103070707060304010204--