You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mark F <mf...@knology.net> on 2006/02/07 15:45:59 UTC
tomcat can't find tc library
I've compiled the tc library and placed it in $DAEMON_HOME but for some
reason Tomcat still does not recognize it.
DEBUG main org.apache.catalina.core.AprLifecycleListener -
The Apache Tomcat Native library which allows optimal p
erformance in production environments was not found on the
java.library.path: /usr/share/tomcat/bin
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.catalina.core.AprLifecycleListener.lifecycleEvent(AprLifecycleListener.java:80)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:757)
at org.apache.catalina.startup.Catalina.load(Catalina.java:503)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:247)
at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:262)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.commons.daemon.support.DaemonLoader.load(DaemonLoader.java:160)
Caused by: java.lang.UnsatisfiedLinkError: initialize
at org.apache.tomcat.jni.Library.initialize(Native Method)
at org.apache.tomcat.jni.Library.initialize(Library.java:205
app1:/usr/share/tomcat/bin # ldd libtcnative-1.so
libapr-0.so.0 => /usr/lib64/libapr-0.so.0 (0x0000002a95662000)
librt.so.1 => /lib64/tls/librt.so.1 (0x0000002a95788000)
libm.so.6 => /lib64/tls/libm.so.6 (0x0000002a95890000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x0000002a959e8000)
libnsl.so.1 => /lib64/libnsl.so.1 (0x0000002a95b21000)
libpthread.so.0 => /lib64/tls/libpthread.so.0 (0x0000002a95c37000)
libdl.so.2 => /lib64/libdl.so.2 (0x0000002a95d4b000)
libssl.so.0.9.7 => /usr/lib64/libssl.so.0.9.7 (0x0000002a95e4f000)
libcrypto.so.0.9.7 => /usr/lib64/libcrypto.so.0.9.7
(0x0000002a95f85000)
libc.so.6 => /lib64/tls/libc.so.6 (0x0000002a961b6000)
/lib64/ld-linux-x86-64.so.2 (0x000000552aaaa000)
There doesn't seem to be any reason why it would not find it and use it?
Thanks,
-Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: tomcat can't find tc library
Posted by Markus Schönhaber <ma...@schoenhaber.de>.
Mark F wrote:
> I've compiled the tc library and placed it in $DAEMON_HOME but for some
> reason Tomcat still does not recognize it.
>
> DEBUG main org.apache.catalina.core.AprLifecycleListener -
> The Apache Tomcat Native library which allows optimal p
> erformance in production environments was not found on the
> java.library.path: /usr/share/tomcat/bin
[...]
> app1:/usr/share/tomcat/bin # ldd libtcnative-1.so
> libapr-0.so.0 => /usr/lib64/libapr-0.so.0 (0x0000002a95662000)
> librt.so.1 => /lib64/tls/librt.so.1 (0x0000002a95788000)
> libm.so.6 => /lib64/tls/libm.so.6 (0x0000002a95890000)
> libcrypt.so.1 => /lib64/libcrypt.so.1 (0x0000002a959e8000)
> libnsl.so.1 => /lib64/libnsl.so.1 (0x0000002a95b21000)
> libpthread.so.0 => /lib64/tls/libpthread.so.0 (0x0000002a95c37000)
> libdl.so.2 => /lib64/libdl.so.2 (0x0000002a95d4b000)
> libssl.so.0.9.7 => /usr/lib64/libssl.so.0.9.7 (0x0000002a95e4f000)
> libcrypto.so.0.9.7 => /usr/lib64/libcrypto.so.0.9.7
> (0x0000002a95f85000)
> libc.so.6 => /lib64/tls/libc.so.6 (0x0000002a961b6000)
> /lib64/ld-linux-x86-64.so.2 (0x000000552aaaa000)
>
>
> There doesn't seem to be any reason why it would not find it and use it?
Could it simply be an issue with the file permissons?
Regards
mks
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org