You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by cs...@apache.org on 2026/05/07 01:58:54 UTC
(tomcat) branch 9.0.x updated: Lower the log level to debug when OpenSSL initialization fails to avoid nasty stack traces and gracefully fail when natives aren't present
This is an automated email from the ASF dual-hosted git repository.
csutherl pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new ee676b4656 Lower the log level to debug when OpenSSL initialization fails to avoid nasty stack traces and gracefully fail when natives aren't present
ee676b4656 is described below
commit ee676b4656685fa4a102cc347115cb961f86dc65
Author: Coty Sutherland <cs...@apache.org>
AuthorDate: Wed May 6 21:52:59 2026 -0400
Lower the log level to debug when OpenSSL initialization fails to avoid nasty stack traces and gracefully fail when natives aren't present
---
java/org/apache/catalina/core/OpenSSLLifecycleListener.java | 4 +++-
webapps/docs/changelog.xml | 8 ++++++++
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/java/org/apache/catalina/core/OpenSSLLifecycleListener.java b/java/org/apache/catalina/core/OpenSSLLifecycleListener.java
index ba8c082b53..facd2529df 100644
--- a/java/org/apache/catalina/core/OpenSSLLifecycleListener.java
+++ b/java/org/apache/catalina/core/OpenSSLLifecycleListener.java
@@ -59,7 +59,9 @@ public class OpenSSLLifecycleListener implements LifecycleListener {
} catch (Throwable t) {
Throwable throwable = ExceptionUtils.unwrapInvocationTargetException(t);
ExceptionUtils.handleThrowable(throwable);
- log.error(sm.getString("openssllistener.sslInit"), throwable);
+ if (log.isDebugEnabled()) {
+ log.debug(sm.getString("openssllistener.sslInit"), throwable);
+ }
}
}
}
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 50fc37dfbd..0ef8d11bc9 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -120,6 +120,14 @@
<section name="Tomcat 9.0.118 (remm)" rtext="release in progress">
<subsection name="Catalina">
<changelog>
+ <fix>
+ Lower the log level to debug when OpenSSL initialization fails in
+ <code>OpenSSLLifecycleListener</code> to avoid stack traces
+ when <code>libssl.so</code> is not present and to align the behavior
+ of the <code>isAvailable()</code> check with the
+ <code>AprLifecycleListener<code> and gracefully fail when natives
+ are not present. (csutherl)
+ </fix>
<add>
Enhance <code>version.sh</code> and <code>version.bat</code> to display
APR, Tomcat Native, and OpenSSL version information (both APR and FFM
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org