https://bz.apache.org/bugzilla/show_bug.cgi?id=69987

            Bug ID: 69987
           Summary: Package tomcat-coyote-ffm for use with embedded tomcat
           Product: Tomcat 11
           Version: 11.0.20
          Hardware: PC
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Connectors
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: -------

Tomcat's Foreign Function & Memory API integration for OpenSSL is not packaged
for easy use within embedded Tomcat.

Specifically, I would like to use OpenSSLLifecycleListener within embedded
Tomcat.

https://tomcat.apache.org/tomcat-11.0-doc/config/listeners.html#OpenSSL_Lifecycle_Listener_-_org.apache.catalina.core.OpenSSLLifecycleListener

OpenSSLLifecycleListener is packaged in tomcat-embed-core, but
OpenSSLLifecycleListener requires
org.apache.tomcat.util.net.openssl.panama.OpenSSLLibrary,
which is packaged in org.apache.tomcat:tomcat-coyote-ffm.

The org.apache.tomcat:tomcat-coyote-ffm artifact in maven central has
dependencies on:
org.apache.tomcat:tomcat-coyote
org.apache.tomcat:tomcat-juli
org.apache.tomcat:tomcat-util

Those dependencies are not used with embedded tomcat.  Embedded tomcat uses
separate artifacts in the org.apache.tomcat.embed groupId.

Therefore, it's currently not "easy" to use the OpenSSLLifecycleListener within
embedded tomcat.

It might be possible to use org.apache.tomcat:tomcat-coyote-ffm with embedded
Tomcat by excluding all of its transitive dependencies.
However, this feels "wrong", and would be easy to mess up or overlook,
resulting in non-embedded Tomcat dependencies on the classpath.

I'm filing this issue in hopes that the ffm integration could be packaged in a
way that is easily usable within embedded tomcat.

Perhaps within tomcat-embed-core, or in a separate tomcat-embed-ffm artifact
(with only the needed tomcat-embed-* dependencies)

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to