表示您的tomcat启动超时!项目大一点的时候经常都会出现这样的启动错误,解决方法:
打开配置文件:workspace\.metadata\.plugins\org.eclipse.wst.server.core\servers.xml
内容如下:
<?xml version="1.0" encoding="UTF-8" standalone="no"?><servers> <server auto-publish-setting="2" auto-publish-time="1" configuration-id="/Servers/Tomcat v7.0 Server at localhost-config" deployDir="wtpwebapps" hostname="localhost" id="Tomcat v7.0 Server at localhost" name="Tomcat v7.0 Server at localhost" runtime-id="Apache Tomcat v7.0" server-type="org.eclipse.jst.server.tomcat.70" server-type-id="org.eclipse.jst.server.tomcat.70" start-timeout="45" stop-timeout="15" testEnvironment="true" timestamp="3"> <list key="modules" value0="JNJW::org.eclipse.jst.jee.server:JNJW::jst.web::3.0"/> </server></servers>
改成:
<?xml version="1.0" encoding="UTF-8" standalone="no"?><servers> <server auto-publish-setting="2" auto-publish-time="1" configuration-id="/Servers/Tomcat v7.0 Server at localhost-config" deployDir="wtpwebapps" hostname="localhost" id="Tomcat v7.0 Server at localhost" name="Tomcat v7.0 Server at localhost" runtime-id="Apache Tomcat v7.0" server-type="org.eclipse.jst.server.tomcat.70" server-type-id="org.eclipse.jst.server.tomcat.70" start-timeout="1000" stop-timeout="15" testEnvironment="true" timestamp="3"> <list key="modules" value0="JNJW::org.eclipse.jst.jee.server:JNJW::jst.web::3.0"/> </server></servers>
最后重启ecilpse就可以了
转载于:https://www.cnblogs.com/JacobDu-AJia/archive/2012/11/22/j2ee_tomcat.html
相关资源:JAVA上百实例源码以及开源项目