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.

[680 byte] By [dz3n1] at [2007-11-26 11:47:41]
# 1

Hi,

This can happen sometimes when the directory where the runtime ".java" and ".class" files of the JSPs is open in any editor e.g.EditPlus

See the following forum thread which talks more about this:

http://forums.java.net/jive/thread.jspa?messageID=137570

What you need to do is close the other program that is accessing the .java or .class files.

Hope this helps

roho at 2007-7-7 11:59:20 > top of Java-index,Application & Integration Servers,Application Servers...
# 2
Maybe related to : http://forum.java.sun.com/thread.jspa?threadID=5114763&tstart=0
taipan at 2007-7-7 11:59:20 > top of Java-index,Application & Integration Servers,Application Servers...