eclipse 中 jboss 启动时提示: Server
JBoss v5.0 at localhost was unable to start within 50 seconds. If the
server requires more time, try increasing the timeout in the
server editor.
初次看到这个错误以为是由于时间问题造成的,因此在网上搜了一下,就得到下面的解决办法,如红色字体所示把指定文件的特定 start-timeout 值修改大一些,我没别人贪心,就把 50 扩大了 10 倍,结果等到 JBOSS 启动 500s 后仍出现上述错误。 500s 还不够???我有点怀疑到底是不是时间的问题。所以就把一次 JBOSS 启动的 log 看了一遍。事实证明我的怀疑不是多余的。从 log 中得知,原来是系统的 8009 端口被占用,关闭占用 8009port 的程序,重新启动 JBOSS ( start-time 仍为 500s ),哈哈,启动成功。把 start-time 改回 50 ,依然启动成功。 因此,造成 unable
to start within 50
seconds 的真正原因是启动 JBOSS 程序所需 port 被占用,解决办法:关闭占用 port8009 的程序或者修改 JBOSS 启动的 8009 端口。 解决办法 : 修改 workspace.metadata.pluginsorg.eclipse.wst.server.coreservers.xml 文件。 <servers> <server
hostname="localhost" id="JBoss v5.0 at localhost"
name="JBoss v5.0 at localhost" runtime-id="JBoss
v5.0"
server-type="org.eclipse.jst.server.generic.jboss5" server-type-id="org.eclipse.jst.server.generic.jboss5" start-timeout="1000" stop- timeout="15"
timestamp="0"> <map jndiPort="1099"
key="generic_server_instance_properties"
port="8090" serverAddress="127.0.0.1"
serverConfig="default"/> </server> </servers> 把
start-timeout="50"
改为
start-timeout="1000" 重启 eclipse 就可以了。
转载于:https://www.cnblogs.com/MagicLetters/archive/2009/11/02/4382734.html