EAP 7 does not display custom error page for custom exception type if JSP config is set to development mode

Solution Verified - Updated -

Issue

  • We configure a custom error page for a custom exception type in our application's WEB-INF/web.xml:
 <error-page>
 <exception-type>com.redhat.exception.CustomException</exception-type>
 <location>/error.jsp</location>
 </error-page>
  • We see that JBoss does not display this page as expected when the JSP config is set to development mode in the undertow subsystem:
<jsp-config development="true"/>

Environment

  • JBoss Enterprise Application Platform (EAP) 7.3.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content