ServerTomcatv6.0Serveratlocalhostwasunabletostartwithin45seconds

王朝学院·作者佚名  2016-08-27
窄屏简体版  字體: 小  |  中  |  大  |  超大  

错误详情:Server Tomcat v6.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor. -------连接超时的一种提示

原因一:

限定了部署的时间导致的错误。

解决办法:

修改 workspace\.metadata\.plugins\org.eclipse.wst.server.core\servers.xml文件。

<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="1000"stop-

timeout="15" timestamp="0">

<map jndiPort="1099" key="generic_server_instance_PRoperties" port="8090"

serverAddress="127.0.0.1" serverConfig="default"/>

</server>

</servers>

把其中的start-timeout="45" 改为 start-timeout="100" 或者更长,可根据工程大小来设置。最后重启eclipse就可以了。

原因二:

数据库配置不正确。

解决办法:

检查数据库是否有正确配置。

 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
© 2005- 王朝網路 版權所有 導航