Server Tomcat v8.0 Server at localhost was unable to start within 45 seconds. If the server requires

Server Tomcat v8.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor.


Server Tomcat v8.0 Server at localhost was unable to start within 45 seconds. If the server requires

错误原因:

1、是项目配置有错误(可能是数据库、Redis之类的配置错误,也可能是相关的服务没有启动,防火墙之类的);

2、是项目启动的确实比较慢,需要更长的时间。


解决方法:

1、双击Servers
Server Tomcat v8.0 Server at localhost was unable to start within 45 seconds. If the server requires

2、调整启动Tomcat的时间限制;

Server Tomcat v8.0 Server at localhost was unable to start within 45 seconds. If the server requires

按Ctrl+S保存一下就可以啦,然后重新启动服务器;


如果将时间改的很大了,还是不能启动成功,有以下两种情况:

1、项目配置有问题,上面说过了;

2、tomcat 的 webapps 目录下还有其它的项目,导致服务启动失败了,尝试删除其它项目,再启动调试看看。