facebook

JSP Debugging: Line mattching between JSP and servlet is off

💡
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 IDE
  2.  > 
  3. General Development
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #204752 Reply

    saykalik
    Member

    I’m using MyEclipse 3.7 RC2 with JBoss 3.2.3 using Tomcat 5 (5.0.16). I am able to put a break point in the JSP code and it will hit, however when I am stepping through I stay in the JSP but the context seems to be wrong. What I mean is that the line it says its on/executing does not make sence to execute (i.e. blank line, comment, etc…) It seems like the JSP and the compiled JSP being executed are not the same, or at least its lost its context in one of them.

    I don’t know what to do or how to make sure that the correct compiled JSP file is being executed with the correct JSP file.

    Thanks
    Kamil

    #204757

    Riyad Kalla
    Member

    Kamil,
    When I checked JBoss’s website here, http://www.jboss.org/downloads, it seems that JBoss 3.2.3 uses Tomcat 4.1.29. Are you absolutely sure you are using Tomcat 5?

    Also, keep in mind that there are two parts to successful debugging, 1 is a JSR-45 compliant container (Tomcat 5 is great for this), but the other part is a Java 1.4 VM (JDK 1.4+).

    I would make sure you are using both of these first.

    #204776

    saykalik
    Member

    I am using the tomcat 5 that is found on the JBoss-3.2.3 examples directory. I followed instructions on replacing the tomcat 4 that comes with it. I am also using JDK 1.4 as well.

    Is there anything special I need to do for it to match line?

    Kamil

    #204778

    Riyad Kalla
    Member

    Kamil,
    What version of Tomcat 5 are you using? There was a bug with 5.0.14-ish where the incorrect lines were mapped. There is a workaround in the bugs forum for this, or you can just upgrade the version of Tomcat 5 to a newer version where the bug is fixed.

    If you are not doing EJB development, and can run your webapp in a simple servlet container (Tomcat) by itself, I would try downloading the newest Tomcat from Apache, setting it up, and deploy your app and see if debugging works. If it DOES work, then you know something funky is going on with the JBoss install. If that doesn’t work either, that we can keep troubleshooting issues like JDK version, MyEclipse version, etc.

    #219581

    I’m also experiencing the same problem. I’m using Eclipse version 3.0,Tomcat version 5.0.28 and JDK j2sdk1.4.2_04. Stepping through the JSP code is pretty much meaningless in my code. It steps through comments and blank lines. Also the variables are not showing up in my variable window and I’m not able to inspect or add a variable to watch. Please help me out on this. Let me know what I can do to make it right.

    Thanks,

    Adrian

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: JSP Debugging: Line mattching between JSP and servlet is off

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