解决 Tomcat v7.0 Server at localhost was unable to start within 45 seconds

刚启动项目就报了不认识的错误。
@[TOC](这里写自定义目录标题)
对于这个错误,我的理解是:tomcat启动有问题,他没能再45秒内启动起来,需要更多的时间,可以尝试增加项目开启时间。

操作如下:

01 对于这个的设置操作为,双击tomcat server:

在这里插入图片描述

然后在弹出页面

在这里插入图片描述

在展开页面中设置

在这里插入图片描述
将启动时间延长后,重新启动项目,若还报错,则就再延长时间,还有就是可能项目有问题,再去百度一下这个问题。

附:https://www.eclipse.org/forums/index.php/t/452333/
在这个论坛中有提及到如下话语:

This said, it’s probably not your real problem. What’s really
happening is that stuff you’re making Tomcat initialize, such as a
ContextListener (check for the identity of such classes in web.xml),
is not finishing within 45 seconds. Perhaps there’s an infinite loop,
you’re waiting some resource that doesn’t exist, etc.

我的理解是:对于tomcat没有启动起来的问题,可能你并不是因为时间不够长的导致的。真正可能的原因是发生某些情况阻塞了tomcat初始化,例如contextlistener没有在45s内完成。也许是因为你所加载的资源不存在而陷入死循环。

希望对大家有帮助。

猜你喜欢

转载自blog.csdn.net/zuoyouzouzou/article/details/83743516