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.
I have an existing Java EE 6 Maven-based web project that does not have jboss-web.xml, which means that when deployed, the war file name will be used as the context path. However, when I open this project in NetBeans, the IDE creates jboss-web.xml with the matching context-root element. This is not necessary (represents no change in behavior). Non-existing jboss-web.xml should be accepted as a valid state, and context path should be inferred from the war name, and not written out explicitly to this file. Similarly when creating a new Ant-based project and the user does not change the context path that the IDE offers by default during creation. (Ant-based, because for Maven the situation is more complicated I suspect.)
Also happens in 7.4 with JEE 5 maven project