在Eclipse中用Tomcat启动服务端工程,一启动就会出错,报错如下:
“Server Tomcat v6.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.”
问题在于,Tomcat设定启动时间太短,只有45s,而工程大,45s启动它不够用。
==============解决方案:
在WorkSpace中找文件:WorkSpace——.metadata——.plugins——org.eclipse.wst.server.core——servers.xml
start-timeout=
"45" 修改为 start-timeout="1000"