I have a Tomcat v7.0 server setup in my eclipse (helios) environment which I use for testing web applications. Currently I have in my workspace a struts web-app which is loaded
1- Stop the Server
2- Clean the Server
3- Clean Tomcat Work Directory ...
I had totally forgotten about this question. Actually, the problem was elsewhere, to solve the "lock" problem all i had to do was restart the computer. Then i had other problems, but that doesn't concern this question.
I faced the same problem; removing the modules from the TomCat server solved the problem
I have encountered the same problem. You are not required to do something extra ordinary. Two solution might be helpful.
1) Restart your IDE (i.e. eclipse). (This might help you because in my case it did)
2) Restart your computer. This will help you to unlock the lock beyond any doubt.
Note: Cleaning Tomcat Work Directory may not help in your case.
I have resolved the problem.
I have developed Spring Boot
application with Apache Tomcate 9.0
server. This application ran successfully without any error till today, but suddendly I got an error like
could not delete.jars may be locked by othors
I have done two mistakes.
I have changed my password today due to expired, but forgot to change my password in .m2/setting.xml
. So I corrected this.
I have deleted below dependency from pom.xml
:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
Try restarting the server and it will start working, as it worked for me.