This is an automated email from the ASF dual-hosted git repository.
schultz pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/11.0.x by this push:
new e454a83db4 Fix error building status JSON
e454a83db4 is described below
commit e454a83db4f28c1142527d37fc4ec5d72923a567
Author: Christopher Schultz <[email protected]>
AuthorDate: Mon Nov 17 09:26:01 2025 -0500
Fix error building status JSON
FailedContext was missing some attributes required to report application
status
---
java/org/apache/catalina/startup/FailedContext.java | 11 +++++++++++
webapps/docs/changelog.xml | 7 +++++++
2 files changed, 18 insertions(+)
diff --git a/java/org/apache/catalina/startup/FailedContext.java
b/java/org/apache/catalina/startup/FailedContext.java
index a0566b95f6..04a068e6fc 100644
--- a/java/org/apache/catalina/startup/FailedContext.java
+++ b/java/org/apache/catalina/startup/FailedContext.java
@@ -1442,4 +1442,15 @@ public class FailedContext extends LifecycleMBeanBase
implements Context {
public void setSuspendWrappedResponseAfterForward(boolean
suspendWrappedResponseAfterForward) {
}
+ public long getStartTime() {
+ return -1;
+ }
+
+ public long getStartupTime() {
+ return -1;
+ }
+
+ public long getTldScanTime() {
+ return -1;
+ }
}
\ No newline at end of file
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index f2a505dde4..65dd4642c5 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -133,6 +133,13 @@
</fix>
</changelog>
</subsection>
+ <subsection name="Web Applications">
+ <changelog>
+ <fix>
+ Fix error while building status JSON for a failed context. (schultz)
+ </fix>
+ </changelog>
+ </subsection>
</section>
<section name="Tomcat 11.0.14 (markt)" rtext="2025-11-10">
<subsection name="Catalina">
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]