In a J2EE web application Error page is defined in
-
Server.xml
-
config.xml
-
web.xml
-
application.properties
In J2EE web applications, the web.xml deployment descriptor file defines application-wide configurations including error pages. You specify error pages using elements that map exception types or HTTP error codes to custom display pages. Server.xml (A) is for server-level configuration in Tomcat, config.xml (B) is not a standard J2EE config file, and application.properties (D) is typically used for application-specific settings, not servlet container configurations.
In a J2EE web application, custom error pages are configured in the deployment descriptor web.xml using `elements, which map HTTP status codes or exception types to specific pages.web.xmlis the standard place for servlet container configuration like this, unlikeserver.xml(container/server-level config) orapplication.properties` (a Spring Boot convention, not classic J2EE).