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.

Bug 40841 - servlet debugging
Summary: servlet debugging
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Pavel Buzek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-08 20:55 UTC by gregd
Modified: 2006-02-20 13:18 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Exception stack trace (499 bytes, text/plain)
2004-03-08 20:57 UTC, gregd
Details
The NPE when executig servlet (955 bytes, text/plain)
2004-03-09 09:46 UTC, Marek Fukala
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gregd 2004-03-08 20:55:08 UTC
Exception thrown when attempting to start the 
debugger for a servlet.
Comment 1 gregd 2004-03-08 20:57:04 UTC
Created attachment 13884 [details]
Exception stack trace
Comment 2 Marek Fukala 2004-03-09 09:45:17 UTC
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.
Comment 3 Marek Fukala 2004-03-09 09:46:03 UTC
Created attachment 13889 [details]
The NPE when executig servlet
Comment 4 gregd 2004-03-10 15:56:45 UTC
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.
Comment 5 Marek Fukala 2004-03-10 17:47:56 UTC
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.
Comment 6 Jaroslav Pospisil 2006-02-20 13:18:18 UTC
VERIFIED