1. 程式人生 > >Eclipse中用Tomcat啟動服務端工程,一啟動就會出錯

Eclipse中用Tomcat啟動服務端工程,一啟動就會出錯

在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"