您的位置:首页 > 运维架构 > Tomcat

Cannot start Tomcat to debug in Eclips - tomcat localhost-config is missing, 'Starting Tomcat v7.0 Server at localhost' has encountered a problem.

2012-05-15 10:49 363 查看
在Eclipse的JavaEE环境中,点击run下拉run as- run on server, 选择index.jsp,启动tomcat调试失败,错误信息:Tomcat localhost-config is missing, 'Starting Tomcat v7.0 Server at localhost' has encountered a problem.如何解决?

Services,stop Tomcat service,otherwise the port will be in using。
JavaEE Servers tab page, remove all existing...then create a new server of Tomcat7.0 server, finish
Double click on the "Tomcat7" entry to see the configuration.

Then click on the "Open launch configuration" link in the "General information" block.
In the dialog, select the "Classpath" tab.
At "Bootstrap entries", Click the "Add external jar" button.
Select the file "/usr/share/tomcat6/bin/tomcat-juli.jar" (Use Everything to locate the file)
Click "Apply", Close the dialog.
Start tomcat 7 from Eclipse.10. Debug breakpoints:
Select index.jsp, set break point in controller classes.

Click eclips menu: "Run - Debug as - Debug on server"
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐