facebook

Debug perspective showing ‘source not found’

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #231432 Reply

    Hi…
    I usually use the debug perspective with no errors, but now an error begin to appear. When i put a breakpoint in a simple class and run my web application this perspective show me a message: ” There is no source file attached to the class file xxx.class “, but i’m sure that this source file exists. It begins to happen without a reason.

    *** It only happens on a specific project, in other one it works well…

    Thanks all.

    #231438

    Riyad Kalla
    Member

    neki,
    Try shutting down your app server, remove your deployment close the project and restart MyEclipse, now open the project back up, Rebuild the project, and recreate the deployment then try running it again. Did that work?

    #231449

    Hi Riyad…
    I did what you said, but it didn’t fix my problem…I tried to remove my source folder, built the project, add it again and built it again but it doesn’t work too…do you have any idea??

    #231455

    Riyad Kalla
    Member

    .I tried to remove my source folder,

    neki, I pray you mistyped this… I didn’t ask you to remove your Source folder.

    What is the structure of your project, please note the folders that are your source, output and webroot folders. Also wrap your directory outline in a code blocks (using the code button below) so it retains it’s indentation.

    #231459

    Riyad…
    Excuse me my bad English, i said i tried to remove also my source folder, but it doesn’t work too.
    We have a EAR project, 4 WEBProjects and 3 EJBProjects, with this EAR i make the deployment, inside this i have the others projects. In only one of this projects the debug perspective doens’t work.
    My structure is: for each Web Project i have my webroot with a META-INF, WEB-INF(with the configurations file) and other folders(JSP, CSS…) and a folser called SRC(where my source code is).
    In my Java Build Path/Source, i put this folder as Solder Folder…That is it…
    Its the same configuration for all Projects, but in this one doens’t work…

    ____________________
    Marcelo Leite
    Neki

    #231464

    Scott Anderson
    Participant

    Neki,

    Could it be that the same class file is being packaged into more than one of the projects in your EAR? If that’s the case, having multiple class files that can load under exactly the same name can confuse the Eclipse Java source lookup facility. For that particular class, does the source exist in one of your projects? More than one?

    In the debugger, when the source isn’t found can you tell the debugger where the source file is and have it function properly after that?

    #231474

    Hi…
    No, doesn’t exists more than one class with the same name…
    And, in debugger mode i can’t tell it where the source file is…
    Do you have another idea??
    It’s so strange!!

    ___________________
    Marcelo Leite
    Neki

    #231495

    Hi…
    My problem persists, can someone help me???

    #231498

    Riyad Kalla
    Member

    Neki,
    Can you try shutting down your app server, removeing the deployment and then removing all the modules from your EAR and readding them?

    If that doesn’t work, I would suggest creating a new Web Project, then drag and drop (COPY) all of the files from the broken WEb Project into the new one, then remove the broken web project as a module from your ear and add the new one as a module, then redeploy the EAR… did it work?

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: Debug perspective showing ‘source not found’

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