Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Debugging -- Source Code Soup
Debugging -- Source Code Soup [message #65564] Tue, 17 May 2005 21:42
Eclipse UserFriend
Originally posted by: rbronson1976.yahoo.com

Hi all,

I'm working on a web project that uses Tomcat. I want to be able to
trace into the Tomcat source code and, for the most part, I can, but
I'm seeing something very weird and inconsistent.

I have set up a "User Library" called "Tomcat" which contains the
necessary Tomcat JAR files. I also associate the Tomcat source code ZIP
file with the JAR files.

I am able to set working breakpoints in my code *and* in the Tomcat
code. The breakpoints work and I'm able to trace through the source
code (mine and Tomcat's).

Now here's where it gets weird.

Let's say I have this line of code in a class that *I* wrote:

ServletResponse r = null;

If I right-click on "ServletResponse" and select "Open Declaration"
from the menu, I am taken to the source code for the ServletResponse
class. That's perfect, just what I want.

Now, as I'm debugging, eventually I trace into a method with this
signature:

include(ServletRequest request, ServletResponse response)

This method is in org.apache.catalina.core.ApplicationDispatcher. If I
right-click on "ServletResponse" in the method signature and I select
"Open Declaration" from the menu, I would *expect* to be taken to the
source code for ServletResponse. Instead, I get a message on the
Eclipse status bar that reads, "Current text selection does not resolve
to a Java element".

Why am I not taken to the source code for ServletResponse? It works
just fine when the reference to ServletResponse was within *my* code.

Would anyone have an explanation for this?
Previous Topic:Restrictions on core runtime library 3.1M7
Next Topic:Dependency issue
Goto Forum:
  


Current Time: Tue Nov 12 19:42:41 GMT 2024

Powered by FUDForum. Page generated in 1.04395 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top