解决办法:
修改 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了