在eclipse啓動tomcat時遇到超時45秒的問題:web
Server Tomcat v7.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
解決辦法。eclipse
1.在 eclipse菜單-》window->preferencs裏找到server 中最下面一項:server timeout delay 設置成 Unlimited 便可!ui
可是eclipse 3.6,3.7中沒有找到這一選項。spa
2.修改 workspace\.metadata\.plugins\org.eclipse.wst.server.core\servers.xml文件。server
<font color="ed1c24">start-timeout="1000"</font> stop-timeout="15" testEnvironment="true" timestamp="5"></div> <div> <list key="modules" value0="newkia::org.eclipse.jst.jee.server:newkia::jst.web::2.5"/></div> <div>xml
把 start-timeout="45" 改成 start-timeout="1000" 或者更長ip
記得要重啓eclipseit