facebook

JSP Debugging: Source not found

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 15 posts - 1 through 15 (of 81 total)
  • Author
    Posts
  • #254698 Reply

    Heikki Pakkala
    Participant

    When 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 Workbench

    Version: 5.0 Milestone 2
    Build id: 20060703-5.0-M2

    *** Eclipse details:
    Eclipse SDK

    Version: 3.2.0
    Build id: M20060629-1905

    Eclipse Graphical Editing Framework

    Version: 3.2.0.v20060626
    Build id: 20060627-0816

    Eclipse Platform

    Version: 3.2.0.v20060609m-AgOexn6hlEUsvBO
    Build id: M20060629-1905

    Eclipse RCP

    Version: 3.2.0.v20060609m-SVDNgVrNoh-MeGG
    Build id: M20060629-1905

    Eclipse Java Development Tools

    Version: 3.2.0.v20060609m-F7snq1fxia-Z4XP
    Build id: M20060629-1905

    Eclipse Plug-in Development Environment

    Version: 3.2.0.v20060609m——6zXJJzJzJq
    Build id: M20060629-1905

    Eclipse Project SDK

    Version: 3.2.0.v20060609m-GNq6oQq-7es-Y81
    Build id: M20060629-1905

    Eclipse 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

    #254771 Reply

    Riyad Kalla
    Member

    Try 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.

    #257913 Reply

    jfidel
    Member

    I 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

    #257931 Reply

    Riyad Kalla
    Member

    Can 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.

    #259287 Reply

    arieschiang
    Member

    The is the screen shot! Please help!

    [
    [
    [
    [

    #259288 Reply

    arieschiang
    Member

    Dear support-rkalla,

    I am send you the screen shot in PM. Please let me know if you have any question, Thanks

    #259291 Reply

    Riyad Kalla
    Member

    arieschiang,
    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.

    #259297 Reply

    arieschiang
    Member

    I re-create the web project and the same error still happens to me

    #259315 Reply

    Riyad Kalla
    Member

    arieschiang,
    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?

    #259364 Reply

    I 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.

    #259370 Reply

    Riyad Kalla
    Member

    Anthony, 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)

    #259374 Reply

    I 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.

    #259384 Reply

    Riyad Kalla
    Member

    Did 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

    #259385 Reply

    Yes, 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>
    
    #259388 Reply

    arieschiang
    Member

    I 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

Viewing 15 posts - 1 through 15 (of 81 total)
Reply To: JSP Debugging: Source not found

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