Tobias,

On 4/4/16 4:49 AM, Tobias Soloschenko wrote:
> I just figured out that this issue might depend on the file names of APR
> 1.5.2 - if I create links in the lib folder that reflects the names of
> 1.4.8 - tomcat throws an exception that the version of APR can not be
> resolved:
> 
> ln -s libapr-1.0.dylib libtcnative-1.0.dylib
> 
> ln -s libapr-1.a libtcnative-1.a
> 
> ln -s libapr-1.dylib libtcnative-1.dylib
> 
> ln -s libapr-1.la libtcnative-1.la
> 
> 
> Exception:
> 
> 04-Apr-2016 10:42:39.579 WARNING [main]
> org.apache.catalina.core.AprLifecycleListener.init The APR based Apache
> Tomcat Native library failed to load. The error reported was
> [org.apache.tomcat.jni.Library.version(I)I]

That wasn't going to work.

APR and tcnative are different libraries. Copying one to the other is
about as useful as trying to load your /etc/passwd file as a shared library.

When you set JAVA_OPTS:

> "export
> JAVA_OPTS=-Djava.library.path=/usr/local/Cellar/apr/1.5.2/libexec/lib"
> 
> but Tomcat can not find it at this location.

How did you start Tomcat after that? What files are in
.../1.5.2/libexec/lib? What is in your "TCNATIVE_PRIV_INCLUDES"
directory? Where do you configure that for loading into Tomcat?

-chris

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

Reply via email to