Problem in Deploy: Module Locked
When I try to deploy a certain project that had been recently undeployed, the following error message is displayed:
Deploying application in domain failed; Cannot deploy. Module directory is locked and cannot be deleted: C:\Sun\SDK\domains\domain1\applications\j2ee-modules\MyWeb Cannot deploy. Module directory is locked and cannot be deleted: C:\Sun\SDK\domains\domain1\applications\j2ee-modules\MyWeb
I tried the following steps:
1. Clean Project
2. Build and Clean Project
3. Export war (overwrite the existing war file)
but the error still occurs.
I also tried restarting the application server but the error is still there.

