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 250479 - Add new Web Application Listener corrupts web.xml
Summary: Add new Web Application Listener corrupts web.xml
Status: RESOLVED WORKSFORME
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-18 05:22 UTC by MackSix
Modified: 2015-06-10 21:53 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Sample Project (1.28 MB, application/x-zip-compressed)
2015-02-18 05:22 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2015-02-18 05:22:44 UTC
Created attachment 152048 [details]
Sample Project

Required: GlassFish Server 4.1

1. Open current project in NetBeans.
2. Compile and run application to ensure it runs.
3. Right click on package org.javaserverfaces.chapter01 and choose New>>Other>>Web>>Web Application Listener.
4. Name the Class "SessionListener".
5. Uncheck "Context Listener" and Check "HTTP Session Listener".
6. Click the Finish button.

Results: Class is created, but web.xml is left corrupted with a "(" added before the closing </web-app>

Expected: web.xml is not corrupted.

Product Version: NetBeans IDE Dev (Build 201502150001)
Java: 1.8.0_31; Java HotSpot(TM) 64-Bit Server VM 25.31-b07
Runtime: Java(TM) SE Runtime Environment 1.8.0_31-b13
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 Petr Hejl 2015-06-10 13:57:43 UTC
Is this still reproducible for you with these steps? It works ok for me in dev build.
Comment 2 MackSix 2015-06-10 21:53:14 UTC
It works OK with:

Product Version: NetBeans IDE Dev (Build 201506060001)
Java: 1.8.0_45; Java HotSpot(TM) 64-Bit Server VM 25.45-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_45-b15
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)