【发布时间】:2015-07-24 07:04:08
【问题描述】:
我在 Spring 3.0 和 mybatis 3.0 应用程序中使用带有 Eclipse Indigo 的 tomcat 6.0,并且我使用 Java 7。我的问题是 tomcat 没有启动,我收到以下消息的对话框:
Server Tomcat v6.0 Server at localhost was unable to start within 55
seconds. If the server requires more time, try increasing the timeout
in the server editor.
我尝试将超时时间增加到 2 分钟,但我仍然收到相同的消息。在控制台中打印tomcat启动消息的下面一行打印为最后一行:
INFO: Loading XML bean definitions from ServletContext resource
[/WEB-INF/rest-servlet.xml]
它之前工作正常。但是今天我开始在运行 tomcat 时收到超时消息。
可能是什么问题?
【问题讨论】:
-
将超时时间更改为 2 分钟后,您收到的消息完全相同吗?您在哪里编辑了超时时间?
-
嗯,你应该进入tomcat文件夹,打开conf目录,打开server.xml,你会发现那里有类似
-
@anujprashar 你能解决吗?
-
@WeareBorg,我尝试根据您的消息更改超时,但没有成功。
-
你必须重新启动服务器,我在我的机器上做了同样的事情。此外,编辑其他连接器的连接超时,尤其是 8443。并将值设置为 200000。或者更好的是,将 server.xml 粘贴到主帖子中。
标签: java eclipse spring tomcat