Why is my publishing failing in Tomcat v7.0 Server because of locks by another process?

后端 未结 9 1750
臣服心动
臣服心动 2021-02-02 09:08

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

相关标签:
9条回答
  • 2021-02-02 09:31

    1- Stop the Server
    2- Clean the Server
    3- Clean Tomcat Work Directory ... enter image description here

    0 讨论(0)
  • 2021-02-02 09:35

    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.

    0 讨论(0)
  • 2021-02-02 09:37

    I faced the same problem; removing the modules from the TomCat server solved the problem

    0 讨论(0)
  • 2021-02-02 09:37

    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.

    0 讨论(0)
  • 2021-02-02 09:41

    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.

    1. I have changed my password today due to expired, but forgot to change my password in .m2/setting.xml. So I corrected this.

    2. I have deleted below dependency from pom.xml:

      <dependency>
          <groupId>org.springframework.boot</groupId>
          <artifactId>spring-boot-starter-security</artifactId>
      </dependency>
      
    0 讨论(0)
  • 2021-02-02 09:42
    1. In the console window, where you find the stack trace, just switch the tab from console to servers (or display it from Window -> Show View -> Servers).
    2. Double-click on your tomcat server, it will open up an overview of tomcat. You will find two tabs(on the bottom of the window). Overview and Modules.
    3. Click on Modules. You will find the projects listed there.
    4. Remove all of the projects and clean the server (right click on server's name -> Clean).

    Try restarting the server and it will start working, as it worked for me.

    0 讨论(0)
提交回复
热议问题