When Eclipse launches Tomcat, the default configured startup timeout is 45 seconds. If the project needs to load more things, the startup time will be longer, if the start more than 45 seconds will be an error. There are two ways to solve this, and only one is to modify the startup time.
1. Modify the Server.xml configuration file under Eclipse's workspace.
Find the Eclipse workspace and find the Server.xml configuration file in the workspace, such as my Eclipse's server.xml in: E:\program\workspace\.metadata\.plugins\ Org.eclipse.wst.server.core folder below, find Servers.xml, open the file, find start-timeout= "45" content, change 45 to 45 larger than the value, such as my change to start-timeout= " 60 ", save.
2. Open the Eclipse development tool, double-click the corresponding server in the servers view, open the server's property interface, there is a timeouts on the right, find the start (in seconds), the inside of the 45 is larger, for example, I changed to 60. As shown in the following:
In fact, the above two kinds of modification are the same, but the way is not the same.
Workaround for Eclipse 45-second timeout when booting tomcat