昨天被一個(gè)問(wèn)題煩了要死, Timeout waiting for Tomcat v5.5 Server @ localhost to start. Server did not start after 45s,原來(lái)沒(méi)遇到過(guò),一直在程序里找啊找 ,一直懷疑連接池有問(wèn)題,后來(lái)google了一把,
才知道是eclipse設(shè)置的問(wèn)題,哎,真是!!
一直在用eclipse wtp 3.2, 在winodw -> preferences -> server里 , 有項(xiàng)Server timeout delay,就它了,
選個(gè)Longer應(yīng)該就不會(huì)有問(wèn)題了。
另外一種方法:
'Starting SERVER_NAME' has encountered a problem.
Server SERVER_NAME was unable to start within 50 seconds. If the server requires more time, try increasing the timeout in the server editor.
找了半天沒(méi)找到server editor...
當(dāng)時(shí)不能上網(wǎng),就一個(gè)個(gè)文件點(diǎn)開(kāi)排查。
最后找到了修改方法:
編輯servers.xml(your_workspace/.metadata/.plugins/org.eclipse.wst.server.core/servers.xml),搜索"start-timeout",把值改大,比如start-timeout="50000"。當(dāng)然,需要重啟eclipse。