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 201668

Summary: Cannot run Servlet when web.xml created by new file wizard
Product: javaee Reporter: Jiri Skrivanek <jskrivanek>
Component: Web ProjectAssignee: David Konecny <dkonecny>
Status: VERIFIED FIXED    
Severity: normal CC: neil15
Priority: P3 Keywords: TEST
Version: 7.1   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description Jiri Skrivanek 2011-09-06 09:15:03 UTC
It is not possible to execute Servlet when web.xml is created during servlet creation. To reproduce:

- create a new web application project (GlassFish server)
- open new file wizard
- choose "Web|Servlet" and click Next
- provide package name and click Next
- check "Add information to deployment descriptor (web.xml)"
- click Finish
- right-click in editor and choose "Run File". The following error message is raised:

Class "NewServlet" neither has a method nor it is a servlet specified in web.xml.

If you restart the IDE, it starts to work.

Product Version: NetBeans IDE Dev (Build 201109040600)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17
System: Windows XP version 5.1 running on x86; Cp1250; en_US (nb)
Comment 1 Jiri Skrivanek 2012-04-12 10:24:05 UTC
*** Bug 211077 has been marked as a duplicate of this bug. ***
Comment 2 David Konecny 2012-04-12 22:04:22 UTC
2a07352118a8
Comment 3 Quality Engineering 2012-04-14 09:42:28 UTC
Integrated into 'main-golden', will be available in build *201204140400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/2a07352118a8
User: David Konecny <dkonecny@netbeans.org>
Log: #201668 - Cannot run Servlet when web.xml created by new file wizard