When I undeploy/redeploy my app I get:
Deploying application in domain failed; Cannot deploy. Module directory is locked and cannot be deleted: C:\glassfish\domains\domain1\applications\j2ee-modules\RecDev Cannot deploy. Module directory is locked and cannot be deleted: C:\glassfish\domains\domain1\applications\j2ee-modules\RecDev
This happened before, seemed to go away, but it is still happening. My app is a fairly simple test app:
Glassfish ur1_b05
Embedded JSF
Facelets 1.1.11
MySQL with connector 3.1.13