以前沒碰到過(guò)這種問題,在eclipse下只轉(zhuǎn)過(guò)Tomcat,沒超時(shí)過(guò)。
后來(lái)奔向了netbeans。據(jù)我所知netbeans沒有server超時(shí)設(shè)定,時(shí)間太長(zhǎng)的話項(xiàng)目build會(huì)失敗但server總是能起來(lái)。這樣再build項(xiàng)目的話運(yùn)行是沒問題的。
如今項(xiàng)目要用eclipse轉(zhuǎn)JBoss,于是遇到了timeout:

'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.
找了半天沒找到server editor...
當(dāng)時(shí)不能上網(wǎng),就一個(gè)個(gè)文件點(diǎn)開排查。
最后找到了修改方法:
編輯servers.xml(your_workspace/.metadata/.plugins/org.eclipse.wst.server.core/servers.xml),搜索"start-timeout",把值改大,比如start-timeout="50000"。當(dāng)然,需要重啟eclipse。
PS:剛才搜索到了另一個(gè)方法,明天再試試:
Double-click the server in the Servers view to open the server editor. Then expand the Timeouts section on the right side of the editor.
后來(lái)奔向了netbeans。據(jù)我所知netbeans沒有server超時(shí)設(shè)定,時(shí)間太長(zhǎng)的話項(xiàng)目build會(huì)失敗但server總是能起來(lái)。這樣再build項(xiàng)目的話運(yùn)行是沒問題的。
如今項(xiàng)目要用eclipse轉(zhuǎn)JBoss,于是遇到了timeout:

'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.
找了半天沒找到server editor...
當(dāng)時(shí)不能上網(wǎng),就一個(gè)個(gè)文件點(diǎn)開排查。
最后找到了修改方法:
編輯servers.xml(your_workspace/.metadata/.plugins/org.eclipse.wst.server.core/servers.xml),搜索"start-timeout",把值改大,比如start-timeout="50000"。當(dāng)然,需要重啟eclipse。
PS:剛才搜索到了另一個(gè)方法,明天再試試:
Double-click the server in the Servers view to open the server editor. Then expand the Timeouts section on the right side of the editor.