Current location - Quotes Website - Collection of slogans - What is the reason for the problem when eclipse starts tomcat?
What is the reason for the problem when eclipse starts tomcat?
The main reasons for Tomcat startup failure in eclipse are as follows:

I guess you started Tomcat before and didn't turn it off. Starting Tomcat through Eclipse now will prompt you that the port has been occupied.

You open the Task Manager to see if there is javaw.exe in the process. Generally, there are two such processes: Eclipse and Tomcat (usually the one that takes up less memory). Finish this.

Really can't. Both javaw.exe's over. Restart Eclipse and then start Tomcat.

1, Tomcat running independently is not closed. ?

2.Tomcat has been running before, or Tomcat is abnormally closed, and Tomcat still exists in the process.

3. The port used by Tomcat is occupied by other software (the default port of Tomcat is 8080).

Solutions to the above errors:

1. In the system service, change the startup mode of Tomcat from "automatic" to "manual" (by default, Tomcat is an automatic startup service, starting from startup).

2. Shut down the Tomcat running independently, and make sure to stop the Tomcat service before Eclipse starts Tomcat.

3. Check the Task Manager to see if there is Tomcat in the process, and if there is, close it.

4. If starting Tomcat in Eclipse is still unsuccessful, the port of Tomcat may be occupied.

A. find the server.xml file: ... \Tomcat 5.0.28\conf\ under the Tomcat path, retrieve the port number: 8080, and change it to an unoccupied port number, such as 8088.