libapr /usr/lib64/libapr-1.so.0 not picked up by JAVA_OPTS in tomcat6.xml

2010-02-11 Thread J4
Dear everyone,

I am trying to use the APR based Apache Tomcat Native library on
SLES11 and it is installed in:
lrwxrwxrwx1 rootroot   17 Oct 12 01:03
/usr/lib64/libapr-1.so.0 -> libapr-1.so.0.3.3
-rwxr-xr-x1 rootroot   181112 Oct 12 01:03
/usr/lib64/libapr-1.so.0.3.3

I changed the JAVA_OPTS in tomcat6.conf to read:
JAVA_OPTS="-Xmx256m -XX:MaxPermSize=256m -Djava.library.path=/usr/lib64"
but when tomcat was restarted it still gave the same message, as shown
below, which makes me think that it did not pick it up.


INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path:
/usr/lib64/jvm/java-1_6_0-ibm-1.6.0/jre/lib/amd64/default:/usr/lib64/jvm/java-1_6_0-ibm-1.6.0/jre/lib/amd64:/usr/lib

How else should this be added?

Best regards, J


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



Re: libapr /usr/lib64/libapr-1.so.0 not picked up by JAVA_OPTS in tomcat6.xml

2010-02-11 Thread J4
J4 wrote:
> Dear everyone,
>
> I am trying to use the APR based Apache Tomcat Native library on
> SLES11 and it is installed in:
> lrwxrwxrwx1 rootroot   17 Oct 12 01:03
> /usr/lib64/libapr-1.so.0 -> libapr-1.so.0.3.3
> -rwxr-xr-x1 rootroot   181112 Oct 12 01:03
> /usr/lib64/libapr-1.so.0.3.3
>
> I changed the JAVA_OPTS in tomcat6.conf to read:
> JAVA_OPTS="-Xmx256m -XX:MaxPermSize=256m -Djava.library.path=/usr/lib64"
> but when tomcat was restarted it still gave the same message, as shown
> below, which makes me think that it did not pick it up.
>
>
> INFO: The APR based Apache Tomcat Native library which allows optimal
> performance in production environments was not found on the
> java.library.path:
> /usr/lib64/jvm/java-1_6_0-ibm-1.6.0/jre/lib/amd64/default:/usr/lib64/jvm/java-1_6_0-ibm-1.6.0/jre/lib/amd64:/usr/lib
>
> How else should this be added?
>
> Best regards, J

I tried these lines:
JAVA_OPTS="-Djava.library.path=/usr/lib64/jvm/java-1_6_0-ibm-1.6.0/jre/lib/amd64/default:/usr/lib64/jvm/java-1_6_0-ibm-1.6.0/jre/lib/amd64:/usr/lib:/usr/lib64"

and also in another attempt:
JAVA_OPTS="-Xmx256m -XX:MaxPermSize=256m
-Djava.library.path=/usr/lib64/jvm/java-1_6_0-ibm-1.6.0/jre/lib/amd64/default:/usr/lib64/jvm/java-1_6_0-ibm-1.6.0/jre/lib/amd64:/usr/lib:/usr/lib64"

but always had the message:
INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path:
/usr/lib64/jvm/java-1_6_0-ibm-1.6.0/jre/lib/amd64/default:/usr/lib64/jvm/java-1_6_0-ibm-1.6.0/jre/lib/amd64:/usr/lib


This makes me think that the tomcat6.xml is not even read, or
specifically the JAVA_OPTS are unread.

The command that is run is:
tomcat   23481 1 99 11:53 pts/000:05:10
/etc/alternatives/jre/bin/java -classpath
:/usr/share/tomcat6/bin/bootstrap.jar:/usr/share/tomcat6/bin/tomcat-juli.jar:/usr/share/java/commons-daemon.jar
-Dcatalina.base=/usr/share/tomcat6 -Dcatalina.home=/usr/share/tomcat6
-Djava.endorsed.dirs= -Djava.io.tmpdir=/var/cache/tomcat6/temp
-Djava.util.logging.config.file=/usr/share/tomcat6/conf/logging.properties
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
org.apache.catalina.startup.Bootstrap start

And the init.d/tomcat6 file does try to read the tomcat6.conf:
# Get the tomcat config (use this for environment specific settings)
TOMCAT_CFG="/etc/tomcat6/tomcat6.conf"
if [ -r "$TOMCAT_CFG" ]; then
. $TOMCAT_CFG
fi

The file is in the right place:
# ls -ld /etc/tomcat6/tomcat6.conf
-rw-r--r-- 1 root root 1692 Feb 11 11:53 /etc/tomcat6/tomcat6.conf


Any clues?


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



Re: libapr /usr/lib64/libapr-1.so.0 not picked up by JAVA_OPTS in tomcat6.xml

2010-02-11 Thread J4
Dear Konstantin,


>From what I have read in the documentation URL you sent me, it looks
that these steps have to be taken:-
1) download and compile the APR libs
2) install the libtcnative-1.so


Why have I to take these steps when :-

1) the APR is already installed with SLES:
# zypper se apr
Loading repository data...
Reading installed packages...

S | Name | Summary   | Type

--+--+---+---
i | libapr-util1 | Apache Portable Runtime (APR) Library |
package
  | libapr-util1 | Apache Portable Runtime (APR) Library |
srcpackage
i | libapr1  | Apache Portable Runtime (APR) Library |
package
  | libapr1  | Apache Portable Runtime (APR) Library |
srcpackage
i | slessp0-libapr-util1 | Security update for libapr| patch




2) the native lib is installed already with SLES:
/usr/lib64/libtcnative-1.so.0.1.14
/usr/lib64/libtcnative-1.so.0

Best regards, J.

Konstantin Kolinko wrote:
> 2010/2/11 J4 :
>> Dear everyone,
>>
>>I am trying to use the APR based Apache Tomcat Native library on
>> SLES11 and it is installed in:
>> lrwxrwxrwx1 rootroot   17 Oct 12 01:03
>> /usr/lib64/libapr-1.so.0 -> libapr-1.so.0.3.3
>> -rwxr-xr-x1 rootroot   181112 Oct 12 01:03
>> /usr/lib64/libapr-1.so.0.3.3
>>
>> I changed the JAVA_OPTS in tomcat6.conf to read:
>> JAVA_OPTS="-Xmx256m -XX:MaxPermSize=256m -Djava.library.path=/usr/lib64"
>> but when tomcat was restarted it still gave the same message, as shown
>> below, which makes me think that it did not pick it up.
>>
> 
> You are trying to load APR,  but Tomcat cannot use it directly.
> Tomcat uses its own library, named Tomcat-Native, "libtcnative-1.so",
> that provides it with access to APR. Please read its documentation for
> details.
> 
> http://tomcat.apache.org/download-native.cgi
> http://tomcat.apache.org/native-doc/
> 
> Best regards,
> Konstantin Kolinko
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 

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