users@glassfish.java.net

Re: Anomaly changing web.xml on a directory deployed web app.

From: <glassfish_at_javadesktop.org>
Date: Mon, 07 Jul 2008 07:00:20 PDT

Yes, in v2, if the web.xml is changed, a redeploy (or reload) is needed.
Just deleting the web.xml from the generated/xml directory would cause problem. That web.xml has the combined meta-data information from the original web.xml and also annotations. Deleteing it would force the web.xml to be loaded from the original user directory, and therefore possible loss of the annotation information.
[Message sent by forum member 'hzhang_jn' (hzhang_jn)]

http://forums.java.net/jive/thread.jspa?messageID=284689