deploying error

When I tried to run the project, I got this error:Deploying application in domain failed; Cannot deploy. JSP directory is locked and cant be deleted: {1}; requested operation cannot be completedDoes anybody know what is about and how to solve it? Thanks!
[275 byte] By [x_z] at [2007-11-26 9:56:54]
# 1
And when I clean the project, I got:Warning: unable to delete some files in build/web/WEB-INF/lib - they are probably locked by the J2EE server.
x_z at 2007-7-7 1:20:10 > top of Java-index,Development Tools,Java Tools...
# 2
Hi!Try to stop server, clean project and then start server again.I think it will help You.Thanks,Roman.
Grif at 2007-7-7 1:20:10 > top of Java-index,Development Tools,Java Tools...
# 3

Hi, Roman:

Thanks a lot for your help! It works. I stop the server, clean the project, then start the server again, run the project, it was fine. Then I did the procedure again, this time I got the following error. I don't know what is wrong. Previously, I never got these errors without clean project. Since the first time clean, I always got errors. I am confused: should I clean every time?

Deploying application in domain failed; Deployment Error -- Unable to open Policy file: C:/Users/xuan/source/JSCreator/jsc/SunAppServer8/domains/creator/generated/poli cy\WebApplication2__WebApplication2\granted.policy

; requested operation cannot be completed

x_z at 2007-7-7 1:20:10 > top of Java-index,Development Tools,Java Tools...
# 4
Hi!I haven't got such error, but You can try to remove all files in C:/Users/xuan/source/JSCreator/jsc/SunAppServer8/domains/creator/generated directory and subdirectories related to your project.Thanks,Roman.
Grif at 2007-7-7 1:20:10 > top of Java-index,Development Tools,Java Tools...
# 5
Hi, Roman:Thanks for your help. Actually, I copied the file "granted.policy" from another project, then it got through the compilation and ran without any problem. Thanks again.
x_z at 2007-7-7 1:20:10 > top of Java-index,Development Tools,Java Tools...