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 - jboss-web.xml should not be created in case of default context root
Summary: jboss-web.xml should not be created in case of default context root
Status: NEW
Alias: None
Product: serverplugins
Classification: Unclassified
Component: JBoss (show other bugs)
Version: 7.3.1
Hardware: PC All
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-21 09:20 UTC by Petr Jiricka
Modified: 2013-10-29 16:07 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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