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 - Cannot run Servlet when web.xml created by new file wizard
Summary: Cannot run Servlet when web.xml created by new file wizard
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 7.1
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: David Konecny
URL:
Keywords: TEST
: 211077 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-09-06 09:15 UTC by Jiri Skrivanek
Modified: 2012-04-17 12:25 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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