I am using Eclipse 3.0, Jboss to run my Java applications. Till yesterday I could set breakpoints and everything was working fine.
I didn't change any settings but it is not allowing me to set breakpoints anymore.
Unable to install breakpoints due to missing line number attributes
I double checked the settings in window->preferences->compiler->classfiles
Add line number to class files is checked.
Is there anything else I can do?
Any help on this would be greatly appreciated.
I've had the same happen to me in the last couple of days... I wonder what changed? I'm in Eclipse 3 using M7's Nitro-X and have all the box checked for compiler line numbers. I get a message saying the box needs to be checked when it already is checked. -DJ.
If you get this error, first make sure that in eclipse windows->preferences attach line numbers to class files attribute is checked.
Even after checking it, if you still get the same error that means eclipse did not build the project properly
Either some jar files are missing in the build path or some other problem, try to look in window->show view-> problems or error log. After clearing all the problems, build the project again, you should be able to set breakpoints.
I just had this happen with the attach attribute checked and everything bulding OK. I fixed it by UNchecking it and clicking Apply--which provoked a full rebuild--and then REchecking it and Applying again.
I found the answer for this question. I have set the WORKSPACE of my Eclipse to point to Weblogic - applications directory.
Further I have copied the SRC folder of my application to
Where my XYZ directory is the root directory of my applications containing all HTML / JSP / JS files.
Let me know if you need any further information.
I got this problem too and found the solution. The reason for the problem is that the running application was referring to some Jars which were not compiled using -g flag. I recompiled thos jars with -g and was able to set breakpoints normally and debug successfully.
I too am facing this problem. I tried to do clean build from project menu. I am recieving an error that "Could not create folder" in my output files location. Can you please give me a solution.
I'm facing the same problem (no line number information) on the following configuration:
Eclipse 3.1.1 SDK with WTP 1.0 feature, Weblogic 7.1, running on weblogic provided JVM: JDK 1.3.1_08
I have already done the following:
1/ Re-checking debug preferences in Eclipse and rebuild all projects in the workspace then redeploy via ANT.
2/ Building via ANT1.6.2 with all javac tasks set to debug="on" and redeploy
Breakpoint is located in code section residing in one of the workspace's projects. But I don't know weather 3rd-party jar resources have been compiled with debug enabled or not; I suppose however it does not matter as I do not try to debug 3rd-party code but ours.
Any suggestion appreciated.
I was have this problem too, it was what I compilining with ant task javac for j.4 VM, and the server use 1.5. By another side I changed too the parameters of ant task to debug="true" and debuglevel="lines,vars,source" .
with the hope of which them help you.
I found the issue to be that the runtime version of java was different than the build version of java. Once I synced my runtime with the same version of java the buildroom was using this issue went away.