Re: Problems with "No code in that line at the class" on JSP/Tomcat/XP

Nathan Fiedler <[email protected]> Sat, 14 May 2005 16:29:39 -0700
Newsgroups gmane.comp.java.jswat.user
Organization Blue Marsh Softworks
Message-ID <[email protected]>
Hello Grant,

Have you seen the brief tips on the following page?

    http://www.bluemarsh.com/java/jswat/docs/howto-jsp.html

However, I don't see anything on that page that will help with the "no 
code" error message. That generally means the .class file is missing the 
line number table. This is generated by javac when the debug flag (-g) 
is included. I'm not very familiar with Tomcat, but is there a setting 
to control whether the JSP's generated servlet code is compiled with the 
debug flags?

n


Grant Olson wrote:
> Hello,
> 
> I've been having a heck of a time getting J2EE running on my windows
> development box.  Various documentation seems to be heavily *nix biased.
> I'm getting things up and running but am having problems getting JSwat to
> set breakpoints on my JSP pages.  The whole "everything must belong to a
> workspace and package" aspect of eclipse really bothers me and I'd like to
> use JSwat for development instead.
> 
> A couple of notes:
>   + I do have Tomcat 5.0.30 running successfully with a remote debuggee
>   + I am able to attach with JSwat
>   + I appear to have the SOURCEPATH set correctly; 
>      when I click on my custom jsp class/methods in 
>      the classes window it finds the right generated
>      source code. In TOMCAT_HOME/work/Catalina/...
>   + Basic debugging is working.
>      - I can trace methods
>      - I can set class breakpoints
> 
> However, when I try to set a breakpoint in the source, I get a "No code in
> that line at the class" error.  I'm thinking it's a classpath error.  By
> default, the Tomcat CLASSPATH only points to TOMCAT_HOME\bin\bootstrap.jar.
> I've tried adding every folder between c:\ and
> c:\tomcat5.0\work\catalina\localhost\project\org\apache\jsp to my classpath
> and none of them do anything.
> 
> If anyone has any tips it would be appreciated,
> 
> Grant