facebook

Debugging JSPs with Tomcat 5

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

    japher
    Member

    Hi,

    I have recently tried to debug JSPs (not the compiled version, but the jsp file) with MyEclipse and Tomcat 5.0.28 but the breakpoints I set never work. I have:

    1. Deployed my Web Project to Tomcat 5.
    2. Started the server through MyEclipse.
    3. Set the breakpoint in a Java code part of my JSP.
    4. Navigated to that page.

    The breakpoint never gains a tick mark (which I understand from the documentation should happen when Tomcat compiles the JSP or something), and the execution never gets stopped at the breakpoint.

    I am able to debug Java files which are being used by the server (including the compiled JSPs!), just not JSP pages.

    I’m using Eclipse 3.0.0 (build id: 200406251208) and MyEclipse 3.8.2 (build id: 200409171200-3.8.2). None of the three or four others using eclipse in my office are able to get these breakpoints working either.

    Thanks in advance for the help you provide,
    Joe.

    #218790 Reply

    Riyad Kalla
    Member

    Joe,
    You need to make sure to have the Tomcat connector setup to launch Tomcat in debug mode (Tomcat 5 > Launch settings), also you need to be using JDK 1.4+ to run Eclipse AND Tomcat for debugging to work. We prefer JDK 1.4.2_06 as that minimizes debugging weirdness.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Debugging JSPs with Tomcat 5

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