Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tomcat project cleaning error

Tags:

eclipse

tomcat

When I try to clean the project from tomcat. I'm getting this error:

Could not delete <file name>. May be locked by another process.

Is there any way to counter this problem?

like image 270
roshanK Avatar asked May 19 '11 12:05

roshanK


2 Answers

You just try to clean your tomcat server .

  • Go to tomcat server properties >switch to location >apply
  • Then clean your tomcat directory .
  • Clean Tomcat

Its work for me

like image 161
Ganesh Giri Avatar answered Sep 29 '22 09:09

Ganesh Giri


First of all, try to just restart tomcat.

Then, try to clean everything:

  • Clean the Tomcat server: in Eclipse, right click on Tomcat vX.Y Server > Clean.
  • Clean the project: menu Project > Clean.
  • Clean the resource of the server: click the ‣ next to Tomcat vX.Y Server, underneath it your project is displayed, right click it and select "Clean Module Work Directory..."

You can also try to start the server in Debug mode: right click Tomcat vX.Y Server > Debug.

like image 40
JW. Avatar answered Sep 29 '22 08:09

JW.