Why does my Netbeans debugger break into a commented line of code?

I am debugging a Java web application running on my local Tomcat server configured through Netbeans 7.4 (also tried 7.3.1). I find a breakpoint in my servlet and go through the code, but I hit a breakpoint that is commented out.

So, I am sure that this should not happen. What could be the reason for this and what can I do with it?

Things I tried:

  • clean, build and reinstall (restore necessary artifacts, such as war, etc.).
  • close and reopen the project and netbeans
  • manually delete the project directory "target"
  • install new version of Netbeans
  • install new tomcat server
  • throw an exception at the beginning of my servlet to confirm that my code is not compiling or not being serviced (I don't see the exception being logged by Tomcat)
+4
source share
1 answer

The cause of the problem was related to old Java class files that were not updated in the application directory WEB-INF.

Does anyone know what could prevent updating these files during cleanup / build / redeploy?

+1
source

All Articles