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 234694

Summary: jboss-web.xml should not be created in case of default context root
Product: serverplugins Reporter: Petr Jiricka <pjiricka>
Component: JBossAssignee: Petr Hejl <phejl>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.3.1   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Petr Jiricka 2013-08-21 09:20:34 UTC
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.)
Comment 1 skaplon 2013-10-29 16:07:24 UTC
Also happens in 7.4 with JEE 5 maven project