This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
I am using wsad 5.1.1 with tomcattest environment web server. I set up some break points in servlets and jsp files. And then start web server in debug mode.
Run the application and breakpoints in servlets can be stopped. But breakpoints in jsp will never be stopped. -- Why? I should mention that I really put the breakpoints in the right place of a jsp file, that's at scriptlet code.
when you ran the application, did it run on the server that you started on debug mode?
you can check by looking at the server list, if you started the server on debug mode, and ran your application on it correctly, then there should only be one server running, the one in debug mode. if there are 2, then your application might have run on the other one, not the one in debug mode. if so, you can make sure it runs on the right server, i believe, by associating the applicaiton with that specific server, ..try right click on server and choose 'Add' , and choose the application.
thats the only thing i can think that would cause that
Joined: Jan 13, 2004
Thank you for your reply. For sure I ran my app on debug mode of tomcat 4.1 test environment. In the same run I put some breakpoints both in java file and jsp file, the execution only stoppted at a breakpoint in java file, but never the one in jsp file. From this we can say the debugging is kind of running, it works in java file but not jsp file. My question was why debugging does not work on jsp file.