Tomcat启动报错

Q: Tomcat v6.0 启动错误信息

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.


A: 在部署的时候出现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.


也就是我们限定了部署的时间导致的错误,经过在网上的查找,找到了以下的解决方案:

我们找到当前工程的workplace目录,然后按下面的操作:

找到 workspace\.metadata\.plugins\org.eclipse.wst.server.core\servers.xml 文件。

<servers> 

<server auto-publish-setting="2"

auto-publish-time="1"

configuration-id="/Servers/Tomcat v6.0 Server at localhost-config"

deployDir="wtpwebapps"

hostname="localhost"

id="Tomcat v6.0 Server at localhost"

name="Tomcat v6.0 Server at localhost"

runtime-id="Apache Tomcat v6.0"

server-type="org.eclipse.jst.server.tomcat.60"

server-type-id="org.eclipse.jst.server.tomcat.60"

start-timeout="100"

stop-timeout="15"

testEnvironment="true"

timestamp="3"/>

</servers>


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

[img]https://mail.qq.com/cgi-bin/picimage?k=00007cb2878bef7fZC0000HMIjUCu9Ty~fRd2PmoW9Dg56[/img]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值