zoukankan      html  css  js  c++  java
  • Cannot start Tomcat to debug in Eclips tomcat localhostconfig 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"



  • 相关阅读:
    android监听屏幕打开关闭广播无响应的情况
    2020/4/9
    2020/4/8
    2020/4/7
    conda镜像
    2020/4/3
    2020/4/2
    2020/4/1
    EYELIKE源代码解读
    bzoj3162 独钓寒江雪
  • 原文地址:https://www.cnblogs.com/Mainz/p/2501107.html
Copyright © 2011-2022 走看看