【发布时间】:2012-01-12 21:49:48
【问题描述】:
我有两个使用 PrettyFaces 的错误页面(500 和 404)的自定义 url 映射。在我的 web.xml 中,我有这两个错误页面规则:
<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>
问题是 Eclipse 坚持警告我在我的 webapp 路径中找不到 /error 和 /not-found 资源。
如何摆脱这些烦人的警告?我不想丢失 web.xml 验证。
提前致谢。
【问题讨论】:
标签: web.xml eclipse-indigo custom-error-pages prettyfaces