The Apache Tomcat Native Library is an optional component for use with Apache Tomcat that allows Tomcat to use certain native resources for performance, compatibility, etc.
Specifically, the Apache Tomcat Native Library gives Tomcat access to the Apache Portable Runtime (APR) library's network connection (socket) implementation and random-number generator. See the Apache Tomcat documentation for more information on how to configure Tomcat to use the APR connector.
Features of the APR connector:
Select one of the links from the navigation menu (to the left) to drill down to the more detailed documentation that is available. Each available manual is described in more detail below.
The Apache Tomcat team is proud to announce the immediate availability of Tomcat Native 1.1.32 Stable.
The sources and the binaries for selected platforms are available from the Download page.
Please see the ChangeLog for a full list of changes.
Build tc-native requires three components to be installed:
In debian based Linux those dependencies could be installed by something like:
In rpm based Linux those dependencies could be installed by something like:
On all the POSIX systems (Linux, Solaris, HP-UX, AIX etc...) a well-known
configure and make is used to build tc-native.
In the jni/native runs:
to read the description of all the parameters.
to create the includes and makefiles to be able to build tc-native.
Where:
$HOME/APR is something like /usr/bin/apr-1-config or the path where apr is
installed.
$JAVA_HOME is something /home/jfclere/JAVA/jdk1.5.0_09 path to a JDK
installation. Any JDK should work but it is advisable to use the same
JVM version the JVM you use with Tomcat.
$HOME/OPENSSL is the path where OpenSSL is installed.
$CATALINA_HOME is the path where the produced libraries will be
installed. Something like $HOME/apache-tomcat-6.0.16/
The configure is able to guess most of OpenSSL standard installations.
So most of the time the following will be enough:
To build the libraries and install them:
The libraries will be found in $CATALINA_HOME/lib
Download the windows sources of tc-native and extract them.
Download OpenSSL sources (See Binary Distributions) OpenSSL is a crypto software so check if you are allowed to download it. If not you can still use tc-native without SSL.
Download APR sources for Windows. (See Download) Extract them in jni and rename the apr-1.x.y directory to apr.
Use MS Visual Studio to open the workspace of the APR sources and build the library (libapr).
Use MS Visual Studio to open the workspace of the tc-native sources, adjust the OpenSSL includes and libraries location change the name of the libraries libeay32 and libssleay to libeay32MT and libssleayMT and build the tcn-native library. That should create a tcnative-1.dll.
Apache Tomcat comes with the AprLifecycleListener enabled
by default. Still, you should check your conf/server.xml
to ensure that something like the following is present, and uncommented:
Please see the Apache Tomcat documentation for configuration specifics.
Edit $CATALINA_HOME/bin/setenv.sh (creating the file if necessary) and add the path to the tc-native libraries to LD_LIBRARY_PATH. Something like:
Start tomcat and check for the messages like this ones:
Refer to the tomcat documentation to configure the connectors (See Tomcat6.0.x and Tomcat5.5.x)
Edit $CATALINA_BASE\bin\setenv.bat (creating the file if necessary) and add the path to the tc-native libraries, apr and OpenSSL to PATH. For example:
Start tomcat and check for the messages like this ones:
wrap
| Attribute | Description |
|---|---|
|
|
This paragraph has not been written yet, but you can contribute to it.
The Apache Tomcat team is proud to announce the immediate availability of Tomcat Native 1.1.16. This is a stable release adding some bug fixes.
The Apache Tomcat team is proud to announce the immediate availability of Tomcat Native 1.1.15. This is a stable release adding some bug fixes.
The Apache Tomcat team is proud to announce the immediate availability of Tomcat Native 1.1.14. This is a stable release adding some bug fixes.
The Apache Tomcat team is proud to announce the immediate availability of Tomcat Native 1.1.13. This is a stable release adding few new features and some bug fixes.
Please see the ChangeLog for a full list of changes.
The Apache Tomcat team is proud to announce the immediate availability of Tomcat Native 1.1.18. This is a stable release adding some bug fixes.
Please see the ChangeLog for a full list of changes.
The Apache Tomcat team is proud to announce the immediate availability of Tomcat Native 1.1.20. This is a stable release adding some bug fixes.
The Apache Tomcat team is proud to announce the immediate availability of Tomcat Native 1.1.19. This is a stable release adding some bug fixes.
Please see the ChangeLog for a full list of changes.
The Apache Tomcat team is proud to announce the immediate availability of Tomcat Native 1.1.22. This is a stable release adding some bug fixes.
Please see the ChangeLog for a full list of changes.
The Apache Tomcat team is proud to announce the immediate availability of Tomcat Native 1.1.24. This is a feature-add release adding support for per-socket Poller timeouts.
Please see the ChangeLog for a full list of changes.
The Apache Tomcat team is proud to announce the immediate availability of Tomcat Native 1.1.23. This is a stable release adding some bug fixes and experimental support for OCSP and PKCS12 certificates.
Please see the ChangeLog for a full list of changes.
The Apache Tomcat team is proud to announce the immediate availability of Tomcat Native 1.1.29. This is a bug fixing release.
The Apache Tomcat team is proud to announce the immediate availability of Tomcat Native 1.1.28. This is a bug fixing release.
Please see the ChangeLog for a full list of changes.
The Apache Tomcat team is proud to announce the immediate availability of Tomcat Native 1.1.27. This is a bug fixing release.
Please see the ChangeLog for a full list of changes.
The Apache Tomcat team is proud to announce the immediate availability of Tomcat Native 1.1.32. This release add support for TLSv1.1 and TLSv1.2 and includes Windows binaries built with OpenSSL 1.0.1j and APR 1.5.1.
The Apache Tomcat team is proud to announce the immediate availability of Tomcat Native 1.1.31. This is a bug fixing release and includes Windows binaries built with OpenSSL 1.0.1h.
The Apache Tomcat team is proud to announce the immediate availability of Tomcat Native 1.1.30. This is a bug fixing release with added support for EC ciphers if supported by OpenSSL.
This is the Changelog for Tomcat Native. This changelog does not contain all updates and fixes to the Tomcat Native (yet). It should contain fixes made only after December 19th 2007, when the new documentation project for Tomcat Native was started.
fipsModeGet
function to get the current state of OpenSSL FIPS mode.
ssl_ocsp_request.
Patch provided by Aristotelis. (schultz)
s->net to
avoid SIGSEGV in situations where it appears a socket has been recycled.
(schultz)