I have had VERY limited success with running Tomcat in collaboration with
WDSC.  With that said I would create a simple servlet to remove all the
other things that might be causing the breakpoint to not be hit.  Below is a
HelloMom servlet that you can use.  HelloWorld is so over used ;-)
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class HelloMom extends HttpServlet {
    public HelloMom() {
        super();
    }
    public void destroy() {
        super.destroy(); 
    }
    public void doGet(HttpServletRequest request, HttpServletResponse
response)
            throws ServletException, IOException {
        doPost(request, response);
    }
    public void doPost(HttpServletRequest request, HttpServletResponse
response)
            throws ServletException, IOException {
        response.setContentType("text/html");
        PrintWriter out = response.getWriter();
        out.println("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01
Transitional//EN\">");
        out.println("<HTML>");
        out.println("  <HEAD><TITLE>Hi Mom!</TITLE></HEAD>");
        out.println("  <BODY>");
        out.print("    You gave birth to me.  <br/><br/>I know because I was
there. ");
        out.println("  </BODY>");
        out.println("</HTML>");
        out.flush();
        out.close();
    }
    public void init() throws ServletException {
    }
}
HTH,
Aaron Bartell
http://mowyourlawn.com
-----Original Message-----
From: wdsci-l-bounces@xxxxxxxxxxxx [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On
Behalf Of David Gibbs
Sent: Friday, December 28, 2007 9:55 AM
To: Websphere Development Studio Client for iSeries
Subject: [WDSCI-L] Debug JSP running in Tomcat with WDSC 7?
Folks:
Maybe this is a dumb question ... but is it possible to debug a JSP,
running in a Tomcat server, in WDSC 7?
I've started my Tomcat 4 server in debug mode (within WDSC) and selected
launched my JSP with "Debug on server" ... but the breakpoint I set
never gets hit.
One thing to note ... the JSP I launch to debug is not the one I
actually want to debug ... the JSP I launch (a login page) redirects to
a servlet, which redirects to another servlet, which redirects to the
JSP page I want to debug.
Any suggestions?
Thanks!
david
As an Amazon Associate we earn from qualifying purchases.