(tomcat) branch main updated: Handle case of only one clustering JAR missing rather than both

[email protected]
Newsgroups gmane.comp.jakarta.tomcat.devel
Message-ID <178635549092.1913608.9615517086647569268@gitbox3-he-fi.apache.org>
This is an automated email from the ASF dual-hosted git repository.

markt-asf pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/main by this push:
     new 41ebbb1b56 Handle case of only one clustering JAR missing rather than both
41ebbb1b56 is described below

commit 41ebbb1b5607d988bb369516b81091ca380faf4c
Author: Mark Thomas <[email protected]>
AuthorDate: Mon Aug 10 10:51:12 2026 +0100

    Handle case of only one clustering JAR missing rather than both
---
 webapps/manager/WEB-INF/jsp/sessionsList.jsp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/webapps/manager/WEB-INF/jsp/sessionsList.jsp b/webapps/manager/WEB-INF/jsp/sessionsList.jsp
index 82a2c7f830..91efde5667 100644
--- a/webapps/manager/WEB-INF/jsp/sessionsList.jsp
+++ b/webapps/manager/WEB-INF/jsp/sessionsList.jsp
@@ -37,8 +37,8 @@ static {
     try {
         clazz = Class.forName("org.apache.catalina.ha.session.DeltaSession");
         method = clazz.getMethod("isPrimarySession");
-    } catch (ClassNotFoundException e) {
-        // Expected when clustering JARs are not present
+    } catch (ClassNotFoundException | NoClassDefFoundError e) {
+        // Expected when either or both clustering JARs are not present
     } catch (NoSuchMethodException e) {
         // Should not happen if the class is available
     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.