I'm trying to set a user friendly 404.html
. I'm following this answer
I added <error-page>
tag to web.xml
file that was in the conf
folder C: . . .\apache-tomee-webprofile-1.7.4\conf\web.xml
as following
<error-page>
<error-code>404</error-code>
<location>/PageNotFound.html</location>
</error-page>
However, when I start Tomee, it would rewrite this web.xml
with all it's default values. As if I never made any changes. Why?