I have the very same problem. My GlassFish can't redeploy (or for that, matter it can't even undeploy) an enterprise application, that is using a web module created with the Netbeans Visual Web Pack due to file locking.
Currently I'm using GlassFish v2 b12, is there any chance that a newer version will eliminate that problem?
[Message sent by forum member 'the_burrito' (the_burrito)]
http://forums.java.net/jive/thread.jspa?messageID=203348