tomcat + IDEA when deploying a project:Artifact TomcatServletStudy:war exploded: Error during artifa

  1. Environment: IDEA2020.1, Tomcat8.5.54, macOS10.14.6

  2. I deployed tomcat into IDEA, and there was no error in running. But when I create a java file in the src directory and then run it again, an error occurs.

    [2020-05-14 04:49:03,352] Artifact TomcatServletStudy:war exploded: Error during artifact deployment. See server log for details.

  3. So I went to check the log file. The content is as follows:

    13-May-2020 10: 05: 00.130 Warning [main] org.apache.catalina.core.StandardServer.await Invalid shutdown command [] received
    13-May-2020 10: 57: 10.092 Warning [main] org.apache.catalina.core.StandardServer.await Invalid shutdown command [] received
    13-May-2020 11: 05: 27.163 Warning [main] org.apache.catalina.core.StandardServer.await Invalid shutdown command [] received
    13-May-2020 11: 57: 09.742 Warning [main] org.apache.catalina.core.StandardServer.await Invalid shutdown command [] received
    13-May-2020 11: 59: 43.194 Warning [main] org.apache.catalina.core.StandardServer.await Invalid shutdown command [] received
    13-May-2020 12: 04: 29.498 Warning [main] org.apache.catalina.core.StandardServer.await Invalid shutdown command [] received
    13-May-2020 12: 35: 44.534 Information [Thread-4] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler [“http-nio-8080”]
    13-May-2020 12: 35: 44.553 Information [Thread-4] org.apache.catalina.core.StandardService.stopInternal Stopping service [Catalina]
    13-May-2020 12: 35: 44.584 Information [Thread-4] org.apache.coyote.AbstractProtocol.stop is stopping ProtocolHandler [“http-nio-8080”]
    13-May-2020 12: 35: 44.591 Information [Thread-4] org.apache.coyote.AbstractProtocol.destroy is destroying the protocol processor [“http-nio-8080”]

    13-May-2020 12:35:44.574 Information [localhost-startStop-5] org.apache.catalina.core.ApplicationContext.log SessionListener: contextDestroyed()
    13-May-2020 12:35:44.574 Information [localhost-startStop-5] org.apache.catalina.core.ApplicationContext.log ContextListener: contextDestroyed()

  4. My project structure settings are as follows: 2020-05-14 17 07 26 2020-05-14 17 07 40 2020-05-14 17 07 55 2020-05-14 17 08 05 2020-05-14 17 08 55

  5.  My Run / Debug Configurations settings are as follows: 2020-05-14 17 11 55 2020-05-14 17 12 12 2020-05-14 17 12 22

  6. My specific operation process: Error1 Error2 Error3 Error4 Error5 Error6Hope a friend can give me a way to solve this problem, this problem has troubled me for a long time. thank you all.