On 02/08/2019 10:12, Polina Georgieva wrote:
> Hi all,
> 
> Would you please clarify the compatibility restrictions (if any) between
> the Apache Tomcat Native Lib and its dependencies on one hand and between
> Apache Tomcat server and the native lib.  My questions are based on the
> information available here: http://tomcat.apache.org/native-doc/
> 
> 1)     Is it possible (or at all advisable) to build the tc-native once and
> then use it on a system that is not necessarily with the same versions of
> dependencies or JVM as the ones it was built with? Or for productive
> systems it is recommend always to compile on the actual system that the lib
> will be running on. I’m specifically interested for Linux environment.

The specific JVM version isn't that important. It will certainly work
with any current JVM and probably any JVM back at least as far as Java
1.3. You should be fine building it with one JVM and using it with another.

Generally, you want to compile against the versions of OpenSSL and APR
that you plan to use.

> 2)     Are there strict requirements for the dependencies versions, meaning
> Tomcat Native Lib version X works only with APR version Y, OpenSSL version
> Z, etc. ?

OpenSSL
Needs to be one of the currently supported versions. We tend to remove
the workarounds for features not present in older versions once they are
no longer supported.

APR
We try and build with the latest version. 1.7.x and 1.6.x should both be
fine. It will probably work with 1.5.x as well and maybe further back too.

> 3)     Are there any strict compatibility mapping between the  native lib
> version and the Tomcat server version? In other words could every Tomcat
> version work smoothly with the latest tc-native version?

You should be able to use the current Tomcat-Native library with any
previous Tomcat version. The converse is not true. Each Tomcat version
has a minimum required Tomcat Native version and a minimum recommended
version. You'll see log errors/warnings if you start Tomcat with a
version of the Native library that does not meet these minimums.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to