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 218982 - 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: Maven (show other bugs)
Version: 7.3
Hardware: PC Windows 7 x64
: P2 normal (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-25 13:36 UTC by Jiri Skrivanek
Modified: 2012-10-03 08:11 UTC (History)
0 users

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 2012-09-25 13:36:32 UTC
It is simailar like bug #201668 in ant project. It is not possible to execute Servlet when web.xml is created during servlet creation. To reproduce:

- create a new Maven 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". It opens just root context probably because clientUrlPart property is empty. If you restart IDE it starts to work.

cd D:\Development\builds\nbUserdir-20120925123001\mavenproject2; JAVA_HOME=D:\\jdk1.7.0 D:\\Development\\builds\\20120924\\netbeans\\java\\maven\\bin\\mvn.bat -Dnetbeans.deploy=true -Dnetbeans.deploy.clientUrlPart= package

Product Version: NetBeans IDE Dev (Build 201209240001)
Java: 1.7.0_07; Java HotSpot(TM) 64-Bit Server VM 23.3-b01
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb
Comment 1 Martin Janicek 2012-10-01 13:04:49 UTC
Reproducible, setting TM = 7.3
Comment 2 Martin Janicek 2012-10-01 14:18:17 UTC
Fixed in: web-main #343dbb6a60c9
Comment 3 Quality Engineering 2012-10-02 02:25:00 UTC
Integrated into 'main-golden', will be available in build *201210020001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/343dbb6a60c9
User: Martin Janicek <mjanicek@netbeans.org>
Log: #218982 - Cannot run Servlet when web.xml created by new file wizard