Re: Debugging Java class generated from JSP
David Ezzio <[email protected]> Fri, 17 Sep 2004 10:45:38 -0400
| Newsgroups | gmane.comp.java.jswat.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Nathan,
JSwat breaks on the location okay, but the window with the source is not
synchronized with the break, and the source window synchronized with the
break is the "source could not be found" window.
Here is the complete set of source paths:
C:\JDOCourse\labs\tools
C:\apps\java\jakarta-tomcat-5.0.19\work\Catalina\localhost\rental
C:\apps\java\jakarta-tomcat-5.0.19\src\jakarta-servletapi-5\jsr154\src\share
C:\apps\java\jakarta-tomcat-5.0.19\src\jakarta-tomcat-catalina\catalina\src\share
C:\java\Tapestry-3.0\framework\src
C:\java\Tapestry-3.0\contrib\src
C:\java\JDK142\src.zip
C:\java\JPox1B3\src\src\java
C:\java\JDO1.0.1\src
The Tapestry source paths are leftovers from another use of JSwat.
Here is a directory listing showing the files at the location:
Directory of
C:\apps\java\jakarta-tomcat-5.0.19\work\Catalina\localhost\rental\org\apache\jsp
09/16/2004 09:11 PM <DIR> .
09/16/2004 09:11 PM <DIR> ..
09/16/2004 09:11 PM 4,084 concurrency_005fexception_jsp.class
09/16/2004 09:11 PM 3,285 concurrency_005fexception_jsp.java
09/16/2004 09:16 AM 7,285 lighthouse_jsp.class
09/16/2004 09:16 AM 6,858 lighthouse_jsp.java
09/16/2004 09:05 PM 20,584 maine_jsp.class
09/16/2004 09:05 PM 35,016 maine_jsp.java
09/16/2004 09:22 AM 6,137 SessionLock_jsp.class
09/16/2004 09:22 AM 5,338 SessionLock_jsp.java
8 File(s) 88,587 bytes
2 Dir(s) 15,336,022,016 bytes free
Does this help?
David
Nathan Fiedler wrote:
> On Thu, 2004-09-16 at 13:05, David Ezzio wrote:
>
>>Hi,
>>
>>I am trying to debug the generated class from a JSP page.
>>
>>I have put the root source directory in the source path.
>
>
> What _is_ the root source directory? I need to know that in order to
> confirm that it is indeed set correctly.
>
>
>>I have opened the generated file (maine_jsp.java) at org/apache/jsp
>>within this sourcepath. I have placed a breakpoint on the first line in
>>the _jspservice method.
>>
>>JSwat breaks on the line just fine, but then puts up another source
>>window saying that it could not find the source. "The source for the
>>class org.apache.jsp.maine_jsp could not be found." The original jsp
>>file is named "maine.jsp" .
>
>
> The original file name is not important. What's important is the path to
> the 'org' directory. If that is not in the sourcepath, then JSwat will
> not find the maine_jsp.java file.
>
>
>>Curious artifact: The window that I opened says, "maine_jsp.java", but
>>the window that JSwat opens says "maine_jsp".
>
>
> The second window is a byte code viewer, but without the bytecode since
> no one is so enthusiastic as to implement the feature. In that case,
> there is no source file, hence the window is appropriately titled.
>
> Have you read the "Classpath, Sourcepath" help page?
>
> n
>
>
>