- This topic has 23 replies, 5 voices, and was last updated 20 years, 6 months ago by
Riyad Kalla.
-
AuthorPosts
-
maxacmeMemberHi,
I’m running Eclipse 3.0m7, MyEclipse 3.70, and deploying to a jboss server.I can set a break point in my java code, and the server will halt at the breakpoint. However, the Eclipse debugger is unable to find my source file and displays the class info via the Class File Editor.
I’m unclear as to how MyEclipse loads the source path when debugging on the server. Any help would be much appreciated.
-Max
Scott AndersonParticipantMax,
For Java code, the standard Java source locator in Eclipse is used. I should point out that 3.0m7 was a very buggy milestone build, so that might have something to do with it. What I’d suggest is that you do a parallel installation of Eclipse 3.0 and MyEclipse 3.8.1. Once it’s up and running with the default workspace, restart it using a copy of your existing workspace and see if this configuration corrects the behavior you’re experiencing.
maxacmeMemberI’m now running Eclipse 3.0 with MyEclipse 3.8.1 and am getting exactly the same problem. I am able to do source level debugging with standalone java code. Setting a breakpoint in code running on my JBoss server ( as launch in debug via the MyEclipse using the start server gui ) still doesn’t doesn’t locate the source code.
I’m infamiliar with the innards of Eclipe’s java source locator, any suggestions on how to track this down?
Riyad KallaMemberWhat JDK version are you using? What version of JBoss?
Scott AndersonParticipantIf the source code isn’t located, the Class File Editor for the class in question should open for the class. You should simply be able to press the “Change Attached Source” button to remind Eclipse where in your workspace your source code is located. You should also be sure that the folder containing the code is still properly designated as a Source folder in the project.
maxacmeMemberI checked the designated source folder: Project Properties->Source tab. I also removed the setting, and reentered by source folder.
My class file editor doesn’t have a “Change Attached Source” button. I seem to remember it in previous versions, but I do not have that button in the class file editor.
Is it possible the problem is burried down in some xml config file that myeclipse uses to link .class files on the jboss server with the local source? A deploy problem?
maxacmeMemberI’m running jdk 1.4.2_05 and JBoss 3.2.5
Riyad KallaMemberWhat JRE is being used to run Eclipse? (Help > About > Configuration Details)… I wonder if that’s the problem.
Also are you sure your compiler settings are leaving the source code in the class files? You might want to double check that you didn’t optimize that information out.
maxacmeMemberEclipse is using JRE j2re1.4.2_05, which I think is OK. Pardon my ingnorance, but where is the setting to tell the javac to leave the source in the class files in Eclipse? I bet that’s the problem.
Thanks again,
-Max
Riyad KallaMemberMax,
Actually its IBM’s own incremental compiler, you can adjust its settings via Window > Preferences > Java > Compiler. I think its on the middle tab or so where you can adjust what is left in or not.
maxacmeMemberUmmm, the only setting in Window>Preferences>Java>Compiler that pertains to output files, on my system, is the buildpath tab. I have “Enable use of multiple output locations for source folders” checked. And I tried “Enable use of exlusion patterns” check and unchecked. Still have the same problem.
I’m deploying my app as an exploded subdir tree ( as opposed to a jar ). There are no source code files in with my .class files in the WEB-INF sub dir structure. Is this a deployment issue with MyEclipse?
Riyad KallaMemberMax, its the tab right before that “Classfiles and Compliance” at the bottom there are like 4 options for generated class files, you want them all checked (the last one is optional).
There are no source code files in with my .class files in the WEB-INF sub dir structure. Is this a deployment issue with MyEclipse?
Not really, there shouldn’t be any source files mixed in with the class files. If you DO happen to have them mixed in and don’t want to move them out of that dir, then yes the deployment tool I believe avoids deploying source code as it shouldn’t be on your server (safety first 😉
maxacmeMemberAll four boxes are checked as you stated, and I still have the same problem, argggggg. Any ideas? Otherwise, I’m gonna have to run Eclipse in the debugger and track it very annoying.
Riyad KallaMemberMax,
Are you using the Eclipse SDK install? Also what file is it complaining that it can’t find source for? Are you sure its your file, or is the breakpoint incorrectly stopping IN the container somewhere like “JSPWrapperPage” or something like that?
maxacmeMemberI’m running Eclipse as installed via eclipse-SDK-3.0-win32.zip. The breakpoint is correctly set in my source code. I CAN set a break point and step thru jsp code. However, when I step into java code ( a bean for example call from jsp ) then the source can’t be found. When setting a break point in one of my .java source files, I get the same problem, and drop into the class file editor.
-
AuthorPosts