超時的原因主要是由於配置不一致造成的,檢查下 eclipse中jboss server的配置,位置在workspace\.metadata\.plugins\org.eclipse.wst.server.core下的server.xml
xml**
xmlversion="1.0"
encoding="utf-8"
standalone="no"
?>
<
servers
>
<
server
hostname="localhost"
id="jboss v4.0 at localhost"
name="jboss v4.0 at localhost"
runtime-id="jboss v4.0"
server-type="org.eclipse.jst.server.generic.jboss4"
server-type-id="org.eclipse.jst.server.generic.jboss4"
start-timeout="50"
stop-timeout="15"
timestamp="1"
>
<
mapjndiport="1099"
key="generic_server_instance_properties"
port="8080"
serveraddress="127.0.0.1"
serverconfig="default"
/>
<
list
key="modules"
value0="order_query::org.eclipse.jst.j2ee.server:order_query::jst.web::2.4"
/>
<
list
key="generic_server_modules_list"
value0="org.eclipse.jst.j2ee.server:order_query"
/>
server
>
servers
>
確定這裡的jndi port 和port是否和jboss中的對應配置相同,如果不相同,就會導致雖然jboss已經啟動完成,然而eclipse不能查詢到伺服器的狀態,所以在eclipse中伺服器一直顯示為starting狀態,最後超時。
檢視jboss中的配置
jbosspath\server\default\deploy\jbossweb-tomcat55.sar 中的server.xml 的
確保這裡的埠號為8080
最後檢視jndi的埠號,位置 jbosspath\server\default\conf中的 jboss-service.xml
xml**
<
mbean
code="org.jboss.naming.namingservice"
name="jboss:service=naming"
xmbean-dd="resource:xmdesc/namingservice-xmbean.xml"
>
the caller's tcl, false if in vm lookups return the value by reference.
-->
<
attribute
name="callbyvalue"
>false
attribute
>
to run the namingservice without the jnp invoker listening port.
-->
<
attribute
name="port"
>1099
attribute
>
確保這裡的1099和eclipse中的一致。
另一篇位址
eclipse中jboss啟動時提示超時
server jboss v4.2 at localhost was unable to start within 50 seconds.if the server requires more time,try increasing the timeout in the server editor....
jboss 啟動選項
usage run.sh options options h,help show this help message v,version show version information stop processing options d set a system property d,bootdi...
Eclipse裡Jboss的配置
1.workspace metadata plugins org.eclipse.wst.server.core servers.xml 修改 start timeout,避免出現jboss未啟動已被終結。2.jboss主頁的修改,可以自動跳轉到當前工程主頁。server default deplo...