-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Andrew,

On 1/23/13 3:00 PM, Andrew Winter wrote:
> I have been having problems getting comet to work and decided to
> try the APR connector.  So I installed APR from the RPM, version 
> apr-1.3.9-3.el6_1.2.i686.  I followed instructions that I found
> locally and online and compiled up the tomcat-native-1.1.23.

What version of Tomcat are you running? What "locally online
instructions" did you find online? Your Tomcat should have come with
tomcat-native.tar.gz in the bin/ directory. That file should contain a
jni/native/BUILDING file that gives simple instructions.

I have a script to test Tomcat builds that compiles and installs
tcnative. The tcnative part of my script looks like this:

OWD=`pwd`
cd "${BASE_SOURCE_DIR}/output/build/bin/native/tomcat-native-"*/jni/native

./configure --with-apr=/usr/bin --with-ssl=yes
- --with-java-home=/usr/lib/jvm/java-6-sun/

cd "${OWD}"

make -C
"${BASE_SOURCE_DIR}/output/build/bin/native/tomcat-native-"*/jni/native

cp -d
"${BASE_SOURCE_DIR}/output/build/bin/native/tomcat-native-"*/jni/native/.libs/*
"${BASE_SOURCE_DIR}/output/build/bin/native"

All the paths are crazy because I try to build everything in a single
directory so I can blow it all away and re-run it repeatably. But, you
basically run "./configure && make" and then copy the resulting
objects into your java.library.path (which you have as
/usr/local/apr/lib). If I were you, I'd just put them into
CATALINA_HOME/bin so they don't pollute anywhere else.

> It installed in the /usr/local/apr/lib folder.

Hopefully not: tcnative should just produce a series of .so files that
you can drop anywhere you want and then point java.library.path (a JVM
system property) to it.

APR should be installed in /usr/lib and not in /usr/local. Where did
APR end up when you installed the RPM?

> In the tomcat6.conf I set the 
> JAVA_OPTS="-Djava.library.path=/usr/local/apr/lib"

That should be enough to load apr, but tcnative has to load, first.
Where is tcnative*.so?

> But I still get the message at start: 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
> 
> What am I missing?

The good news is that java.library.path is successfully set to
/usr/local/apr/lib. Now -- what's in /usr/local/apr/lib?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEAREIAAYFAlEAjSMACgkQ9CaO5/Lv0PBSUQCfU8dS7yqMUDqXvE6PPoslVrBJ
NPEAoK8U7A4F/+h7YM92tyVJsGe93f0u
=mzoo
-----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