I am using Tomcat 9.
I define a global error page in my web.xml. (As per BalusC's answer in How can I use the same error page for multiple error codes in Tomcat?)
<error-page>
<location>/error/exception.jsp</location>
</error-page>
It works great. However Eclipse complains that
The content of element type "error-page" must match "((error-code|exception-type),location)".
I could do something like this
<error-page>
<exception-type>java.lang.Exception</exception-type>
<location>/error/exception.jsp</location>
</error-page>
But then I would need to have separate declarations for every single error page. I would like to define something general as a "catch-all"
My assumption was that I would need to update the web.xml version
But changing 1.0 to for instance 2.0 results in the following:
XML version "2.0" is not supported, only XML 1.0 is supported.