You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by blargy <zm...@hotmail.com> on 2010/03/19 18:43:05 UTC
APR Question
I was able to build and install APR (from the Tomcat bin dir) into
/usr/local/apr/lib and I added the following JVM argument when starting
Tomcat: -Djava.library.path=/usr/local/apr/lib/
However I am still seeing this warning message even though the apr lib
directory exists:
[java] 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
[root]# ls -al /usr/local/apr/lib
total 4288
drwxr-xr-x 3 root root 4096 Mar 19 10:36 .
drwxr-xr-x 6 root root 4096 Mar 18 22:48 ..
-rw-r--r-- 1 root root 8130 Mar 18 22:55 apr.exp
-rw-r--r-- 1 root root 1235262 Mar 18 22:55 libapr-1.a
-rwxr-xr-x 1 root root 838 Mar 18 22:55 libapr-1.la
lrwxrwxrwx 1 root root 17 Mar 18 22:55 libapr-1.so -> libapr-1.so.0.3.9
lrwxrwxrwx 1 root root 17 Mar 18 22:55 libapr-1.so.0 ->
libapr-1.so.0.3.9
-rwxr-xr-x 1 root root 665670 Mar 18 22:55 libapr-1.so.0.3.9
-rw-r--r-- 1 root root 1563482 Mar 19 10:36 libtcnative-1.a
-rwxr-xr-x 1 root root 921 Mar 19 10:36 libtcnative-1.la
lrwxrwxrwx 1 root root 23 Mar 19 10:36 libtcnative-1.so ->
libtcnative-1.so.0.1.16
lrwxrwxrwx 1 root root 23 Mar 19 10:36 libtcnative-1.so.0 ->
libtcnative-1.so.0.1.16
-rwxr-xr-x 1 root root 874847 Mar 19 10:36 libtcnative-1.so.0.1.16
drwxr-xr-x 2 root root 4096 Mar 19 10:36 pkgconfig
Am I missing some files or something? Is there any other configuration I
need to do in Tomcat?
--
View this message in context: http://old.nabble.com/APR-Question-tp27951002p27951002.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: APR Question
Posted by blargy <zm...@hotmail.com>.
I also followed these instructions with no such luck:
http://tomcat.apache.org/native-doc/ even though the files are indeed
located in /opt/tomcat/lib
[java] INFO: The Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path: /opt/tomcat/lib
What files is this looking for?
blargy wrote:
>
> I was able to build and install APR (from the Tomcat bin dir) into
> /usr/local/apr/lib and I added the following JVM argument when starting
> Tomcat: -Djava.library.path=/usr/local/apr/lib/
>
> However I am still seeing this warning message even though the apr lib
> directory exists:
>
> [java] 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
>
> [root]# ls -al /usr/local/apr/lib
> total 4288
> drwxr-xr-x 3 root root 4096 Mar 19 10:36 .
> drwxr-xr-x 6 root root 4096 Mar 18 22:48 ..
> -rw-r--r-- 1 root root 8130 Mar 18 22:55 apr.exp
> -rw-r--r-- 1 root root 1235262 Mar 18 22:55 libapr-1.a
> -rwxr-xr-x 1 root root 838 Mar 18 22:55 libapr-1.la
> lrwxrwxrwx 1 root root 17 Mar 18 22:55 libapr-1.so ->
> libapr-1.so.0.3.9
> lrwxrwxrwx 1 root root 17 Mar 18 22:55 libapr-1.so.0 ->
> libapr-1.so.0.3.9
> -rwxr-xr-x 1 root root 665670 Mar 18 22:55 libapr-1.so.0.3.9
> -rw-r--r-- 1 root root 1563482 Mar 19 10:36 libtcnative-1.a
> -rwxr-xr-x 1 root root 921 Mar 19 10:36 libtcnative-1.la
> lrwxrwxrwx 1 root root 23 Mar 19 10:36 libtcnative-1.so ->
> libtcnative-1.so.0.1.16
> lrwxrwxrwx 1 root root 23 Mar 19 10:36 libtcnative-1.so.0 ->
> libtcnative-1.so.0.1.16
> -rwxr-xr-x 1 root root 874847 Mar 19 10:36 libtcnative-1.so.0.1.16
> drwxr-xr-x 2 root root 4096 Mar 19 10:36 pkgconfig
>
> Am I missing some files or something? Is there any other configuration I
> need to do in Tomcat?
>
>
>
--
View this message in context: http://old.nabble.com/APR-Question-tp27951002p27951009.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: APR Question
Posted by "Anthony J. Biacco" <ab...@formatdynamics.com>.
How did you configure apr, i.e. what's your configure line?
Are you mixing 32-bit with 64-bit between your libraries and JVM?
-Tony
---------------------------
Manager, IT Operations
Format Dynamics, Inc.
303-573-1800x27
abiacco@formatdynamics.com
http://www.formatdynamics.com
> -----Original Message-----
> From: blargy [mailto:zmanods@hotmail.com]
> Sent: Friday, March 19, 2010 11:43 AM
> To: users@tomcat.apache.org
> Subject: APR Question
>
>
> I was able to build and install APR (from the Tomcat bin dir) into
> /usr/local/apr/lib and I added the following JVM argument when
starting
> Tomcat: -Djava.library.path=/usr/local/apr/lib/
>
> However I am still seeing this warning message even though the apr lib
> directory exists:
>
> [java] 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
>
> [root]# ls -al /usr/local/apr/lib
> total 4288
> drwxr-xr-x 3 root root 4096 Mar 19 10:36 .
> drwxr-xr-x 6 root root 4096 Mar 18 22:48 ..
> -rw-r--r-- 1 root root 8130 Mar 18 22:55 apr.exp
> -rw-r--r-- 1 root root 1235262 Mar 18 22:55 libapr-1.a
> -rwxr-xr-x 1 root root 838 Mar 18 22:55 libapr-1.la
> lrwxrwxrwx 1 root root 17 Mar 18 22:55 libapr-1.so -> libapr-
> 1.so.0.3.9
> lrwxrwxrwx 1 root root 17 Mar 18 22:55 libapr-1.so.0 ->
> libapr-1.so.0.3.9
> -rwxr-xr-x 1 root root 665670 Mar 18 22:55 libapr-1.so.0.3.9
> -rw-r--r-- 1 root root 1563482 Mar 19 10:36 libtcnative-1.a
> -rwxr-xr-x 1 root root 921 Mar 19 10:36 libtcnative-1.la
> lrwxrwxrwx 1 root root 23 Mar 19 10:36 libtcnative-1.so ->
> libtcnative-1.so.0.1.16
> lrwxrwxrwx 1 root root 23 Mar 19 10:36 libtcnative-1.so.0 ->
> libtcnative-1.so.0.1.16
> -rwxr-xr-x 1 root root 874847 Mar 19 10:36 libtcnative-1.so.0.1.16
> drwxr-xr-x 2 root root 4096 Mar 19 10:36 pkgconfig
>
> Am I missing some files or something? Is there any other configuration
> I
> need to do in Tomcat?
>
>
> --
> View this message in context: http://old.nabble.com/APR-Question-
> tp27951002p27951002.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: APR Question
Posted by "Anthony J. Biacco" <ab...@formatdynamics.com>.
This kind of tomcat log message would tell you it's running:
Mar 18, 2010 3:01:16 PM org.apache.catalina.core.AprLifecycleListener
init
INFO: Loaded APR based Apache Tomcat Native library 1.1.19.
The Tomcat 6.0.26 branch is considered stable.
-Tony
---------------------------
Manager, IT Operations
Format Dynamics, Inc.
303-573-1800x27
abiacco@formatdynamics.com
http://www.formatdynamics.com
> -----Original Message-----
> From: blargy [mailto:zmanods@hotmail.com]
> Sent: Sunday, March 21, 2010 10:38 AM
> To: users@tomcat.apache.org
> Subject: RE: APR Question
>
>
> Thanks for the replies. I am running a 64-bit JVM so that may very
well
> be
> the case.
>
> I updated my tomcat installation from 5.5.28 to 6.0.26 and
> recompiled/installed the native library from that binary distribution
> and it
> seems to be working now.
>
> Is there any way I can do to tell if APR is running (other than the
> absence
> of the warning message). Also is Tomcat 6.0.26 a stable version?
>
> Thanks
>
>
>
> n828cl wrote:
> >
> >> From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com]
> >> Subject: RE: APR Question
> >>
> >> I thought the library name was supposed to be just tcnative-1.so,
> but I
> >> don't have a Linux system available at the moment to check.
> >
> > Sorry, just looked at the code; libtcnative-1.so is also acceptable.
> >
> > The most likely cause is the 32- vs 64-bit mismatch suggested by
Tony
> B.
> >
> > - 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.
> >
> >
> >
>
> --
> View this message in context: http://old.nabble.com/APR-Question-
> tp27951002p27976998.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: APR Question
Posted by blargy <zm...@hotmail.com>.
Thanks for the replies. I am running a 64-bit JVM so that may very well be
the case.
I updated my tomcat installation from 5.5.28 to 6.0.26 and
recompiled/installed the native library from that binary distribution and it
seems to be working now.
Is there any way I can do to tell if APR is running (other than the absence
of the warning message). Also is Tomcat 6.0.26 a stable version?
Thanks
n828cl wrote:
>
>> From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com]
>> Subject: RE: APR Question
>>
>> I thought the library name was supposed to be just tcnative-1.so, but I
>> don't have a Linux system available at the moment to check.
>
> Sorry, just looked at the code; libtcnative-1.so is also acceptable.
>
> The most likely cause is the 32- vs 64-bit mismatch suggested by Tony B.
>
> - 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.
>
>
>
--
View this message in context: http://old.nabble.com/APR-Question-tp27951002p27976998.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: APR Question
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com]
> Subject: RE: APR Question
>
> I thought the library name was supposed to be just tcnative-1.so, but I
> don't have a Linux system available at the moment to check.
Sorry, just looked at the code; libtcnative-1.so is also acceptable.
The most likely cause is the 32- vs 64-bit mismatch suggested by Tony B.
- 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.
RE: APR Question
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Gregor Schneider [mailto:rc46fi@googlemail.com]
> Subject: Re: APR Question
>
> did you set the environment-variable LD_LIBRARY_PATH?
It's not needed - the explicit setting of the system property java.library.path overrides anything in the environment variable. Note that the message displays the expected directory.
> Am 19.03.2010 um 18:43 schrieb blargy <zm...@hotmail.com>:
>
> > Am I missing some files or something?
I thought the library name was supposed to be just tcnative-1.so, but I don't have a Linux system available at the moment to check.
- 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.
Re: APR Question
Posted by Gregor Schneider <rc...@googlemail.com>.
did you set the environment-variable LD_LIBRARY_PATH?
cheers
gregor
---
just because you're paranoid doesn't mean they're not after you...
Am 19.03.2010 um 18:43 schrieb blargy <zm...@hotmail.com>:
>
> I was able to build and install APR (from the Tomcat bin dir) into
> /usr/local/apr/lib and I added the following JVM argument when
> starting
> Tomcat: -Djava.library.path=/usr/local/apr/lib/
>
> However I am still seeing this warning message even though the apr lib
> directory exists:
>
> [java] 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
>
> [root]# ls -al /usr/local/apr/lib
> total 4288
> drwxr-xr-x 3 root root 4096 Mar 19 10:36 .
> drwxr-xr-x 6 root root 4096 Mar 18 22:48 ..
> -rw-r--r-- 1 root root 8130 Mar 18 22:55 apr.exp
> -rw-r--r-- 1 root root 1235262 Mar 18 22:55 libapr-1.a
> -rwxr-xr-x 1 root root 838 Mar 18 22:55 libapr-1.la
> lrwxrwxrwx 1 root root 17 Mar 18 22:55 libapr-1.so ->
> libapr-1.so.0.3.9
> lrwxrwxrwx 1 root root 17 Mar 18 22:55 libapr-1.so.0 ->
> libapr-1.so.0.3.9
> -rwxr-xr-x 1 root root 665670 Mar 18 22:55 libapr-1.so.0.3.9
> -rw-r--r-- 1 root root 1563482 Mar 19 10:36 libtcnative-1.a
> -rwxr-xr-x 1 root root 921 Mar 19 10:36 libtcnative-1.la
> lrwxrwxrwx 1 root root 23 Mar 19 10:36 libtcnative-1.so ->
> libtcnative-1.so.0.1.16
> lrwxrwxrwx 1 root root 23 Mar 19 10:36 libtcnative-1.so.0 ->
> libtcnative-1.so.0.1.16
> -rwxr-xr-x 1 root root 874847 Mar 19 10:36 libtcnative-1.so.0.1.16
> drwxr-xr-x 2 root root 4096 Mar 19 10:36 pkgconfig
>
> Am I missing some files or something? Is there any other
> configuration I
> need to do in Tomcat?
>
>
> --
> View this message in context: http://old.nabble.com/APR-Question-tp27951002p27951002.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org