java Eclipse未在调试模式下启动tomcat7服务器
我正在尝试调试我的代码,eclipse不会在调试模式下运行,但是在正常启动时运行良好
下面是我在eclipse弹出窗口中遇到的例外情况:
Server Tomcat v7.0 Server at localhost was unable to start within 90 seconds. If the server requires more time, try increasing the timeout in the server editor.
当我看控制台时,一切看起来都很好,请看一下
INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/security/oauth/details.xml]
Mar 11, 2015 11:48:38 AM org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
INFO: Loading properties file from class path resource [dev/com.myPack.plat.data.mongo.config.props/mongo-config.properties]
请帮帮我
# 1 楼答案
在eclipse中不以调试模式启动tomcat有多种原因。下面的检查点可以帮助您解决问题
如果您使用的是Windows操作系统,请首先检查您的Windows防火墙规则。如果列表中包含javaTM,则启用规则(如果禁用),然后选择启用连接并单击应用和确定
检查eclipse首选项jre和tomcat运行时配置。JDK路径更可取
如果需要,增加超时时间
在启动服务器之前,请在task manager或mac user check activity monitor中检查进程。如果java进程正在运行,就需要终止它
重新启动eclipse并清理构建和调试。如果问题仍然存在,那么以eclipse的新实例为例。有时eclipse内部设置也会限制tomcat调试模式