Advertisement

02.28.2008 at 11:15AM PST, ID: 23201498
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Tomcat Eclipse Debugging problem

Tags: apache, eclipse, tomcat, Europa, 6, 3.3, Java, JSP, SQL, n/a, n/a
Hi,

I have Eclipse 3.3 set up with Tomcat 6 & Java EE 5 sdk for developing web apps.  I have a rather large web project I have imported into Eclipse and it runs just fine on the localhost tomcat server.  The problem I am having is when I try to use the debugger.

I put a breakpoint in one of my JSP files.

I right clicked on the server and selected Debug as/Debug on server

This starts it in debug mode, but I have to manually switch over to the Debug perspective since it doesn't do that for me.

If I open the built in browser in eclipse, I am able to use the web interface, log into my application, navigate around, reach my jsp page with the breakpoint.  

The jsp page with the breakpoint begins to load and then at the appropriate point the code file for the jsp page opens at the breakpoint.  

My problem comes when I use "step over" to finish moving through the rest of the page.  Once I reach the end of the page, I expected the web page to appear, displaying all of the code I'd stepped through in the JSP page.  Instead I am given the error message below in a file called HttpJspBase.class  that pops up.

Maybe I didn't understand how the debugger was supposed to work with web apps, but I thought I could continue navigating through the program to track veriables throughout.  Is this just supposed to happen this way, or is something set up wrong?

Thanks,
Courtenay

PS.  I tried attaching the jasper.jat file I found in my tomcat lib directory, but that didn't make a difference, I just got other errors like this, but looking for other files.  Again, the app works fine outside of debugger mode, so maybe it's just the way it's supposed to react - seems weird though!

Error message:

Class File Editor
Source not found
The jar file jasper.jar has no source attachment
You can attach the source by clicking attach below:
(Button to click & Attach)

// Compiled from HttpJspBase.java (version 1.5 : 49.0, super bit)
public abstract class org.apache.jasper.runtime.HttpJspBase extends javax.servlet.http.HttpServlet implements javax.servlet.jsp.HttpJspPage {
 
  // Method descriptor #14 ()V
  // Stack: 1, Locals: 1
  protected HttpJspBase();
    0  aload_0 [this]
    1  invokespecial javax.servlet.http.HttpServlet() [1]
    4  return
      Line numbers:
        [pc: 0, line: 44]
        [pc: 4, line: 45]
      Local variable table:
        [pc: 0, pc: 5] local: this index: 0 type: org.apache.jasper.runtime.HttpJspBase
 
  // Method descriptor #21 (Ljavax/servlet/ServletConfig;)V
  // Stack: 2, Locals: 2
  public final void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException;
     0  aload_0 [this]
     1  aload_1 [config]
     2  invokespecial javax.servlet.http.HttpServlet.init(javax.servlet.ServletConfig) : void [2]
     5  aload_0 [this]
     6  invokevirtual org.apache.jasper.runtime.HttpJspBase.jspInit() : void [3]
     9  aload_0 [this]
    10  invokevirtual org.apache.jasper.runtime.HttpJspBase._jspInit() : void [4]
    13  return
      Line numbers:
        [pc: 0, line: 50]
        [pc: 5, line: 51]
        [pc: 9, line: 52]
        [pc: 13, line: 53]
      Local variable table:
        [pc: 0, pc: 14] local: this index: 0 type: org.apache.jasper.runtime.HttpJspBase
        [pc: 0, pc: 14] local: config index: 1 type: javax.servlet.ServletConfig
 
  // Method descriptor #27 ()Ljava/lang/String;
  // Stack: 1, Locals: 1
  public java.lang.String getServletInfo();
    0  ldc <String "jsp.engine.info"> [5]
    2  invokestatic org.apache.jasper.compiler.Localizer.getMessage(java.lang.String) : java.lang.String [6]
    5  areturn
      Line numbers:
        [pc: 0, line: 56]
      Local variable table:
        [pc: 0, pc: 6] local: this index: 0 type: org.apache.jasper.runtime.HttpJspBase
 
  // Method descriptor #14 ()V
  // Stack: 1, Locals: 1
  public final void destroy();
    0  aload_0 [this]
    1  invokevirtual org.apache.jasper.runtime.HttpJspBase.jspDestroy() : void [7]
    4  aload_0 [this]
    5  invokevirtual org.apache.jasper.runtime.HttpJspBase._jspDestroy() : void [8]
    8  return
      Line numbers:
        [pc: 0, line: 60]
        [pc: 4, line: 61]
        [pc: 8, line: 62]
      Local variable table:
        [pc: 0, pc: 9] local: this index: 0 type: org.apache.jasper.runtime.HttpJspBase
 
  // Method descriptor #30 (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V
  // Stack: 3, Locals: 3
  public final void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException;
    0  aload_0 [this]
    1  aload_1 [request]
    2  aload_2 [response]
    3  invokevirtual org.apache.jasper.runtime.HttpJspBase._jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) : void [9]
    6  return
      Line numbers:
        [pc: 0, line: 70]
        [pc: 6, line: 71]
      Local variable table:
        [pc: 0, pc: 7] local: this index: 0 type: org.apache.jasper.runtime.HttpJspBase
        [pc: 0, pc: 7] local: request index: 1 type: javax.servlet.http.HttpServletRequest
        [pc: 0, pc: 7] local: response index: 2 type: javax.servlet.http.HttpServletResponse
 
  // Method descriptor #14 ()V
  // Stack: 0, Locals: 1
  public void jspInit();
    0  return
      Line numbers:
        [pc: 0, line: 74]
      Local variable table:
        [pc: 0, pc: 1] local: this index: 0 type: org.apache.jasper.runtime.HttpJspBase
 
  // Method descriptor #14 ()V
  // Stack: 0, Locals: 1
  public void _jspInit();
    0  return
      Line numbers:
        [pc: 0, line: 77]
      Local variable table:
        [pc: 0, pc: 1] local: this index: 0 type: org.apache.jasper.runtime.HttpJspBase
 
  // Method descriptor #14 ()V
  // Stack: 0, Locals: 1
  public void jspDestroy();
    0  return
      Line numbers:
        [pc: 0, line: 80]
      Local variable table:
        [pc: 0, pc: 1] local: this index: 0 type: org.apache.jasper.runtime.HttpJspBase
 
  // Method descriptor #14 ()V
  // Stack: 0, Locals: 1
  protected void _jspDestroy();
    0  return
      Line numbers:
        [pc: 0, line: 83]
      Local variable table:
        [pc: 0, pc: 1] local: this index: 0 type: org.apache.jasper.runtime.HttpJspBase
 
  // Method descriptor #30 (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V
  public abstract void _jspService(javax.servlet.http.HttpServletRequest arg0, javax.servlet.http.HttpServletResponse arg1) throws javax.servlet.ServletException, java.io.IOException;
}

Start your free trial to view this solution
Question Stats
Zone: Programming
Question Asked By: courtenayt
Solution Provided By: courtenayt
Participating Experts: 1
Solution Grade: A
Views: 158
Translate:
Loading Advertisement...
02.28.2008 at 02:18PM PST, ID: 21008812

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.28.2008 at 02:47PM PST, ID: 21009046

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.28.2008 at 03:01PM PST, ID: 21009144

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.29.2008 at 08:54AM PST, ID: 21015066

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080236-EE-VQP-29 / EE_QW_2_20070628