[标题]:[转]JBoss was unable to start within 50 seconds
[时间]:2009-5-14
[摘要]:在Eclipse中JBoss不能正确启动,Java EE,J2EE
[关键字]:超时,JBoss,
[环境]:jboss-5.0.1.GA、Eclipse for Java EE:version3.4.1、Windows XP SP3
[作者]:Winty (wintys@gmail.com) http://www.blogjava.net/wintys
[错误]:
在Eclipse中启动JBoss 5.0时出现如下错误:
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.
[原因]:
50seconds不够用,当然要增加时间,才能完成启动。
[解决]:
方法一:
在EclipseWorkBench\.metadata\.plugins\org.eclipse.wst.server.core\servers.xml中,将start-timeout="50"改成start-timeout="500"
servers.xml:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<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="500" stop-timeout="15" timestamp="2">
<map jndiPort="1099" key="generic_server_instance_properties" port="8080" serverAddress="127.0.0.1" serverConfig="default"/>
<list key="modules" value0="MyEJBTest::org.eclipse.jst.jee.server:MyEJBTest::jst.web::2.5" value1="MyHelloWorld::org.eclipse.jst.jee.server:MyHelloWorld::jst.ejb::3.0"/>
<list key="Generic_Server_Modules_List" value0="org.eclipse.jst.jee.server:MyEJBTest" value1="org.eclipse.jst.jee.server:MyHelloWorld"/>
</server>
</servers>
方法2:
在EclipseForJavaEE\plugins\org.eclipse.jst.server.generic.jboss_1.5.205.v200805140145\plugin.xml中,将id="org.eclipse.jst.server.generic.jboss5"的serverType标签属性startTimeout="50000"改成startTimeout="500000"
<serverType
runtime="true"
class="org.eclipse.jst.server.generic.core.internal.GenericServer"
id="org.eclipse.jst.server.generic.jboss5"
initialState="stopped"
supportsRemoteHosts="false"
runtimeTypeId="org.eclipse.jst.server.generic.runtime.jboss5"
description="%jboss5serverTypeDescription"
launchConfigId="org.eclipse.jst.server.generic.core.launchConfigurationType"
behaviourClass="org.eclipse.jst.server.generic.core.internal.GenericServerBehaviour"
name="%jboss5serverTypeName"
startTimeout="500000"
stopTimeout="15000"
hasConfiguration="false"
launchModes="run,debug,profile">
</serverType>
[参考资料]:
[1] Eclipse JBoss5Beta4 struts问题 : http://topic.csdn.net/u/20080627/10/d4168af3-a8b3-4db5-8eaf-4773b9cce8b8.html
[2] eclipse中jboss启动时提示 50 seconds 超时 : http://www.cnblogs.com/ztf2008/archive/2009/03/20/1417579.html
posted on 2009-05-14 21:39
天堂露珠 阅读(1339)
评论(0) 编辑 收藏 所属分类:
Error