Skip to Content
0
Former Member
Aug 28, 2017 at 05:21 PM

Custom exception page not getting picked

152 Views

Hi,

I'm trying throwing a custom exception(extending RuntimeException) from service layer. With reference to 'serverError.jsp' I created following snippet in web.xml. Can anyone kindly tell me why my jsp is not getting displayed rather 'serverError.jsp' is getting picked?

  <error-page>
     <exception-type>com.philips.pcms.core.exceptions.MyCustomException</exception-type>
     <location>/WEB-INF/mycustomexceptionpage.jsp</location>
 </error-page>