You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by msyber <ms...@gmail.com> on 2013/05/15 18:03:40 UTC

Apache Tomcat Native library was not found on the java.library.path

Hi,

I need your assistance about APR.

OS: Centos 5.9
Tomcat: 6.0.13
JDK: 1.5.0_22
echo $JAVA_HOME /usr/java/jdk1.5.0_22
echo $LD_LIBRARY_PATH /usr/local/apr/lib
ll /usr/local/apr/lib/
total 4372
-rw-r--r-- 1 root root    8367 May 15 16:44 apr.exp
-rw-r--r-- 1 root root 1344040 May 15 16:44 libapr-1.a
-rwxr-xr-x 1 root root     972 May 15 16:44 libapr-1.la
lrwxrwxrwx 1 root root      17 May 15 16:44 libapr-1.so -> libapr-1.so.0.4.6
lrwxrwxrwx 1 root root      17 May 15 16:44 libapr-1.so.0 ->
libapr-1.so.0.4.6
-rwxr-xr-x 1 root root  720241 May 15 16:44 libapr-1.so.0.4.6
-rw-r--r-- 1 root root 1512166 May 15 16:57 libtcnative-1.a
-rwxr-xr-x 1 root root    1055 May 15 16:57 libtcnative-1.la
lrwxrwxrwx 1 root root      23 May 15 16:57 libtcnative-1.so ->
libtcnative-1.so.0.1.10
lrwxrwxrwx 1 root root      23 May 15 16:57 libtcnative-1.so.0 ->
libtcnative-1.so.0.1.10
-rwxr-xr-x 1 root root  849657 May 15 16:57 libtcnative-1.so.0.1.10
drwxr-xr-x 2 root root    4096 May 15 16:57 pkgconfig

catalina.out:

*INFO: The Apache Tomcat Native library which allows optimal performance in
production environments was not found on the java.library.path:
/usr/java/jdk1.5.0_22/jre/lib/i386/client:/usr/java/jdk1.5.0_22/jre/lib/i386:/usr/java/jdk1.5.0_22/jre/../lib/i386:/usr/local/apr/lib
*
May 15, 2013 6:02:44 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
May 15, 2013 6:02:44 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 230 ms
May 15, 2013 6:02:44 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
May 15, 2013 6:02:44 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.13
May 15, 2013 6:02:44 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
May 15, 2013 6:02:44 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
May 15, 2013 6:02:44 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/10  config=null
May 15, 2013 6:02:44 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 347 ms

Any idea?

Thank you in advance for your answer.

Re: Apache Tomcat Native library was not found on the java.library.path

Posted by David kerber <dc...@verizon.net>.
On 5/15/2013 2:55 PM, msyber wrote:
> The issue is the library was not found!

And you want it to be?  You should have said that.  That shows up in my 
logs too, but I don't use it.


>
> 2013/5/15 Mark Thomas<ma...@apache.org>
>
>> NFO: The Apache Tomcat Native library which allows optimal performance in
>>> production environments was not found on the java.library.path:
>>
>


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


Re: Apache Tomcat Native library was not found on the java.library.path

Posted by msyber <ms...@gmail.com>.
2013/5/15 Caldarale, Charles R <Ch...@unisys.com>

> > From: msyber [mailto:msyber@gmail.com]
> > Subject: Re: Apache Tomcat Native library was not found on the
> java.library.path
>
> Don't top post - it's obnoxious and makes the conversation much harder to
> follow.
>
> > Tomcat: 6.0.13
>
> Sadly out of date - over six years old.
>

>> Agree, unfortunatly I have to use this version as on the top the
business apllication support only this version.
>> Yes, I know it is incredible but it is the case.

>
> > JDK: 1.5.0_22
>
> Not supported.
>
>> Idem

>
> > The issue is the library was not found!
>
> Are you trying to use a 64-bit JVM with a 32-bit .so, or vice versa?  The
> mode of the JVM must match the mode of the APR library you installed.

>> Oh yes, it is a good point as I am on a 64 bits system and use a JDK
32bits.
>> I compiled APR 1.4.6 this way:
>> # ./configure --build=i686-pc-linux-gnu "CFLAGS=-m32" "CXXFLAGS=-m32"
"LDFLAGS=-m32"
>> # make && make install
>> # objdump -f /usr/local/apr/lib/libapr-1.a | grep ^architecture
>> architecture: i386:x86-64, flags 0x00000011:
>>
>> and then compiled native
>> # ./configure --build=i686-pc-linux-gnu "CFLAGS=-m32" "CXXFLAGS=-m32"
"LDFLAGS=-m32" --with-apr=/usr/local/apr/bin/apr-1-config --with-ssl=no
>> # make && make install
>> # objdump -f /usr/local/apr/lib/libtcnative-1.a | grep ^architecture
>> architecture: i386:x86-64, flags 0x00000011:
>>
>> After restarted Tomcat, same error. I missed something?


>
>
You really, really, really should move up to a recent version of Tomcat and
> APR and try it again.
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail and
> its attachments from all computers.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

RE: Apache Tomcat Native library was not found on the java.library.path

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: msyber [mailto:msyber@gmail.com] 
> Subject: Re: Apache Tomcat Native library was not found on the java.library.path

Don't top post - it's obnoxious and makes the conversation much harder to follow.

> Tomcat: 6.0.13

Sadly out of date - over six years old.

> JDK: 1.5.0_22

Not supported.

> The issue is the library was not found!

Are you trying to use a 64-bit JVM with a 32-bit .so, or vice versa?  The mode of the JVM must match the mode of the APR library you installed.

You really, really, really should move up to a recent version of Tomcat and APR and try it again.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


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


Re: Apache Tomcat Native library was not found on the java.library.path

Posted by msyber <ms...@gmail.com>.
The issue is the library was not found!

2013/5/15 Mark Thomas <ma...@apache.org>

> NFO: The Apache Tomcat Native library which allows optimal performance in
> > production environments was not found on the java.library.path:
>

Re: Apache Tomcat Native library was not found on the java.library.path

Posted by Mark Thomas <ma...@apache.org>.
On 15/05/2013 17:03, msyber wrote:
> Hi,
> 
> I need your assistance about APR.
> 
> OS: Centos 5.9
> Tomcat: 6.0.13
> JDK: 1.5.0_22
> echo $JAVA_HOME /usr/java/jdk1.5.0_22
> echo $LD_LIBRARY_PATH /usr/local/apr/lib
> ll /usr/local/apr/lib/
> total 4372
> -rw-r--r-- 1 root root    8367 May 15 16:44 apr.exp
> -rw-r--r-- 1 root root 1344040 May 15 16:44 libapr-1.a
> -rwxr-xr-x 1 root root     972 May 15 16:44 libapr-1.la
> lrwxrwxrwx 1 root root      17 May 15 16:44 libapr-1.so -> libapr-1.so.0.4.6
> lrwxrwxrwx 1 root root      17 May 15 16:44 libapr-1.so.0 ->
> libapr-1.so.0.4.6
> -rwxr-xr-x 1 root root  720241 May 15 16:44 libapr-1.so.0.4.6
> -rw-r--r-- 1 root root 1512166 May 15 16:57 libtcnative-1.a
> -rwxr-xr-x 1 root root    1055 May 15 16:57 libtcnative-1.la
> lrwxrwxrwx 1 root root      23 May 15 16:57 libtcnative-1.so ->
> libtcnative-1.so.0.1.10
> lrwxrwxrwx 1 root root      23 May 15 16:57 libtcnative-1.so.0 ->
> libtcnative-1.so.0.1.10
> -rwxr-xr-x 1 root root  849657 May 15 16:57 libtcnative-1.so.0.1.10
> drwxr-xr-x 2 root root    4096 May 15 16:57 pkgconfig
> 
> catalina.out:
> 
> *INFO: The Apache Tomcat Native library which allows optimal performance in
> production environments was not found on the java.library.path:
> /usr/java/jdk1.5.0_22/jre/lib/i386/client:/usr/java/jdk1.5.0_22/jre/lib/i386:/usr/java/jdk1.5.0_22/jre/../lib/i386:/usr/local/apr/lib
> *
> May 15, 2013 6:02:44 PM org.apache.coyote.http11.Http11Protocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> May 15, 2013 6:02:44 PM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 230 ms
> May 15, 2013 6:02:44 PM org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> May 15, 2013 6:02:44 PM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/6.0.13
> May 15, 2013 6:02:44 PM org.apache.coyote.http11.Http11Protocol start
> INFO: Starting Coyote HTTP/1.1 on http-8080
> May 15, 2013 6:02:44 PM org.apache.jk.common.ChannelSocket init
> INFO: JK: ajp13 listening on /0.0.0.0:8009
> May 15, 2013 6:02:44 PM org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/10  config=null
> May 15, 2013 6:02:44 PM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 347 ms
> 
> Any idea?

What is the problem? I don't see any ERROR or WARNING level messages in
that output, just INFO messages.

Mark

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