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

Billy Bacon <[email protected]> Sat, 14 May 2005 17:45:33 -0600
Newsgroups gmane.comp.java.jswat.user
Message-ID <[email protected]>
Grant,
 How are you compiling the code that you are trying to debug? Are you using 
Ant? You will need to compile it with the 'debug' flag equal to 'on' or 
'true'. If you are using Ant the <javac> task has a 'debug' attribute which 
you can set to 'on'. Compiling with this flag will add line numbers to the 
java classes which will allow you to set break-points in jSwat on your 
classes.
 I hope this helps.
 - Billy -
 On 5/14/05, Nathan Fiedler <[email protected]> wrote: 
> 
> Grant: you need to subscribe to send messages to the mailing list.
> 
> n
> 
> -------- Original Message --------
> Subject: Auto-discard notification
> Date: Fri, 13 May 2005 17:33:14 -0700
> From: [email protected]
> To: [email protected]
> 
> The attached message has been automatically discarded.
> 
> 
> 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
> 
> 
> _______________________________________________
> jswat-user mailing list
> [email protected]
> http://www.bluemarsh.com/mailman/listinfo/jswat-user
> 
> 
>

_______________________________________________
jswat-user mailing list
[email protected]
http://www.bluemarsh.com/mailman/listinfo/jswat-user