facebook

Tomcat 5.5 in debug mode linked to old code

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #239708 Reply

    buechet
    Member

    Hi everybody

    When I deploy a JSP/JSF app to tomcat (5.5) and then run Tomcat in debug mode with breakpoints set, as soon as the breakpoint is reached, (My)Eclipse shows me old code (which I thought didn’t exist anymore). Since the line number is correct in debug mode, the lines that are highlighted make no sense, they are sometimes whitespace lines etc.
    Other symptoms are:

    -(My)Eclipse shows me errors for imports (i don’t know where that file comes from, but it seems not to see the other ones).

    -Even if I have the sourcecode file already opened (a.java), (My)Eclipse opens the exact same file (a.java) in that old version in the editor.

    How can I force the debug mode to always update the linked sourcefiles?

    Thank you very much for your help!!

    Thierry

    #239728

    Rob Curry
    Member

    I have had this problem with tomcat. The old code is in tomcat’s working directory, and tomcat may not have recompiled your updated jsp. Make sure that you delete all the files under $TOMCAT_HOME/work directory, which will force re-compilation of the jsp. Also, make sure that you don’t have another open Eclipse project with jsps with the same name–I have seen the debugger get confused by this as well.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Tomcat 5.5 in debug mode linked to old code

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