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

Summary: Add new Web Application Listener corrupts web.xml
Product: javaee Reporter: MackSix
Component: CodeAssignee: Petr Hejl <phejl>
Status: RESOLVED WORKSFORME    
Severity: normal CC: MackSix
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: Sample Project

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)