Why tcnative with APR?
It is an accelerator component that can improve performance.
It provides us a bridge from the Java to the C environment, thus enabling the OpenSSL environment and some other goodies for us.
1. Install the java development kit, also the 64 bits version from the main OI-repository, category 'Development/Java'.
- Both these packages are installed in /usr/jdk/instances/jdk1.6.0
2. Install the latest OpenSSL package library/security/openssl
3. Install the latest library/apr-13 and library/apr-util-13
(N.B. Libtool comes with the apr-13 installation)
After installation of apr-13, you should open the file /usr/apr/1.3/build/amd64/libtool and change the path for 'echo' from /usr/ucb/echo to /usr/gnu/bin/echo
(This comment for echo goes for compiling 32-bits as well).
Why is compilation with an external Tomcat tarball necessary? That is because the OpenIndiana package for Tomcat does not contain source code for tcnative, so you might as well grab the latest Tomcat binaries, where tcnative source is included.
However, for this tcnative compilation process we cannot use gcc; the compilation process keeps terminating with too many errors. So we do need the Sun compiler to do that job. So download and install SunStudio-12.3 and bring it into your PATH.
Then download the Tomcat binary package (version 6 or 7). Let's assume that after installation, Tomcat lives in /opt/tomcat-7.