JBoss was unable to start within 50 seconds

在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.
JBoss was unable to start within 50 seconds_第1张图片

方法一:
    在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> 

你可能感兴趣的:(eclipse,server,jboss,list,properties,encoding)