facebook

Tomcat debugging not working

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #349406 Reply

    greybeard
    Participant

    Tomcat debugging not operating:
    I updated to latest (osx) java:
    Tomcat 7.1, Myeclipse 10.7.1, osx 10.9.3, jdk 1.7.0_10 (was 1.6)

    Fails to stop at any breakpoint. I have “add line numbers to generated classes..” ticked OK

    The system kicks off tomcat with:
    /Library/Java/JavaVirtualMachines/jdk1.7.0_10.jdk/Contents/Home/bin/java -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:50607 -Dcatalina.home=/Users/bruce/Library/Tomcat/tomcat7.1-8090 -Dcatalina.base=/Users/bruce/Library/Tomcat/tomcat7.1-8090 -Djava.endorsed.dirs=/Users/bruce/Library/Tomcat/tomcat7.1-8090/common/endorsed -Djava.io.tmpdir=/Users/bruce/Library/Tomcat/tomcat7.1-8090/temp -Djava.library.path=/Library/Java/JavaVirtualMachines/jdk1.7.0_10.jdk/Contents/Home/bin:/Users/bruce/Library/Tomcat/tomcat7.1-8090/bin -Dsun.io.useCanonCaches=false -classpath /Users/bruce/Library/Tomcat/tomcat7.1-8090/bin/bootstrap.jar:/Users/bruce/Library/Tomcat/tomcat7.1-8090/bin/tomcat-juli.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_10.jdk/Contents/Home/lib/tools.jar org.apache.catalina.startup.Bootstrap start

    Grateful of your assistance
    regards Bruce

    #349413 Reply

    support-swapna
    Moderator

    Bruce,

    Sorry that you are seeing this issue. I could not replicate the debug issue with Tomcat 7.0.53 at my end.

    Can you please answer some more questions for us?

    1. From where did you download Tomcat 7.1 ? The latest version of 7.x available on the Apache Tomcat site is 7.0.53. Please send us the link for Tomcat 7.1.

    2. Did you change the JDK at Window > Preferences > MyEclipse > Servers > Tomcat 7.x > JDK to point to JDK 1.7 instead of JDK 1.6 ? Can you please clarify if the Debug works on any other server?

    3. Make sure the “Skip All BreakPoints” is not enabled. Can you try unmarking checkbox “Add line number attributes…”, Click Apply, Mark checkbox “Add line number attribute…”, Apply again and see if the issue persists?

    4. Are you trying to debug a simple web application? Can you please switch to a new workspace, setup the Tomcat 7.x connector with JDK 1.7, install the SimpleJSPExample from the MyEclipse > Examples On Demand, setup a breakpoint on the Java class, right click on the project > Debug As > MyEclipse Server Application > Tomcat 7.x and see if the issue persists ?

    5. If you are still seeing issues, please check if there are any errors/exceptions logged in the .log file which is located at <workspace dir>/.metadata/.log. If there are any please paste them here along with steps in detail on how you are trying to debug the project to help us investigate further.

    6. Also please copy paste the MyEclipse Installation Details from MyEclipse > Installation Summary > Installation Details here.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Tomcat debugging not working

You must be logged in to post in the forum log in