Pid * wrote:
On 12 Dec 2011, at 16:37, "André Warnier" <a...@ice-sa.com> wrote:
Hi
On a Debian Linux system, was running a Debian-pre-packaged Tomcat 5.5.
We stopped this Tomcat 5.5, but did not remove the corresponding package(s).
Then we installed an "official" Tomcat 6, downloaded from the Tomcat website, in
/opt/tomcat6 as "CATALINA_HOME".
We then made a copy of the /etc/init.d startup script which used to start
Tomcat 5.5, and modified it to start this new Tomcat6 instead.
Now when stopping and starting this Tomcat6, we are getting the message below
(about APR) in the Tomcat6 logfile.
My question is : where could Tomcat6 find this APR tc-native of the wrong
version ?
As far as I can tell, there is no unpacked tc-native anything in the Tomcat6
directories.
$LD_LIBRARY_PATH
Or check the -Djava.library.path set by the script.
Francis, thanks for the perl tip.
Pid, see following data.
1) these are the tomcat6 processes, as shown by "ps" :
(sorry for the format, I hope it is readable)
root 21245 1 0 21:19 ? 00:00:00 /usr/bin/jsvc -user tomcat55 -cp
/usr/share/java/commons-daemon.jar:/opt/tomcat6/bin/bootstrap.jar -outfile SYSLOG -errfile
SYSLOG -pidfile /var/run/tomcat6.pid -Djava.awt.headless=true -Xms256M -Xmx256M
-Djava.endorsed.dirs=/opt/tomcat6/common/endorsed -Dcatalina.base=/opt/tomcat6
-Dcatalina.home=/opt/tomcat6 -Djava.io.tmpdir=/opt/tomcat6/temp
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file=/opt/tomcat6/conf/logging.properties
org.apache.catalina.startup.Bootstrap
root 21246 21245 0 21:19 ? 00:00:00 /usr/bin/jsvc -user tomcat55 -cp
/usr/share/java/commons-daemon.jar:/opt/tomcat6/bin/bootstrap.jar -outfile SYSLOG -errfile
SYSLOG -pidfile /var/run/tomcat6.pid -Djava.awt.headless=true -Xms256M -Xmx256M
-Djava.endorsed.dirs=/opt/tomcat6/common/endorsed -Dcatalina.base=/opt/tomcat6
-Dcatalina.home=/opt/tomcat6 -Djava.io.tmpdir=/opt/tomcat6/temp
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file=/opt/tomcat6/conf/logging.properties
org.apache.catalina.startup.Bootstrap
tomcat55 21247 21245 15 21:19 ? 00:00:01 /usr/bin/jsvc -user tomcat55 -cp
/usr/share/java/commons-daemon.jar:/opt/tomcat6/bin/bootstrap.jar -outfile SYSLOG -errfile
SYSLOG -pidfile /var/run/tomcat6.pid -Djava.awt.headless=true -Xms256M -Xmx256M
-Djava.endorsed.dirs=/opt/tomcat6/common/endorsed -Dcatalina.base=/opt/tomcat6
-Dcatalina.home=/opt/tomcat6 -Djava.io.tmpdir=/opt/tomcat6/temp
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file=/opt/tomcat6/conf/logging.properties
org.apache.catalina.startup.Bootstrap
and this is the output for Francis' one-liner :
# perl -ple 's,\00,\n,g' /proc/21245/environ
SHELL=/bin/bash
TERM=xterm
SSH_CLIENT=84.158.8.209 1689 22
JSSE_HOME=/usr/lib/jvm/java-6-sun/jre/
SSH_TTY=/dev/pts/0
USER=root
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.svgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00
;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:
PATH=/bin:/usr/bin:/sbin:/usr/sbin
MAIL=/var/mail/root
PWD=/opt/tomcat6/temp
JAVA_HOME=/usr/lib/jvm/java-6-sun
LANG=en_US.UTF-8
HOME=/root
SHLVL=2
LS_OPTIONS=--color=auto
LOGNAME=root
SSH_CONNECTION=84.158.8.209 1689 212.85.38.202 22
EFSDIR=/mnt/NAS/MIRA/EFS
LC_CTYPE=de_DE.iso885915@euro
_=/usr/bin/jsvc
OLDPWD=/root
(I picked the first of the above processes)
Thus, it does not seem that there is either a $LD_LIBRARY_PATH set, nor an explicit
"-Djava.library.path" on the tomcat (or jsvc) command-line.
(Or I am missing something).
So then, to repeat the question, where might this Tomcat Native library be, which Tomcat
finds and is complaining about ?
Here follows a list of files from the tomcat6 installation dir. Apart from
tomcat-native.tar.gz, I don't see anything there which looks like a tc-native library..
v2:/opt/tomcat6# ls -l
total 63
drwxrwxr-x 2 root root 1024 2011-12-09 16:33 bin
drwxr-xr-x 4 tomcat55 adm 1024 2011-12-12 21:19 conf
drwxr-xr-x 2 root root 1024 2011-12-09 12:02 lib
-rw-r--r-- 1 root root 37951 2011-11-28 11:22 LICENSE
drwxr-xr-x 2 tomcat55 adm 1024 2011-12-12 19:17 logs
-rw-r--r-- 1 root root 558 2011-11-28 11:22 NOTICE
-rw-r--r-- 1 root root 8680 2011-11-28 11:20 RELEASE-NOTES
-rw-r--r-- 1 root root 6670 2011-11-28 11:22 RUNNING.txt
drwxr-xr-x 2 tomcat55 root 1024 2011-12-09 16:10 temp
lrwxrwxrwx 1 root root 26 2011-12-09 15:01 webapps ->
/var/lib/tomcat5.5/webapps
drwxr-xr-x 7 root root 1024 2011-11-28 11:20 webapps.orig
drwxr-xr-x 3 tomcat55 adm 1024 2011-12-09 17:08 work
v2:/opt/tomcat6# ls -l bin
total 596
-rw-r--r-- 1 star star 22705 2011-11-28 11:20 bootstrap.jar
-rw-r--r-- 1 star star 11830 2011-11-28 11:20 catalina.bat
-rwxr-xr-x 1 star star 17708 2011-11-28 11:20 catalina.sh
-rw-r--r-- 1 star star 2374 2011-11-28 11:20 catalina-tasks.xml
-rw-r--r-- 1 star star 24172 2011-11-28 11:20 commons-daemon.jar
-rw-r--r-- 1 star star 199623 2011-11-28 11:20 commons-daemon-native.tar.gz
-rw-r--r-- 1 star star 1342 2011-11-28 11:20 cpappend.bat
-rw-r--r-- 1 star star 2108 2011-11-28 11:20 digest.bat
-rwxr-xr-x 1 star star 1689 2011-11-28 11:20 digest.sh
-rw-r--r-- 1 star star 3150 2011-11-28 11:20 setclasspath.bat
-rwxr-xr-x 1 star star 4114 2011-11-28 11:20 setclasspath.sh
-rw-r--r-- 1 star star 2108 2011-11-28 11:20 shutdown.bat
-rwxr-xr-x 1 star star 1628 2011-11-28 11:20 shutdown.sh
-rw-r--r-- 1 star star 2109 2011-11-28 11:20 startup.bat
-rwxr-xr-x 1 star star 2023 2011-11-28 11:20 startup.sh
-rw-r--r-- 1 star star 32277 2011-11-28 11:20 tomcat-juli.jar
-rw-r--r-- 1 star star 249259 2011-11-28 11:20 tomcat-native.tar.gz
-rw-r--r-- 1 star star 3479 2011-11-28 11:20 tool-wrapper.bat
-rwxr-xr-x 1 star star 3472 2011-11-28 11:20 tool-wrapper.sh
-rw-r--r-- 1 star star 2113 2011-11-28 11:20 version.bat
-rwxr-xr-x 1 star star 1632 2011-11-28 11:20 version.sh
v2:/opt/tomcat6# find . -name tomcat-native*
./bin/tomcat-native.tar.gz
v2:/opt/tomcat6# find . -name tc*
v2:/opt/tomcat6#
p
Dec 12, 2011 12:37:14 PM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8180
12.12.2011 12:37:24 org.apache.catalina.core.AprLifecycleListener init
SCHWERWIEGEND: An incompatible version 1.1.12 of the APR based Apache Tomcat
Native library is installed, while Tomcat requires version 1.1.17
12.12.2011 12:37:24 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8180
12.12.2011 12:37:24 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2079 ms
12.12.2011 12:37:26 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
12.12.2011 12:37:26 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.35
12.12.2011 12:37:26 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory test
12.12.2011 12:37:27 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory dumpuser
12.12.2011 12:37:27 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory starweb
12.12.2011 12:37:27 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8180
12.12.2011 12:37:27 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
12.12.2011 12:37:27 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/55 config=null
12.12.2011 12:37:27 org.apache.catalina.startup.Catalina start
INFO: Server startup in 2993 ms
---------------------------------------------------------------------
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
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org