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 179197 - Missing WEB-INF folder breaks 'Add information to web.xml' option
Summary: Missing WEB-INF folder breaks 'Add information to web.xml' option
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Servlet (show other bugs)
Version: 6.x
Hardware: PC Mac OS X
: P2 normal (vote)
Assignee: Andrey Yamkovoy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-04 10:12 UTC by Martin Schovanek
Modified: 2010-02-03 21:45 UTC (History)
2 users (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 Martin Schovanek 2010-01-04 10:12:55 UTC
[Nb 6.8, jdk1.6]

to reproduce:
-------------
1) create a new Java EE 6 Maven Web project
2) create a new Servlet and select 'Add information to web.xml' option
ERROR: Nb does not crate the web.xml

In case the WEB-INF folder exists the web.xml is created. But the Java EE 6 Maven Web project does not have this folder by default.
Comment 1 Milos Kleint 2010-01-05 02:23:34 UTC
there is no point in having the webinf folder in every project, we cannot even guarantee it will be there in all projects. reassigning to the generic web support, when creating the web.xml file, it should create the relevant folder as well..
Comment 2 Petr Jiricka 2010-02-02 05:15:57 UTC
Andrey, can you please take a look?
Comment 3 David Konecny 2010-02-02 12:43:55 UTC
yeap, Milos is right, the folder should be created on demand
Comment 4 Andrey Yamkovoy 2010-02-03 08:11:41 UTC
Fixed in the web-main.
Comment 5 Quality Engineering 2010-02-03 21:45:27 UTC
Integrated into 'main-golden', will be available in build *201002040200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/4b621b991880
User: Andrey Yamkovoy <kaktus@netbeans.org>
Log: #179197 - Missing WEB-INF folder breaks 'Add information to web.xml' option