facebook

[Closed] Cannot debug index.jsp (can set breakpoints)

  1. MyEclipse Archived
  2.  > 
  3. Web 2.0 / AJAX
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #253127 Reply

    dv8ingdan
    Member

    I am relatively new to jsp and I purchased myeclipse in the hope that as in many other languages the debugging process would help me understand how it all fits together.

    My system is configured like this:

    java:
    C:\Program Files\Java\jdk1.5.0_07

    eclipse
    C:\Documents and Settings\dan\..\eclipse-SDK-3.1.2-win32\eclipse

    myeclipse
    C:\Program Files\MyEclipse

    tomcat root directory
    C:\tools\Tomcat5.5.9

    I am able to deploy the application to http://localhost:8080/wolverine/
    When i set a breakpoint in my index.jsp I do not stop at that breakpoint as expected

    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    
    <%@ taglib prefix="w" uri="http://www.***.com/facestaglib" %>
    <%@ taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
    
    <%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <title> **** </title>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
        <base href="<%=basePath%>" />
        <link rel="stylesheet" type="text/css" href="./css/forms.css" />
        <link rel="stylesheet" type="text/css" href="./css/framework.css" />
    </head>
    <body>
    <f:view>
        <div id="container">
            <c:import url="/_header.jsp" ></c:import>
            <div id="main">
                <div id="content">
                <h:form>
                    <div style="text-align: center; font-family: tahoma, verdana, sans-serif; font-weight: bold; font-size: 100%;">
                    <br class="all" />
    
                    <br class="all" />
                    <h:graphicImage id="cordesSplash" url="./images/splash.jpg"></h:graphicImage><br />
                    Test Server -*** & Service, Inc. ERP - Phase 1.3.7
                    <br class="all" />
                    </div>
                </h:form>
                </div><!-- end content -->
            </div><!-- end main -->
            <div id="footer">
                <!-- Footer text can go here if needed. -->
            </div><!-- end footer -->
        </div><!-- end container -->
    </f:view>
    </body>
    </html>
    

    I set breakpoints throughout the document. I have started over on this project a few times and have spent 8 hours so far trying to get this project to work through the debugger. Any help with what may be going wrong or where I should look would be appreciated.

    Another thing to note is that there is no javascript debugger option when I look through the debuggers.

    The project was originally checked out of CVS:

    In eclipse i create a new web project and i import the file structure from the above folder (Our cvs runs through SSL and I am not entirely sure how to get that to work in eclipse).

    #253155 Reply

    Riyad Kalla
    Member

    Does your app run fine once it’s deployed? Is your “web” folder your webroot folder that MyEclipse deploys from?

    Also if you navigate to your Tomcat settings: Window > Preferences > MyEclipse > Application Servers > Tomcat 5 > Launch, do you have it setup to launch in debug mode? Also you are running tomcat from MyEclipse and not as a windows service or externally correct?

    #253182 Reply

    dv8ingdan
    Member

    That worked. I was starting tomcat externally and should have only been starting it from within myeclipse.

    Sorry for wasting your time on such a rookie mistake.

    Dan

    #253183 Reply

    Riyad Kalla
    Member

    Dan no worries, it’s not a waste, that’s why we are here. Glad it’s working now.

    Also to answer your JavaScript debugging question, please see our doc here:
    http://www.myeclipseide.com/images/tutorials/quickstarts/javascript/

    The feature is only available in the trial and professional versions of MyEclipse (JS debugging).

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: [Closed] Cannot debug index.jsp (can set breakpoints)

You must be logged in to post in the forum log in