This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Exception thrown when attempting to start the debugger for a servlet.
Created attachment 13884 [details] Exception stack trace
The problem is likely caused by executing a servlet from a non-webmodule filesystem. I tried to do that a got almost the some exception (attached). There is no doubt that the -Execute- action on servlet which is not inside a webmodule should be disabled. For Greg: Try to convert your filesystem to a webmodule by using 'Tools -> Convert to Webmodule' action on the filesystem node. You can also create a new webmodule using new webmodule wizard.
Created attachment 13889 [details] The NPE when executig servlet
By creating my file system as a Web Module has enabled servlet debugging. Now I have more questions as to how I might have set it up somewhat incorrectly because now the debugger runs, but does not seem to run the correct servlet, and does not seem to stop at the breakpoints that I set.
Are you getting an error message or an exception in the IDE console? I need more information to help you - like how did you created your servlet? Does it have a mapping in deployment descriptor? Try this scenario: 1) in your webmodule create a new servlet by using new from template wizard: choose New -> JSP&Servlet -> Servlet 2) put the breakpoint in the servlet 3) select the servlet in explorer and choose from main menu 'Debug -> Start session -> Run in Debugger' 4) => the tomcat server should be started and the webmodule deployed. The debugger should stop on the breakpoint. Please let me know if this doesn't work. Thank you.
VERIFIED