Classpath problem
"Burgess, Jay S" <[email protected]> Fri, 28 Apr 2006 15:42:32 -0400
| Newsgroups | gmane.comp.java.jswat.user |
|---|---|
| Message-ID | <[email protected]> |
I've read the FAQ, searched the list archives, etc., but still can't resolve the following issue: I'm running a servlet in Tomcat 5.0.19 (on Windows XP) and seem to be able to connect and debug using JSwat 3.10. However, there is one minor problem, that I think is associated with the classpath. I first start Tomcat. I then bring up JSwat and set my classpath and sourcepath in the Session Settings dialog. Everything seems to resolve correctly, and I can see and open all of my source files from the Sources tab. However, sometimes after I "Attach" to Tomcat, I get hundreds of "cannot find symbol" errors in my source with wavy red lines below. Oddly enough, I can still set breakpoints and step through the source, and it only seems to happen some of the time (though I can force it to happen by running "Fix Imports" at this point). I noticed specifically that the settings in the Classes tab change before and after I Attach. Before, my correct .jars were present. After, only tools.jar and bootstrap.jar were listed. I believe this is fundamentally the root of the issue. So, is there a way to force my original classpath setting to stay fixed after Attach'ing? Or is there some other solution that will allow me to debug given my configuration? I also tried launching Tomcat from JSwat, thinking that this would force it to hold onto the classpath I defined, but never could get the config details right. (For reference, I currently call "catalina.bat jpda start" after setting the necessary envvars.) Thanks. Jay