Adding an error page

Use the following steps to add an error page:

  1. Display the File Refs tab in the Web Application Properties dialog box.

  2. Under Error Mapping, click Add. A new row is added to the mapping table with default settings.

  3. Place the cursor in the Error/Exception cell, and enter the error number or Java exception class name.

  4. Place the cursor in the URL cell, and type the path to the file, relative to the Web application’s context root; for example, /etc/error404.html.

  5. Verify that the file exists in your EAServer installation directory and can be read by the server process. For example, the path /etc/error404.html corresponds to the Repository/WebApplication/web_app/etc/error404.html file in your EAServer installation, where web_app is the name of the Web application.