Bug 63853

Summary: allow to overwrite/extend org.apache.catalina.valves.ErrorReportValve.getPartialServletStackTrace()
Product: Tomcat 8 Reporter: Ralf Hauser <hauser>
Component: CatalinaAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED INVALID    
Severity: enhancement    
Priority: P2    
Version: 8.5.14   
Target Milestone: ----   
Hardware: PC   
OS: Linux   

Description Ralf Hauser 2019-10-15 15:14:07 UTC
getPartialServletStackTrace() is a great idea, but still too verbose, therefore I should refine this.

It seems possible to create an 
  public class ErrorReportValveMine extends ErrorReportValve { ...
and I could add it to the server.xml but in case of a Throwable still the old default ErrorValve is used

==> please allow to replace the ErrorReportValve class in server.xml !
Comment 1 Remy Maucherat 2019-10-15 15:21:22 UTC
You should research the issue or post on the user list before opening a BZ.
Comment 2 Ralf Hauser 2019-10-15 15:41:05 UTC
https://tomcat.apache.org/tomcat-8.5-doc/config/host.html  "errorReportValveClass" seems to be the solution, apologies  ;)
Comment 3 Ralf Hauser 2019-10-15 15:57:56 UTC
please extend the http://tomcat.apache.org/tomcat-8.5-doc/config/valve.html#Error_Report_Valve

with a hint to "errorReportValveClass" and that it can be sub-classed