本文主要是介绍jboss (Server JBoss v5.0 at localhost was unable to start within 50 seconds) 异常,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
解决办法:
修改 workspace/.metadata/.plugins/org.eclipse.wst.server.core/servers.xml文件。
- 01.<servers>
- 02.<server hostname="localhost" id="JBoss v5.0 at localhost" name="JBoss v5.0 at
- 03.localhost" runtime-id="JBoss v5.0" server-type="org.eclipse.jst.server.generic.jboss5"
- 04.server-type-id="org.eclipse.jst.server.generic.jboss5" start-timeout="1000" stop-
- 05.timeout="15" timestamp="0">
- 06.<map jndiPort="1099" key="generic_server_instance_properties" port="8080"
- 07.serverAddress="127.0.0.1" serverConfig="default"/>
- 08.</server>
- 09.</servers>
把 start-timeout="50" 改为 start-timeout="1000"
重启eclipse就可以了。
转载之http://blog.csdn.net/java85140031/article/details/7105700
但是我还是发现有问题,上面那个 port="8080" 这个端口好像还跟..\jboss-5.0.1.GA\server\default\deploy\jbossweb.sar\server.xml这个文件中的端口一样,再加上上面的修改,
server.xml文件修改如下
<!-- A HTTP/1.1 Connector on port 8080 -->
<Connector protocol="HTTP/1.1" port="8080" address="${jboss.bind.address}"
connectionTimeout="20000" redirectPort="8443" />
<!-- Add this option to the connector to avoid problems with
.NET clients that don't implement HTTP/1.1 correctly
restrictedUserAgents="^.*MS Web Services Client Protocol 1.1.4322.*$"
-->
<!-- A AJP 1.3 Connector on port 8009 -->
<Connector protocol="AJP/1.3" port="8009" address="${jboss.bind.address}"
redirectPort="8443" />
二个红颜色的部分一样,我就ok了
这篇关于jboss (Server JBoss v5.0 at localhost was unable to start within 50 seconds) 异常的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!