users@glassfish.java.net

Re: Glassfish v2 "locks" resources on Windows!?

From: Byron Nevins <Byron.Nevins_at_Sun.COM>
Date: Mon, 19 Nov 2007 11:09:49 -0800

Please run 'handle.exe' to see what process has the files locked:

http://www.microsoft.com/technet/sysinternals/utilities/handle.mspx



glassfish_at_javadesktop.org wrote:

>Why are dependent jars being locked, forcing me to reboot the app server?
>
>[code]
>WARNING: The following file(s) were left(locked) from the previous deployment; they were not updated during this deployment and could interfere with the application: C:\glassfish\domains\domain1\applications\j2ee-apps\Portlets\DataAccess.jar C:\glassfish\domains\domain1\applications\j2ee-apps\Portlets\Utility.jar C:\glassfish\domains\domain1\applications\j2ee-apps\Portlets\jcommon-1.0.0.jar
>[/code]
>
>I've used JBoss up until now, for 2 years, and this never happened. Is there a way around this without having to restart Glassfish (very disruptive to other apps hosted on the same server)? Just undeploying the app and trying to redeploy it did nothing at all - it didn't help. How was it that I could undeploy it, yet somehow there are resources left behind to be locked?
>
>Thanks!
>[Message sent by forum member 'zambizzi' (zambizzi)]
>
>http://forums.java.net/jive/thread.jspa?messageID=246164
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
>

-- 
Byron Nevins Work 408-276-4089, Home 650-359-1290, Cell 650-784-4123 - Sun Microsystems, Inc.