Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not delete /.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/appname/WEB-INF/lib. May be locked by another process

I am trying to run an web app. In the beginning it was going well, but I had to delete some jars from the project folder. I didn't delete the jars using eclipse. So, I started to get these errors:

Publishing failed with multiple errors
Could not delete C:/Users/maniceto/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/fj21-tarefas/WEB-INF/lib. May be locked by another process.
Could not delete C:/Users/maniceto/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/fj21-tarefas/WEB-INF. May be locked by another process.

I tried to delete my whole project and code it again. But it doesn't work. I also deleted the Tomcat server but again it doesn't work. Then I realized that to "fix" this problem I have to delete this folder:

C:/Users/maniceto/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/fj21-tarefas/WEB-INF.

And clean the server and the project. But when I close eclipse and open again I get the same error, then I have to do this process.

Anyone here knows how to fix this kind of tomcat bug?

like image 606
Murilo Avatar asked Jan 14 '14 11:01

Murilo


4 Answers

there is already a post which answer this question you need to:

  1. Clean Server
  2. Clean Tomcat Work Directory

link to the page: Why is my publishing failing in Tomcat v7.0 Server because of locks by another process?

like image 98
Greko2015 GuFn Avatar answered Sep 20 '22 11:09

Greko2015 GuFn


Simply delete the server and then add it again,then restart your eclipse.It worked for me.

like image 18
vikash mudliar Avatar answered Oct 20 '22 05:10

vikash mudliar


Close the eclipse and go to below location(depends on your system locaiton)

C:/Users/maniceto/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/

and delete tmp0 directory now start eclipse and it will work fine.

like image 9
Sachin Kumar Avatar answered Oct 20 '22 07:10

Sachin Kumar


i don know the exact reason for this problem but i was clear the same issue by restarting my system. so restart your system once, it may gives solution for your problem.

like image 2
Abhi Urs Avatar answered Oct 20 '22 05:10

Abhi Urs