0

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.

ramsvidor
  • 1,480
  • 1
  • 14
  • 19

1 Answers1

1

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.)

Lincoln
  • 3,151
  • 17
  • 22
  • I'm indeed using JBoss Tools for Indigo, but I couldn't find these options :( I'm using JBoss Tools development milestone 3.3.0.M4. – ramsvidor Dec 09 '11 at 04:45
  • That's the same version I am using. Try pressing CTRL-3, or COMMAND-3 on mac to bring up the quick-menu. Then type: verification. – Lincoln Dec 15 '11 at 20:44
  • You should see the only option there will take you to the menu I am talking about. – Lincoln Dec 15 '11 at 20:44
  • Found it! Awesome! Thanks! And congratulations for the great work on Pretty Faces! :) – ramsvidor Dec 20 '11 at 01:09