html - Spring web.xml resolves only JSP default error page -


i have strange problem. using simple web.xml file. if put extension default file .jsp - default error page works. put .html, page ignored , default tomcat error page displayed. interesting thing dont have configuration regarding extensions(((

works:

<error-page>         <exception-type>java.lang.throwable</exception-type>         <location>/thymeleaf_views/error.jsp</location> </error-page> 

does not work:

<error-page>         <exception-type>java.lang.throwable</exception-type>         <location>/thymeleaf_views/error.html</location> </error-page> 

and got error:

severe: exception processing errorpage[exceptiontype=java.lang.throwable, location=/thymeleaf_views/error.html] java.lang.nullpointerexception 

it seems spring somehow resolves without checks **.jsp* other extensions should somehow resolved since jsp works. other extension rejected.


Comments