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.

1 Answer 1

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

4
  • 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 9, 2011 at 4: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, 2011 at 20:44
  • You should see the only option there will take you to the menu I am talking about.
    – Lincoln
    Dec 15, 2011 at 20:44
  • Found it! Awesome! Thanks! And congratulations for the great work on Pretty Faces! :)
    – ramsvidor
    Dec 20, 2011 at 1:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.