Re: cannot find the Default Source Stratum preference
Eric Roberts <[email protected]> Tue, 12 Sep 2006 13:06:04 -0500
| Newsgroups | gmane.comp.java.jswat.user |
|---|---|
| Organization | TACC |
| Message-ID | <[email protected]> |
Nathan I think going through the example with the jsp-examples webapps helped. I realized I had the wrong source path. It ended up needing to be /home/ericrobe/opt/tomcat/5.5.15/webapps/gpir-browser-2/ for the jsp's. thanks for your help Eric Nathan Fiedler wrote: > Just as a check to make sure everything is set up appropriately, can > you try debugging one of the JSP examples in Tomcat? The instructions > online describe how to do this: > > http://www.bluemarsh.com/java/jswat/docs/howto-jsp.html > > If that is working, then try using the 'lines' command to see if which > lines of the generated servlet class have executable lines. It should > return line numbers in relation to the JSP source. Try setting a > breakpoint on one of those lines and reloading the page. > > BTW, I am not an expert on Tomcat, but you may want to try setting the > source path like this: > > /home/ericrobe/sandbox/tg-portal/portlets/gpir-browser-2/src/java > /home/ericrobe/opt/tomcat/5.5.15/webapps/gpir-browser-2/jsp > /home/ericrobe/opt/tomcat/5.5.15/work/Catalina/localhost/gpir-browser-2 > > And be sure you are starting Tomcat in debug mode, probably with a > command like "./bin/catalina.sh jpda start". > > n > > > Eric Roberts wrote: >> OK. I had actually found the Options dialogue already but couldn't find >> the Stratum preference there. Good to know it does the right thing >> automatically. If you would like I can provide some documentation >> updates for this. >> >> That brings me to the actual problem that I'm having. I am trying to >> debug a JSP running in Tomcat 5.5.15 but the breakpoints I set in the >> source don't seem to be working. Here are the source path settings that >> I've tried (note: I currently have all of these set right now) >> >> /home/ericrobe/sandbox/tg-portal/portlets/gpir-browser-2/src/java/edu/tacc/gridport/gpir >> >> /home/ericrobe/opt/tomcat/5.5.15/webapps/gpir-browser-2/jsp >> /home/ericrobe/opt/tomcat/5.5.15/work/Catalina/localhost/gpir-browser-2/org/apache/jsp/jsp >> >> >> When I ran the 'source' command on >> org.apache.jsp.jsp.default_002dview_jsp I get the following source path >> output: >> >> Source paths: jsp/default-view.jsp >> >> When I double click on the default_002dview_jsp in the Classes view the >> jsp source pops up in an editor window so I know one of these is >> right. I just can't figure out why the breakpoint is not taking effect. >> >> Eric > -- Eric Roberts Distributed and Grid Computing Texas Advanced Computing Center (512) 471-6785 (office) [email protected]