-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue 52415:Adjust configuration for Tomcat error pages
- Loading branch information
1 parent
999ba3e
commit cf87817
Showing
3 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
server/embedded/src/org/labkey/embedded/LabKeyErrorReportValve.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.labkey.embedded; | ||
|
||
import org.apache.catalina.valves.ErrorReportValve; | ||
|
||
/** Issue 52415: Allow for Configuration of Default Error Page */ | ||
public class LabKeyErrorReportValve extends ErrorReportValve | ||
{ | ||
public LabKeyErrorReportValve() | ||
{ | ||
// Don't show Tomcat version info on its 404 and other error pages | ||
setShowServerInfo(false); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters