- This topic has 80 replies, 13 voices, and was last updated 17 years, 7 months ago by Loyal Water.
-
AuthorPosts
-
Heikki PakkalaParticipantWhen I hit a breakpoint in JSP file eclipse changes to debug perspective but shows “Source not found for xxx.jps line: n” instead of the source code. I can Step Over and the line number increaces but can’t see any source. I’m using Tomcat 5 as an application server and I’ve checked the connector config under Window – Preferences – MyEclipse – Application Servers – Tomcat 5. I’ve also tried -clean option, it didn’t help. Is there something else I should check?
*** Date: Thu Jul 13 11:48:41 EEST 2006
*** System properties:
OS=WindowsXP
OS version=5.1
Java version=1.5.0_07*** MyEclipse details:
MyEclipse Enterprise WorkbenchVersion: 5.0 Milestone 2
Build id: 20060703-5.0-M2*** Eclipse details:
Eclipse SDKVersion: 3.2.0
Build id: M20060629-1905Eclipse Graphical Editing Framework
Version: 3.2.0.v20060626
Build id: 20060627-0816Eclipse Platform
Version: 3.2.0.v20060609m-AgOexn6hlEUsvBO
Build id: M20060629-1905Eclipse RCP
Version: 3.2.0.v20060609m-SVDNgVrNoh-MeGG
Build id: M20060629-1905Eclipse Java Development Tools
Version: 3.2.0.v20060609m-F7snq1fxia-Z4XP
Build id: M20060629-1905Eclipse Plug-in Development Environment
Version: 3.2.0.v20060609m——6zXJJzJzJq
Build id: M20060629-1905Eclipse Project SDK
Version: 3.2.0.v20060609m-GNq6oQq-7es-Y81
Build id: M20060629-1905Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-launcher
C:\eclipse\eclipse.exe
-name
Eclipse
-showsplash
600
-exitdata
1500_790
-clean
-vm
C:\WINDOWS\system32\javaw.exe
Riyad KallaMemberTry shutting down your app server, removing the deployment then clean/rebuilding the project. Now restart using the -clean command line argument and recreat the deployment and see if that works.
jfidelMemberI follow your directions and still same problem. I’m working with myeclipse 5.0 GA and tomcat 5.0 with jvm 5.06. actually I click on the set source code button but even I select my folder with my jsp still same error
Riyad KallaMemberCan you provide me the layout of your project, either post a screenshot of it expanded, or use text to explain it. If you use indentation please use the code button below to maintain formatting.
arieschiangMemberThe is the screen shot! Please help!
[
[
[
[
arieschiangMemberDear support-rkalla,
I am send you the screen shot in PM. Please let me know if you have any question, Thanks
Riyad KallaMemberarieschiang,
The problem is that you are debugging a normal java project, MyEclipse needs the project to be a web project in order to resolve the locations of the JSP pages.
arieschiangMemberI re-create the web project and the same error still happens to me
Riyad KallaMemberarieschiang,
Out of curiosity if you create a new web project, and add a single JSP to the webroot directory then deploy it, can you debug it successfully?
Anthony EstelitaMemberI am experiencing the same exact problem. I recently upgraded my eclipse from 3.1.1 to 3.2 and myEclipse from 4.1 to 5.0.1. I had no problem debugging JSP’s while using myEclipse 4.1 but once I upgraded the breakpoints are hit; however, I get the message stating that “Source not found…”. I noticed another thing odd, when I set a breakpoint in the JSP code, under the Debug Perspective/Breakpoints tab it would display two breakpoints both for the same line of code (I don’t recall it ever doing that in the past).
Do we have to re-create the workspaces when we upgrade? I tried the clean, rebuild, and adding the -clean command line option but nothing seems to work.
Riyad KallaMemberAnthony, the two breakpoints are actually a bug that we have on our list of things to fix, sorry about that.
Also what kind of project are you debugging when you get the source not found? Is it a Java project as well? If it’s a web project, can you tell me what your settings under MyEclipse > Web are (the two text boxes) and tell me what the URL of the JSP is that you are trying to debug as well as App server you are using and if you are using MyEclipse to handle deployment or if you are managing that yourself with an Ant build (Same goes for building)
Anthony EstelitaMemberI am trying to debug a WebProject. The settings under MyEclipse > Web are:
Web-root folder: WebRoot Web Context-root: /pcAdmin
I don’t use ANT to build/deploy my web projects (myEclipse/eclipse does all the building, deploying, and syning with app server). I use WebLogic 8.0 as my application server as well.
Riyad KallaMemberDid you tell WebLogic to generate the debugging information in the JSPs when it compiled them?
http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-10419.html
Anthony EstelitaMemberYes, I have those settings in my weblogic.xml (as well as the following setting that may be useful to others): 😀
<jsp-param> <param-name>keepgenerated</param-name> <param-value>true</param-value> </jsp-param>
arieschiangMemberI re-create web porject and import all jsp files from the existing directory. The error still happens to me. Looks like it can not find these JSP files
-
AuthorPosts