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.
In an Enterprise Application project with GlassFish V2 selected as the app server, changing the context-root setting by right-clicking on the <ApplicationName>-war module -> Properties -> Run -> "Context Path" setting does not effect the URL to access the project once deployed. The reason is that modifying this value in the IDE DOES change the <context-root> setting in sun-web.xml correctly, however it DOES NOT create the required "application.xml" file needed by GlassFish to change the context-root. I would request that the fix should be that changing the Context Path setting should either automatically create the application.xml file that is required by GlassFish (and set the needed context-root and any other values), or should ask you if you would like this file to be created.
This sounds like something to be done by server plugin? Do you agree phejl?
I believe this is responsibility of the EAR project. OTOH it could be unresolved thing in communication of EAR project and j2eeserver (missing api).
*** This issue has been marked as a duplicate of 123385 ***