when Eclipse launches Tomcat, the default configured startup timeout is 45 seconds. If the project starts more than 45 seconds, it will be an error.
Two workarounds:
1. Change XML
Eclipse\workspace\.metadata\.plugins\org.eclipse.wst.server.core\servers.xml
Start-timeout= "45"
Modify the Workspace\.metadata\.plugins\org.eclipse.wst.server.core\servers.xml file.
<servers>
<server hostname= "localhost" id= "JBoss v5.0 at localhost" name= "JBoss v5.0 at
localhost "runtime-id=" JBoss v5.0 "server-type=" ORG.ECLIPSE.JST.SERVER.GENERIC.JBOSS5 "
server-type-id= "org.eclipse.jst.server.generic.jboss5" start-timeout= "stop- "
timeout= "timestamp=" 0 ">
<map jndiport= "1099" key= "generic_server_instance_properties " port= "8090"
serveraddress= "127.0.0.1" serverconfig= "Default"/>
</server>
</servers>
Change the start-timeout= "45" to start-timeout= "100" or longer, depending on the project size of each student. Finally, you can restart eclipse.
2, double-click the corresponding server in the servers view, open the server's property interface, there is a timeouts on the right, the inside of the 45 bigger
45-second time-out workaround for eclipse when booting tomcat