Results 1 to 2 of 2
Thread: Jsp source not found
- 01-15-2010, 06:35 AM #1Member
- Join Date
- Dec 2009
- Rep Power
Jsp source not found
I am using Eclipse 3.5 and the Tomcat 6 and Weblogic 11g.
I download the Oracle Eclipse Plugin "//download.oracle.com/otn_software/oepe/galileo". When I debug the jsp with ecliipse and Tomcat 6, it gives me the error "Source not found". It cannot find the jsp but it gives me the line number it is on in the jsp. Also in debug mode, under Variables tab, it shows the list of variables and their value. I started Tomcat6 within Eclipse.
I have the same problem with Eclipse 3.5 and Weblogic 11g. I started Weblogic 11g within Eclipse.
Any hint or help would be greatly appreciated it.
- 01-17-2010, 01:35 AM #2
the eclipse debugger works with java source code. for your code in your project, it knows where this is, it's your java sources. for third party libraries, such as .jar files that provide additional API used by the [web] application, eclipse project can be configured to know where to look for the sources that correspond to each .jar file.
Now for JSP pages, they start off as a .JSP, and the JSP servlet transforms them into a .java while, and then compiles that into a .class path, which then exists in the web application's class path. So it is possible that eclipse doesn't know where to look for the generated java sources from the JSP files.
I have never tried to do the debug of JSP in tomcat in eclipse like this, but I am guessing there should be a temp folder or a work folder some place within the tomcat instance in eclipse, try to find the top level of the packages, usually a JSP compiles into the package org.apache.jasper....,and then add that work folder of .java files as a source folder to the project. ?
- By conor147 in forum New To JavaReplies: 0Last Post: 01-15-2010, 05:14 AM
- By m3anman in forum EclipseReplies: 0Last Post: 01-29-2009, 10:43 AM
- By jirkacelak in forum Java SoftwareReplies: 1Last Post: 11-28-2008, 06:27 PM
- By rafamd11 in forum New To JavaReplies: 0Last Post: 11-22-2008, 01:49 AM
- By ppayal in forum EclipseReplies: 0Last Post: 11-25-2007, 06:19 PM