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"



 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM