- This topic has 3 replies, 2 voices, and was last updated 19 years, 1 month ago by
Riyad Kalla.
-
AuthorPosts
-
dv8ingdanMemberI 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_07eclipse
C:\Documents and Settings\dan\..\eclipse-SDK-3.1.2-win32\eclipsemyeclipse
C:\Program Files\MyEclipsetomcat root directory
C:\tools\Tomcat5.5.9I 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).
June 6, 2006 at 12:39 pm #253155
Riyad KallaMemberDoes 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?
June 6, 2006 at 3:00 pm #253182
dv8ingdanMemberThat 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
June 6, 2006 at 4:17 pm #253183
Riyad KallaMemberDan 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).
-
AuthorPosts