tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rafael Caceres <rcace...@aasa.com.pe>
Subject Re: Tomcat 5.5.23 with Sun JDK 1.5.0_11 can't find the Apache Tomcat Native library
Date Fri, 04 May 2007 19:01:32 GMT
Tried copying the 6 files (5 from ./native/libs, libtcnative-1a
from ./native) to the $JAVA_HOME/jre/lib/i386/client directory. Did not
set LD_LIBRARY_PATH on the startup script now. Yet the same message
appears on the catalina.out log:
INFO: The Apache Tomcat Native library which allows optimal performance
in production environments was not found on the
java.library.path: /usr/local/jdk1.5/jre/lib/i386/client:/usr/local/jdk1.5/jre/lib/i386

where /usr/local/jdk1.5/jre/lib/i386/client, where the library files are
is listed. This is weird.

All the tests are not done using "sh buildconf" first, but starting from
"./configure ...". I'll test if doing a buildconf helps.

On Thu, 2007-05-03 at 22:12 +0100, Orlando Reis wrote:
> Try de dir where you compiled the files, where you did:
> sh buildconf; ./configure and make
> There is a directory .libs in there you will find the native library's copy
> them to your $JAVA_HOME/jre/lib/i386/client
> 
> There should be 6 files:
> libtcnative-1.a   libtcnative-1.lai  libtcnative-1.so.0
> libtcnative-1.la  libtcnative-1.so   libtcnative-1.so.0.1.9
> 
> cp .libs/* $JAVA_HOME/jre/lib/i386/client
> 
> Where JAVA_HOME is where you have the java that is going to be used by
> tomcat.
> I prefer to do it this way in case you have several versions of tomcat with
> different java versions which is my case. "A developers need is a developers
> need" ;)
> 
> 
> On 5/3/07, Rafael Caceres <rcaceres@aasa.com.pe> wrote:
> >
> > Hi all,
> > The Apache Tomcat Native library was built from the untarred source
> > on /usr/local/apache-tomcat-5.5.23/bin/tomcat-native-1.1.6-src/jni/native
> > using:
> > ./configure --with-apr=/usr/local/apache2/bin/apr-config --with-ssl
> > --prefix=/usr/local/apr;make;make install
> >
> > On startup the Tomcat logs show:
> > INFO: The Apache Tomcat Native library which allows optimal performance
> > in production environments was not found on the
> > java.library.path:
> > /usr/local/apr/lib:/usr/local/apache2/lib:/lib/tls:/lib:/usr/lib:/usr/local/jdk1.5.0_11/jre/lib/i386/client:/usr/local/jdk1.5.0_11/jre/lib/i386
> >
> > The above java.library.path contains all the library directories
> > indicated by doing   ldd /usr/local/apr/lib/libtcnative-1.so
> > Setting java.library.path though changing LD_LIBRARY_PATH (and exporting
> > LD_LIBRARY_PATH) or by passing -Djava.library.path=library:paths to the
> > jsvc start as indicated on posts to this list and the APR docs, do not
> > solve the problem.
> >
> > Any pointers will be appreciated,
> > Rafael
> >
> >
> >
> > Analizado por ThMailServer para Linux.
> >
> > ---------------------------------------------------------------------
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
> 
> 
> Analizado por ThMailServer para Linux.
> 
> 
> !DSPAM:463a4eb6170101117519316!


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


Mime
View raw message