This is an automated email from the ASF dual-hosted git repository.

schultz pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/10.1.x by this push:
     new a1161fe13b Fix error building status JSON
a1161fe13b is described below

commit a1161fe13b52db8f5c929b3f9eacbb9885e12f1c
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 e2e4b7fdd4..e083ffe1eb 100644
--- a/java/org/apache/catalina/startup/FailedContext.java
+++ b/java/org/apache/catalina/startup/FailedContext.java
@@ -1431,4 +1431,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 256df0e26f..68bd40d18a 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 10.1.49 (schultz)" rtext="Release in progress">
   <subsection name="Catalina">


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to