facebook

Cannot debug JSPs with Tomcat 5.0.14 [Closed]

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #201536 Reply

    tisc
    Member

    Hi there,

    I’ve just installed MyEclipse 2.7RC2 on a fresh Eclipse 2.1.1. I’m using Tomcat 5.0.14 on Linux with JDK 1.4.2.

    First, I created a Java project, then added Web Project Capabilities.
    (Deploying the exploded structure). I started Tomcat from MyEclipse.

    After all, I cannot debug JSPs. Breakpoints are simply ignored; if I set
    a breakpoint in a class and go up the stack, I get a “cannot find source for …_jspService).

    So I tried the Hello-World examples from the help. They both worked.
    I then removed the web capabilites from the project and started over – to no avail.

    Any hints what I could further check?

    Bye+Thanks! Tino.

    #201563 Reply

    Hi!

    I don’t have Linux installed, but I recently had a problem debugging JSP, so I would like to help you out.
    Were you able to debug JSP using the tutorial?

    #201564 Reply

    tisc
    Member

    @antcasq wrote:

    Were you able to debug JSP using the tutorial?

    Yes, I could debug the examples from the tutorial. At first I had problems, but later it worked (though I don’t know what was wrong). Then I tried my real project and couldn’t get debugging to work.

    Bye, Tino.

    #201565 Reply

    tisc
    Member

    I experimented a little further…

    I added the mappedfile attribute to the Tomcat config (altough it’s only recommended for 5.0.16 and I’m using 5.0.14). Now I can debug some of the files, but not the particular JSP I’m currently interested in.

    There are no browser caches involved since I’m logging in again and therefore get a new session ID which is part of the URL.

    Then I set a breakpoint in a Java class, and go up the stack trace into the JSP, I get a

    Source not found for parentcat_005fdlg_jsp._jspService(HttpServletRequest, HttpServletResponse) line: 20

    Any hints?

    Bye, Tino.
    [/b]

    #201567 Reply

    support-michael
    Keymaster

    Hmmm! This is perculiar. I’m currently looking into a similar problem reported here:

    https://www.genuitec.com/forums/topic/tomcat5-debug-prob-for-jsps-w-and-default-closed/

    Can you provide more info regarding your jsp’s location under the <web root> and ability to debug jsp’s in different dir structures of your app?

    Michael
    MyEclipse Support

    #201576 Reply

    tisc
    Member

    @support-michael wrote:

    Hmmm! This is perculiar. I’m currently looking into a similar problem reported here:

    https://www.genuitec.com/forums/topic/tomcat5-debug-prob-for-jsps-w-and-default-closed/

    Can you provide more info regarding your jsp’s location under the <web root> and ability to debug jsp’s in different dir structures of your app?

    The app is rather huge, so it’s difficult to figure out what the differences are.

    The project structure is roughly the following:

    
    / <-- project root
    /webroot
    /webroot/WEB-INF/classes/ <- source + compiled files are here
    /webroot/jsp/
    /webroot/jsp/c4u/core/index.jsp <- I can debug this
    /webroot/jsp/c4u/core/menu.jsp <- I can debug this
    /webroot/jsp/c4u/core/parentcat_dlg.jsp <- I can *not* debug this
    /webroot/jsp/c4u/core/parentcat_ctrl.jsp <- I can *not* debug this
    /webroot/jsp/c4u/core/admin/sync/sync_dlg.jsp <- I can *not* debug this
    /webroot/jsp/c4u/classic/case/problem_dlg.jsp <- I can *not* debug this
    /webroot/jsp/c4u/ddm/show.jsp <- I can debug this
    /webroot/jsp/c4u/ddm/clipboard_edit_dlg.jsp <- I can *not* debug this
    /webroot/jsp/c4u/ddm/navigate.jsp <- I can debug this
    /webroot/jsp/c4u/core/mainframe.jsp <- I can debug this
    /webroot/jsp/c4u/core/media_dlg.jsp <- I can *not* debug this
    /webroot/jsp/c4u/core/mediadlg.jsp <- I can debug this
    

    I always set breakpoints in Java code sections, not on tags.

    It looks like there’s a problem with underscores in JSP names?

    Bye, Tino.

    #201580 Reply

    support-michael
    Keymaster

    Thanks for the extra info and insight. I’m able to replicate a situation where breakpoints are ignored in JSP with ‘_’ in their filename. I have entered this problem in out issues tracking system for further research.

    Thanks

    Michael
    MyEclipse Support

    #201583 Reply

    tisc
    Member

    @support-michael wrote:

    Thanks for the extra info and insight. I’m able to replicate a situation where breakpoints are ignored in JSP with ‘_’ in their filename. I have entered this problem in out issues tracking system for further research.

    Okay, bad luck for us – 95% of our JSP pages contain underscores, so the JSP debugging facilities of MyEclipse are now pretty useless for us. 🙁

    Looking forward for a fix,

    Tino.

    #201749 Reply

    shmyeclipse
    Member

    Hi!

    I’ve got tisc’s problem. Most part of the jsp pages of my web application contain underscores, and I can’t debug the pages in any way. 🙁 🙁

    How is the researching for the fix? Is ths bug resolved yet?

    Thanks in advance.

    #208980 Reply

    tisc
    Member

    What’s the state of affairs?

    This problem couldn’t be too hard to solve, right?

    Bye, Tino.

    #208986 Reply

    Riyad Kalla
    Member

    Tino,
    The debugging with underscores in the name should have been resolved a few releases ago, are you still seeing problems with Beta1?

    #209236 Reply

    tisc
    Member

    @support-rkalla wrote:

    The debugging with underscores in the name should have been resolved a few releases ago, are you still seeing problems with Beta1?

    Ah, fine. I’ll give it a try tomorrow.

    Thanks.

    Tino.

Viewing 12 posts - 1 through 12 (of 12 total)
Reply To: Cannot debug JSPs with Tomcat 5.0.14 [Closed]

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