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.
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)
Is this still reproducible for you with these steps? It works ok for me in dev build.
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)