- This topic has 7 replies, 2 voices, and was last updated 17 years, 8 months ago by
Riyad Kalla.
-
AuthorPosts
-
I’m still having the same issue in MyEclipse 6 with the “Source Not Found” problem when trying to debug any Java class under WebLogic 9.2.
This “Source Not Found” seems to be a problem not related to just MyEclipse, but I’m not sure what could be wrong.
In every case when trying to debug, I have to manually navigate to the “src” folder under workspace before I can see my source code in the debugger.
Below is the javac task from our Ant Script.
<javac deprecation=”on” srcdir=”${project.source}” destdir=”${project.classes}” debug=”on”>
<classpath refid=”compile.classpath”/>
<compilerarg value=”-Xlint:unchecked”/>
</javac>I”ve also tried adding other debug arguments, but that didn’t help (at least the ones I added).
Look forward to any replies or suggestions.
Thanks very much in advance.
M
Riyad KallaMember1. What kind of project is being debugged?
2. After you find your source and set it, does everything work (Stepping, etc.) for the remainder of the debug session?Hi R,
It’s a full J2EE project with EJBs, Struts, ….
Yes, having to add the workspace…src folder to the “Source Not Found” dialog happens on any Java file every time I debug. But, once you set it (add the workspace..src folder), it works fine for the rest of that debug session (only).
Hope you can suggest something. 🙂
Thanks for your repl.
M
Riyad KallaMemberMork,
Please try the following for me:1. Navigate to Window > Prefs > MyEclipse > App Servers > WebLogic > WebLogic 9.2 > Launch
2. Click “Create Custom Launch Configuration” button.
3. Go to the Source tab and make sure all the source folders that can be looked up (from all projects) are added.
4. Now be sure to shut down any running instances of WebLogic you have, and then click the Debug menu and go down to the cutom launch config you created and fire it up instead.
5. Now try and debug, did it work?No, this didn’t work, but perhaps I’m doing something wrong.
First of all, for me, when I try to:
1. Navigate to Window > Prefs > MyEclipse > App Servers > WebLogic > WebLogic 9.2 > Launch
2. Click “Create Custom Launch Configuration” button.I see …. “Create Launch Configuration” (not “Custom”)
When I edit this to add the src folder, Apply, and close. Then I go back in to the Create Launch Configuration, the src folder is not there — it doesn’t seem to be being saved.
If I, alternatively, just add the src folder in Create Launch Configuration, Apply, and close, then go to the debug drop down (the one with the bug on it), I do not see any custom launch configurations.
If I look at the create, manage and run configurations, I can’t create (or see one) a custom launch config either.
What about re-installing the Weblogic plugin?
Anything else I might try?
It should be simple, right?
Thanks again in advance.
M
Riyad KallaMemberActually you should be able to see it under the MyEclipse Server node (See screenshot).
If you can find it, if you select it and go to Source do you see all your projects listed there? If you don’t, can you add them all, hit Apply then try and fire up WebLogic from there and see if debugging works?
Attachments:
You must be logged in to view attached files.Hi R,
Yes!!!
Creating the custom launch configuration as you suggested fixes the problem where I had to manually enter the src folder or the project folder each time I debugged.
Not sure what to deduce from that, but perhaps that will help you all figure out what’s going on?
In the meantime, no big surprise, I’ll use the custom launch config! <g>
Thanks very much for your help and for your patience on this.
Hope to hear back with any updates.
Thanks again
M
Riyad KallaMemberAwesome, I think we can pin-point what is going on now. Thanks for the help Mork!
-
AuthorPosts