You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Rainer Jung <ra...@kippdata.de> on 2026/05/04 18:14:37 UTC
Re: (tomcat) branch main updated: Enhance version.sh and version.bat output to display APR, OpenSSL, and third-party library versions (#919)
Hi Coty,
the new feature throws an exception when bin/version.sh (probably also
version.bat) is called with Java 22+ (FFM support) but no libssl.so
installed (for install not libssl-dev package).
See my message in the 11.0.23 vote thread.
Best regards,
Rainer
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: (tomcat) branch main updated: Enhance version.sh and version.bat output to display APR, OpenSSL, and third-party library versions (#919)
Posted by Rémy Maucherat <re...@apache.org>.
On Mon, May 4, 2026 at 8:15 PM Rainer Jung <ra...@kippdata.de> wrote:
>
> Hi Coty,
>
> the new feature throws an exception when bin/version.sh (probably also
> version.bat) is called with Java 22+ (FFM support) but no libssl.so
> installed (for install not libssl-dev package).
>
> See my message in the 11.0.23 vote thread.
Ok, I guess we all have OpenSSL somewhere in the OS, so it worked. Bad luck.
Rémy
> Best regards,
>
> Rainer
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: (tomcat) branch main updated: Enhance version.sh and version.bat output to display APR, OpenSSL, and third-party library versions (#919)
Posted by Coty Sutherland <cs...@apache.org>.
Rainer,
On Tuesday, May 5, 2026, Rainer Jung <ra...@kippdata.de> wrote:
> Am 04.05.26 um 20:21 schrieb Coty Sutherland:
>
>> Hi Rainer,
>>
>> Oh, shoot. Thanks for catching that. I'll look into it ASAP.
>>
>
> I have some additional comments. Sorry about not thinking earlier about it.
>
Ok, I got rid of he stack trace by changing the log level to debug rather
than error like the AprLifecycleListener does.
>
> - APR, FFM: I think ServerInfo.main() tries to load APR and OpenSSL and
> shows the resulting info. That is not necessarily the same info, that
> describes the runtime status of Tomcat. For Tomcat it depends on whether
> and how the corresponding listeners are configured in server.xml. Since the
> nice thing about version.sh is, that it is simple and does not need to
> parse server.xml, IMHO it would be best to surround the APR and OpenSSL
> info output with a short text, that informs the user, that these features
> are available, but may not be activated in server.xml.
>
> - third-party jars: A future improvement could be, to also check
> catalina.base/lib if catalina.base != catalina.home. In that case, Tomcat
> jars located there would overwrite the ones shipped in catalina.home
> (Patching or old forgotten patches) and third-party libs would be used just
> like the ones in catalina.home (see common.loader in
> conf/catalina.properties(, Another info could be the number of classes
> deployed directly in catalina.home and catalina.base respectively (in an
> exploded class tree). The latter is very uncommon nowadays but could again
> be used for patching a few classes.
>
Good ideas, I'll add them to my Todo list :)
>
> Thanks for the improvement nevertheless!
>
You're welcome :)
>
> Best regards,
>
> Rainer
>
> On Mon, May 4, 2026 at 2:15 PM Rainer Jung <ra...@kippdata.de>
>> wrote:
>>
>> Hi Coty,
>>>
>>> the new feature throws an exception when bin/version.sh (probably also
>>> version.bat) is called with Java 22+ (FFM support) but no libssl.so
>>> installed (for install not libssl-dev package).
>>>
>>> See my message in the 11.0.23 vote thread.
>>>
>>> Best regards,
>>>
>>> Rainer
>>>
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>
Re: (tomcat) branch main updated: Enhance version.sh and version.bat output to display APR, OpenSSL, and third-party library versions (#919)
Posted by Rainer Jung <ra...@kippdata.de>.
Am 04.05.26 um 20:21 schrieb Coty Sutherland:
> Hi Rainer,
>
> Oh, shoot. Thanks for catching that. I'll look into it ASAP.
I have some additional comments. Sorry about not thinking earlier about it.
- APR, FFM: I think ServerInfo.main() tries to load APR and OpenSSL and
shows the resulting info. That is not necessarily the same info, that
describes the runtime status of Tomcat. For Tomcat it depends on whether
and how the corresponding listeners are configured in server.xml. Since
the nice thing about version.sh is, that it is simple and does not need
to parse server.xml, IMHO it would be best to surround the APR and
OpenSSL info output with a short text, that informs the user, that these
features are available, but may not be activated in server.xml.
- third-party jars: A future improvement could be, to also check
catalina.base/lib if catalina.base != catalina.home. In that case,
Tomcat jars located there would overwrite the ones shipped in
catalina.home (Patching or old forgotten patches) and third-party libs
would be used just like the ones in catalina.home (see common.loader in
conf/catalina.properties(, Another info could be the number of classes
deployed directly in catalina.home and catalina.base respectively (in an
exploded class tree). The latter is very uncommon nowadays but could
again be used for patching a few classes.
Thanks for the improvement nevertheless!
Best regards,
Rainer
> On Mon, May 4, 2026 at 2:15 PM Rainer Jung <ra...@kippdata.de> wrote:
>
>> Hi Coty,
>>
>> the new feature throws an exception when bin/version.sh (probably also
>> version.bat) is called with Java 22+ (FFM support) but no libssl.so
>> installed (for install not libssl-dev package).
>>
>> See my message in the 11.0.23 vote thread.
>>
>> Best regards,
>>
>> Rainer
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: (tomcat) branch main updated: Enhance version.sh and version.bat output to display APR, OpenSSL, and third-party library versions (#919)
Posted by Coty Sutherland <cs...@apache.org>.
Hi Rainer,
Oh, shoot. Thanks for catching that. I'll look into it ASAP.
Cheers,
On Mon, May 4, 2026 at 2:15 PM Rainer Jung <ra...@kippdata.de> wrote:
> Hi Coty,
>
> the new feature throws an exception when bin/version.sh (probably also
> version.bat) is called with Java 22+ (FFM support) but no libssl.so
> installed (for install not libssl-dev package).
>
> See my message in the 11.0.23 vote thread.
>
> Best regards,
>
> Rainer
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>