Hi folks,

some background-information first:

OS      : Debian (Etch)
Tomcat: Tomcat 5.5.26
Java     : 1.5.014

I've compiled jsvs (which is running) and tomcat-native.

I've copied all compiler-output from tomcat-native to $catalina-home/lib:

-rw-r--r-- 1 tomcat tomcat 1506416 2008-08-26 15:49 libtcnative-1.a
-rwxr-xr-x 1 tomcat tomcat     918 2008-08-26 15:49 libtcnative-1.la
lrwxrwxrwx 1 tomcat tomcat      23 2008-08-26 15:49 libtcnative-1.so
-> libtcnative-1.so.0.1.12
lrwxrwxrwx 1 tomcat tomcat      23 2008-08-26 15:49 libtcnative-1.so.0
-> libtcnative-1.so.0.1.12
-rwxr-xr-x 1 tomcat tomcat  855359 2008-08-26 15:49 libtcnative-1.so.0.1.12
drwxr-xr-x 2 tomcat tomcat    4096 2008-08-26 15:49 pkgconfig

I've defined an environment-entry LD_LIBRARY_PATH in my
jsvc-startup-script, also I've specified java.library-path.

However, when I run Tomcat, there's no message neither in
tomcat.log.INFO nor catalina.out that Tomcat is using APR.

This is my Tomcat-native-startup-script:

export JAVA_HOME="/usr/lib/jvm/java-1.5.0-sun-1.5.0.14"
export LD_LIBRARY_PATH="/apps/tomcat/tomcat55/lib"
CATALINA_HOME=/apps/tomcat/tomcat55/
DAEMON_HOME=/apps/tomcat/tomcat55/
TOMCAT_USER=tomcat

# for multi instances adapt those lines.
TMP_DIR=/var/tmp
PID_FILE=/var/run/jsvc.pid
CATALINA_BASE=/apps/tomcat/tomcat55/

#CATALINA_OPTS="-Djava.library.path=/home/jfclere/jakarta-tomcat-connectors/jni/native/.libs"
CATALINA_OPTS=""
CLASSPATH=\
$JAVA_HOME/lib/tools.jar:\
$CATALINA_HOME/bin/commons-daemon.jar:\
$CATALINA_HOME/bin/bootstrap.jar

case "$1" in
  start)
    #
    # Start Tomcat
    #
    #$DAEMON_HOME/src/native/unix/jsvc \
    echo "Starting tomcat"
    $DAEMON_HOME/bin/jsvc \
    -user $TOMCAT_USER \
    -home $JAVA_HOME \
    -Dcatalina.home=$CATALINA_HOME \
    -Dcatalina.base=$CATALINA_BASE \
    -Djava.io.tmpdir=$TMP_DIR \
    -Dlog4j.configuration=log4j.xml \
    -Djava.library.path=/apps/tomcat/tomcat55/lib \
    -wait 10 \
    -pidfile $PID_FILE \
    -outfile $CATALINA_HOME/logs/catalina.out \
    -errfile '&1' \
    $CATALINA_OPTS \
    -cp $CLASSPATH \
    org.apache.catalina.startup.Bootstrap
    #
    # To get a verbose JVM
    #-verbose \
    # To get a debug of jsvc.
    #-debug \
    exit $?
    ;;

  stop)
    #
    # Stop Tomcat
    #
    echo "Stopping tomcat"
    $DAEMON_HOME/bin/jsvc \
    -stop \
    -pidfile $PID_FILE \
    org.apache.catalina.startup.Bootstrap
    exit $?
    ;;

  *)
    echo "Usage tomcat.sh start/stop"
    exit 1;;
esac


This is the output if tomcat.log.info:

2008-08-27 17:43:33,808 INFO                    [main]: Initializing
Coyote HTTP/1.1 on http-127.0.0.1-8080
2008-08-27 17:43:33,813 INFO                    [main]: Initializing
Coyote AJP/1.3 on ajp-127.0.0.1-8009
2008-08-27 17:43:33,813 INFO                    [main]: Initialization
processed in 1318 ms
2008-08-27 17:43:33,938 INFO                    [main]: Starting
service Catalina
2008-08-27 17:43:33,946 INFO                    [main]: Starting
Servlet Engine: Apache Tomcat/5.5.26
2008-08-27 17:43:34,298 INFO                    [main]: XML validation disabled
2008-08-27 17:43:37,285 INFO                    [main]: Deploying web
application archive WebDemoEN.war
2008-08-27 17:43:37,635 INFO                    [main]: Deploying web
application archive WebDemoDE.war
2008-08-27 17:43:37,882 INFO                    [main]: Deploying web
application archive WebMailer.war
2008-08-27 17:43:38,970 INFO                    [main]: Starting
Coyote HTTP/1.1 on http-127.0.0.1-8080
2008-08-27 17:43:39,042 INFO                    [main]: Starting
Coyote AJP/1.3 on ajp-127.0.0.1-8009
2008-08-27 17:43:39,080 INFO                    [main]: Find registry
server-registry.xml at classpath resource
2008-08-27 17:43:39,170 INFO                    [main]: Server startup
in 5356 ms


catalina.out is empty

Now my questions:

If I'm not mistaken, Tomcat should state in tomcat.log.INFO that it is
using APR, right? So according to the above tomcat.log.INFO, is it
true that in my case Tomcat is not using the APR?

If so: Does anybody have a hint why Tomcat is not using the APR?

TIA

Gregor







-- 
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

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

Reply via email to