发生了一件奇怪的事情,似乎它是由最新的Windows升级引发的。我从Windows 8.0升级到8.1,从那时起,Spring Tool Suite中的嵌入式tomcat服务器将无法启动。
日志/控制台输出中没有任何问题,控制台表示它正常启动,但在服务器选项卡中显示服务器仍处于“正在启动...”状态(如下所示)。
120秒后,我得到以下对话框:
Server Tomcat v7.0 Server at localhost was unable to start within 120 seconds. If the server requires more time, try increasing the timeout in the server editor.
我尝试从命令提示符运行Tomcat服务器,它工作正常。我可以启动服务器并部署我的应用程序。
有任何想法吗?
只需双击服务器,它将打开一个窗口并单击超时并给出300秒并尝试它。它肯定会开始。
也许您需要更改文件权限。例如,如果服务器存储在C:\ SpringToolSuite \ sts-bundle \ pivotal-tc-server-developer-3.1.1.RELEASE中,(对于Windows 7)双击C:\ SpringToolSuite \ <Properties <Security。然后将权限更改为“Total Control”。