I have two custom url mappings for error pages (500 and 404) using PrettyFaces. On my web.xml I have these two error page rules:
<error-page>
<error-code>404</error-code>
<location>/not-found</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/error</location>
</error-page>
The problem is that Eclipse insists in warn me that the /error
and /not-found
resources cannot be found in my webapp path.
How can I get rid of these annoying warnings? I don't want to lose the web.xml validation though.
Thanks in advance.
This happens when you have any file in web.xml that has an invalid mapping. I'm guessing you are probably using JBoss Tools? If so, if you go into the Eclipse Preferences, type Validation into the filter, find the JBoss Tools validations, and turn off the web.xml validations. That should do the trick.
Preferences -> JBoss Tools -> Web -> Vefication -> (then disable all the rules you don't want.)