在使用MyEclipse启动tomcat时,可能会出现如下错误:Server xxx was unable to start within 45seconds....
在MyEclipse中默认的服务启动超时时间为45秒,如果服务不能在超时时间内启动,需要修改MyEclipse配置。
有两种方式:
1)在MyEclipse的Server视图中,选中超时的Server,双击后在弹出的页面中找到Timeouts选项。
展开后,将Start(in seconds):对应的值调大。
重新启动Tomcat,如果还是超时再次调大。
2)在MyEclipse的工作空间的.metadata\.plugins\org.eclipse.wst.server.core目录下,找到servers.xml。在servers.xml中,找到name属性为超时项目名的server标签,找到其start-timeout属性,将其值调大后保存,然后重新启动Tomcat,如果还是超时再次调大。