facebook

JSP debugging not working correctly anymore…

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

    etornick
    Member

    Hi:

    A really strange thing has happened. My setup was working perfectly (thanks to your help)…. I was stepping thru my jsps, into servlets, through my beans and everything was great.

    Then I refactored some of my jsps and rebuilt the project….. and the debugger with jsps is all out of sync…

    For some reason a old breakpoint in the jsp (I’m down to one jsp now) is the only one that is being hit visually. In other words, even though the debug view does stop at my new breakpoints the source jsp view just sits there with one line highlighted. It doesnt visually step through the jsp anymore.

    Here is what I have tried so far.

    Undeploying and redeploying to the server.
    Shut down and restart Myeclipse.
    Remove all breakpoints then add them again.

    Nothing makes a difference.

    Any ideas would be appreciated.

    thankx
    Ed

    #203052 Reply

    etornick
    Member

    Operating System and version: Windows 2000 service pack 4
    Eclipse version: 2.1.2
    Eclipse build id: 200311030802
    MyEclipse version: 2.6.200
    Build id: 200312091200-2.7-RC1
    Eclipse JDK version: not sure
    Application Server JDK version: j2sdk1.4.1_02
    Tomcat 5.0.18

    #203053 Reply

    Riyad Kalla
    Member

    Ed,
    This does sound strange and it sounds like you did some good preliminary steps to try and fix it. Lets try some more things first:

    1) Remove deployment (like you did) and stop Tomcat. Now go into the <Tomcat>\work\Standalone\localhost directory and delete your webapp’s dir from here.
    1.5) Go into the <tomcat>\webapps dir and MAKE SURE that you don’t accidentally have your deployed project in there. Either an old directory (exploded) or an old war (packaged). If you do, erase them.
    2) Close your project, Close MyEclipse too then reboot machine (hey, I”m depserate here 😉
    3) Start ME after the reboot, open your project again, refresh it from the root just to make sure and “Rebuild Project”
    4) Setup deployment again and redeploy (either as WAR or exploded)
    5) Start Tomcat

    Did it work? If it didn’t I’ll send this request on up a level and see what the gurus have to say.

    #203056 Reply

    etornick
    Member

    Riyad:

    I did every step as you suggested. Same exact symptoms. I don’t quite know what to do now.

    Let me know if you need anything else from me.

    Meanwhile I will keep trying different things to try to get this working again. Maybe I will download the latest eclipse version… (I don’t know what just yet)

    Ed

    #203057 Reply

    etornick
    Member

    ignore the (I don’t know what just yet).

    #203058 Reply

    Riyad Kalla
    Member

    Ed,
    This is very strange indeed! I will pass this along and see what Scott/Michael think it might be.

    In the meantime I would suggest you stay with latest stable Eclipse (2.1.2) and latest stable ME (2.7RC2). Trouble shooting problems under a beta release of an IDE becomes troublesome because you don’t know who to blame.

    #203061 Reply

    etornick
    Member

    Riyad:

    I have some more info which may be relevant.

    The debugger is working correctly with the jsp at the beginning and end of my program,

    It is not working correctly within a section of my code that is heavily using a tag library.

    I am using the nested tag library of struts and when I set breakpoints in the middle of this code that is using tags it always appears to stop and highlight at the first opening tag of the tag library extensions.

    The breaks do actually occur at the lines I set the breakpoint (the debug perspective shows the correct thread and line number) but the highlighted line just stays fixed at the opening tag at the top of this section

    Thanks,
    Ed
    [/code]

    #203062 Reply

    Riyad Kalla
    Member

    Ed, thank you for the additional info, I hope it will help us figure this out faster.

    Is it possible to paste the code snippet that is causing the problem?

    #203063 Reply

    etornick
    Member

    This was written by Arron bates, the author of the nested tag library. It was working at one time… It will step correctly up to the opening <nested:form action=”/monkey-action.do”>
    Any breakpoints after that and before the closing </nested:form>
    are not visually stepped into anymore.

    I hope this helps.. if you need anything else like a war file with the whole project let me know..

    Thanks

    
    <%@page contentType="text/html"%>
    <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %>
    <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>
    <%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %>
    <%
    String _teamPerimiter  = "#503521";
    String _teamBorder = "#9D8574";
    String _teamCell = "#C3A58E";
    
    String _monkeyPerimiter = "#1B551B";
    String _monkeyBorder = "#52AD52";
    String _monkeyCell = "#79C579";
    
    String _bunchPerimiter = "#FF7200";
    String _bunchBorder = "#FFAA00";
    String _bunchCell = "#FFD800";
    
    String _bananaPerimiter = "#FFA200";
    String _bananaBorder = "#FFE9B4";
    String _bananaCell = "#FFF8BC";
    %>
    <html>
    <head>
      <link rel="stylesheet" type="text/css" href="<%= application.getInitParameter("monkeyCss")%>/monkey.css">
      <title>Bananas Inc.__  The Nested Properties Example</title>
    </head>
    <body bgcolor="#FFF5F5">
    
    <font size=5 color="#301501" face="Arial"><b>Bananas Inc.  </b><font size=2 face="Arial" color="#301501"><b>(AKA: Nested property example)</b></font></font><br>
    <br>
    
    <nested:form action="/monkey-action.do">
    
    <table cellpadding="0" cellspacing="0" border="0" width="96%" align="center"><tr><td>
    
      <div align="left"><html:submit styleClass="mainButton">CLICK TO SUBMIT FORM</html:submit><br></div>
      <br>
      <%-- TEAM block start adc --%>   
      <nested:nest property="monkeyTeamAlpha">
        <table cellpadding=1 cellspacing=0 border=0 width="100%" align="center"><tr><td bgcolor="<%= _teamPerimiter%>">
        <table cellpadding=4 cellspacing=3 border=0 width="100%" bgcolor="<%= _teamBorder%>">
          <tr>
            <td nowrap bgcolor="<%= _teamCell%>">
              <font class="teamTitle">
              <nested:write property="teamName" /></font>
            </td>
            <td nowrap bgcolor="<%= _teamCell%>" align="right">
              Team Count:
            </td>
            <td nowrap bgcolor="<%= _teamCell%>">
              <nested:write property="teamCount" />
            </td>
            <td nowrap bgcolor="<%= _teamCell%>" align="right">
              Work Field:
            </td>
            <td nowrap bgcolor="<%= _teamCell%>">
              <nested:write property="fieldName" />
            </td>
          </tr>
          <tr>
            <td width=100% bgcolor="<%= _teamCell%>" colspan="5">
      <%-- MONKEY loop start --%>
              <nested:iterate property="monkeyWorkers">
                <table cellpadding=1 cellspacing=0 border=0 width="100%"><tr><td bgcolor="<%= _monkeyPerimiter%>">
                <table cellpadding=4 cellspacing=2 border=0 width=100% bgcolor="<%= _monkeyBorder%>">
                  <tr>
                    <td bgcolor="<%= _monkeyCell%>">
                      <font class="monkeyTitle">
                      <nested:write property="name" /></font>
                    </td>
                    <td bgcolor="<%= _monkeyCell%>" align="right">
                      Age:
                    </td>
                    <td bgcolor="<%= _monkeyCell%>">
                      <nested:text property="age" />
                    </td>
                    <td bgcolor="<%= _monkeyCell%>" align="right">
                      Salary:
                    </td>
                    <td bgcolor="<%= _monkeyCell%>">
                      <nested:text property="salary" />
                    </td>
                  </tr>
                  <tr>
                    <%--<td bgcolor="<%= _monkeyCell%>">  </td>--%>
                    <td width=100% bgcolor="<%= _monkeyCell%>" colspan="5">
                      <nested:nest property="productivity">
      <%-- BUNCH loop start --%>
                          <nested:iterate property="pickedBunches">
                            <table cellpadding=1 cellspacing=0 border=0 width="100%"><tr><td bgcolor="<%= _bunchPerimiter%>">
                            <table cellpadding=3 cellspacing=2 border=0 width=100% bgcolor="<%= _bunchBorder%>">
                              <tr>
                                <td bgcolor="<%= _bunchCell%>" nowrap colspan=2 valign="top" align="center">
                                  <font class="bananaTitle">
                                  B<br>U<br>N<br>C<br>H<br><br>of<br><br>
                                  <nested:write property="bananaCount" /><br></font>
                                </td>
                                <td bgcolor="<%= _bunchCell%>" width=100%>
                                  <div align="right">
                                  <table cellpadding=1 cellspacing=0 border=0><tr><td bgcolor="#FF7200">
                                    <nested:submit property="addBananaButton" styleClass="bunchButton">NEW BANANA</nested:submit>
                                  </td></tr></table></div>
                                  <br>
      <%-- BANANA Loop start --%>
                                  <nested:iterate property="bananaList">
                                  <table cellpadding=1 cellspacing=0 border=0 width="100%"><tr><td bgcolor="<%= _bananaPerimiter%>">
                                  <table cellpadding=2 cellspacing=2 border=0 width=100% bgcolor="<%= _bananaBorder%>">
                                    <tr>
                                      <td bgcolor="<%= _bananaCell%>" rowspan="2" valign="top">
                                        <font class="bananaTitle">B<br>A<br>N<br>A<br>N<br>A<br></font>
                                      </td>
                                      <td bgcolor="<%= _bananaCell%>" align="right">
                                        <font class="bananaFieldTitle">Colour:</font>
                                      </td>
                                      <td bgcolor="<%= _bananaCell%>">
                                        <nested:text property="colour" styleClass="bananaInput"/>
                                      </td>
                                      
                                      <td bgcolor="<%= _bananaCell%>" align="right">
                                        <font class="bananaFieldTitle">Size:</font>
                                      </td>
                                      <td bgcolor="<%= _bananaCell%>">
                                        <nested:select property="size" styleClass="bananaInput">
                                          <nested:options property="../sizeList"/>
                                        </nested:select>
                                      </td>
                                      
                                      <td bgcolor="<%= _bananaCell%>" align="right">
                                        <font class="bananaFieldTitle">Flavour:</font>
                                      </td>
                                      <td bgcolor="<%= _bananaCell%>">
                                        <nested:text property="flavour"  styleClass="bananaInput"/>
                                      </td>
                                      
                                      <td bgcolor="<%= _bananaCell%>" align="right">
                                        <font class="bananaFieldTitle">Edible:</font>
                                      </td>
                                      <td bgcolor="<%= _bananaCell%>" nowrap>
                                        <font color="#755800">Yes</font><nested:radio property="edible" value="yes" styleClass="bananaInput"/>     
                                        <font color="#755800">No</font><nested:radio property="edible" value="no" styleClass="bananaInput"/></b>
                                      </td>
                                    </tr>
                                    <tr>
                                      <td bgcolor="<%= _bananaCell%>" valign="top" align="right">
                                        <font class="bananaFieldTitle">Description:</font>
                                      </td>
                                      <td bgcolor="<%= _bananaCell%>" align="left" valign="top" colspan="4">
                                        <nested:textarea property="description" cols="40" rows="3"/>
                                      </td>
                                      <td bgcolor="<%= _bananaCell%>" valign="bottom" align="right" colspan="3">
                                        <nested:submit property="deleteButton" styleClass="bananaButton">DELETE THIS BANANA</nested:submit>
                                      </td>
                                    </tr>
                                  </table></td></tr></table><br>
                                  </nested:iterate>
      <%-- end BANANA loop --%>
                                </td>
                              </tr>
                            </table></td></tr></table><br>
                          </nested:iterate>
      <%-- end BUNCH loop --%>
                      </nested:nest>
                    </td>
                  </tr>
                </table></td></tr></table><br>
              </nested:iterate>
      <%-- end MONKEY loop --%>
            </td>
          </tr>
        </table></td></tr></table>
      </nested:nest>
      <%-- end TEAM block --%>
      <br>
      <div align="right"><html:submit styleClass="mainButton">CLICK TO SUBMIT FORM</html:submit></div>
      
    </td></tr></table>
    <br>
    
    
    </nested:form>
    <font face="Arial" size=2" color="#503521">
      Developed by Arron Bates<br>
      <table cellpadding=2 cellspacing=0 border=0>
      <tr><td><</td><td align="center"><a href="mailto:arron@keyboardmonkey.com"
            style="text-decoration: none; color: #52AD52; font-weight: normal; font-size: 9pt;
            ">arron @ keyboardmonkey.com</a></td><td>></td></tr>
      </table>
            
    </font>
    </body>
    </html>
    
    
    #203065 Reply

    etornick
    Member

    Riyad:

    There are more files that need to support the code i sent you, like the beans…
    Is what I gave you enough? Do you need the whole project?

    Ed

    #203067 Reply

    Riyad Kalla
    Member

    Ed,
    If you can send the entire project that would be the ideal solution. Can you zip it up and send it to support@genuitec.com with a description of the problem and a reference (link) to this thread so Scott/Michael don’t wonder out of the clear blue where this email came from.

    #203068 Reply

    etornick
    Member

    I will send it now.

    Thanks for the help,
    Ed

    #203078 Reply

    Scott Anderson
    Participant

    Ed,

    Thank you for sending your project. I’ve opened a bug report so that this issue can be researched and attached your project for the development team.

Viewing 13 posts - 1 through 13 (of 13 total)
Reply To: JSP debugging not working correctly anymore…

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