web.xml overwritten

I have my webapp set up with a web.xml that is not in the same place as my marked webroot. The webroot has it's own web.xml, but I need to be using the one in the other location. The problem is the other location is also the exploded directory, and the web.xml from my web root is getting copied over the web.xml with all my settings. This wasn't happening in previous builds. Is there a way to prevent this?

Thanks,
Jon

1 comment
Comment actions Permalink

Web module owns web.xml where all relevant inforamtion stored.
Web root directories contain web resources which copied into deployment directory on make.
If it happens that one web root contains another web.xml which gets copied in the same location as Web module's own web.xml, the
latter overwrites all others.
You can let web module point to the right web.xml so that it does not get overwritten by others. (press F4 on web module and change
web.xml location)

--
regards,
Alexey Kudravtsev
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


"Jon Erdman" <no_mail@jetbrains.com> wrote in message news:5574131.1073402018606.JavaMail.itn@is.intellij.net...

I have my webapp set up with a web.xml that is not in the same place as my marked webroot. The webroot has it's own web.xml, but

I need to be using the one in the other location. The problem is the other location is also the exploded directory, and the web.xml
from my web root is getting copied over the web.xml with all my settings. This wasn't happening in previous builds. Is there a way
to prevent this?
>

Thanks,
Jon



0

Please sign in to leave a comment.