This content has been marked as final. Show 13 replies
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.
You could also try checking that you are running your app running the right version of java - make sure you are using a JDK, not a JRE.
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.
Thank you fixpoint.
it is running..
This happens using ant script too.
Ensure that activate flag debug="on" in your javac ant task.
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 had this problem.
My project is built by ant. The solution was to set the ant to use SDK. It had a problem when the project was built with JRE. It solved my problem.
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.