-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 8/20/2014 8:35 AM, Neil Aggarwal wrote:
> Mark:
> 
>> CATALINA_OPTS="-Djava.library.path=/usr/local/apr/lib"
> 
> I already have this in my startup script: 
> CATALINA_OPTS="-Djava.library.path=/usr/local/apr/lib
> -Djava.awt.headless=true -Xmx2048m"
> 
> And the log has this:
> 
> INFO: The APR based Apache Tomcat Native library which allows
> optimal performance in production environments was not found on the
> java.library.path: / usr/local/apr/lib
> 
> I think /usr/local/apr/lib is already in the java.library.path
> variable.
> 
> Thanks, Neil
> 

Neil,

The ld.so.conf.d information I gave is completely wrong it seems.

Java doesn't appear to respect ld.so.conf.d configuration files,
because when I placed the apr.conf in that directory and ran ldconfig,
I got the following:

The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path: /usr/java
/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib

However, adding the following line to setenv.sh worked.

CATALINA_OPTS="-Djava.library.path=/usr/local/apr/lib"

Loaded APR based Apache Tomcat Native library 1.1.31
using APR version 1.5.1.

I'm running the following environment:

Fedora 20 64 bit latest updates

apr-util-1.5.3-1.fc20.x86_64
apr-util-devel-1.5.3-1.fc20.x86_64
apr-devel-1.5.1-1.fc20.x86_64
apr-util-ldap-1.5.3-1.fc20.x86_64
apr-1.5.1-1.fc20.x86_64
openssl-libs-1.0.1e-39.fc20.i686
openssl-1.0.1e-39.fc20.x86_64
openssl-libs-1.0.1e-39.fc20.x86_64
openssl-devel-1.0.1e-39.fc20.x86_64

Oracle JRE/JDK 1.7.0_67 64 bit
Tomcat 8 built from source - revision 1619129

I built and installed the library with:

./configure --with-apr=/usr --with-ssl=/usr
make
make install

About the only difference I see is that the configure command is
different. In CentOS 6.5 I use the same configure command as I listed
above. Does CentOS 7 change how APR is set up? I don't know since I've
not installed CentOS 7 yet.

. . . just my two cents
/mde/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (MingW32)

iQEcBAEBAgAGBQJT9My1AAoJEEFGbsYNeTwtXjAH/3rsdil3Oz+Wcu8FQI5fvMG0
R0VeFGJkV6JMVOomQ9FixEo8TX9Tvm0i6ks6TgCbc+AFOCzm1dbek3qXodldfMWi
t61m42+a5p8swxz/zpnK9l48Z3g3rMyFx1VuHS9i0kLbSF6imXsFy8Kr22OyIG4B
KT7UdeqLAv5oJchYbklAmJZs+sqzsFXFRZp50rYYK1SRAMOIYIjx7Vt/uRZlodZa
NbdwuVCnvEfgeT1y3VLpHNi9nU0xrajaGe4/d/itnvVjzD00dUPWbfgy5miANa6h
5VwsznyPDlmDCLO3IG/fsQUbOWngLrFt62vOruJQysb3aGCDOu61k66jtS3WWAM=
=pzW8
-----END PGP SIGNATURE-----

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

Reply via email to