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

在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.如何解决?

 

  1. Services,stop Tomcat service,otherwise the port will be in using。
  2. JavaEE Servers tab page, remove all existing...then create a new server of Tomcat7.0 server, finish
  3. Double click on the "Tomcat7" entry to see the configuration.
  4. Then click on the "Open launch configuration" link in the "General information" block.
  5. In the dialog, select the "Classpath" tab.
  6. At "Bootstrap entries", Click the "Add external jar" button.
  7. Select the file "/usr/share/tomcat6/bin/tomcat-juli.jar" (Use Everything to locate the file)
  8. Click "Apply", Close the dialog.
  9. 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"



 

posted on 2012-05-15 10:49  Mainz  阅读(5365)  评论(0编辑  收藏  举报

导航