Hi, I have installed tomcat 5 on debian using "apt-get install tomcat5"
accepting all defaults. It installs fine, I setup the policy file
default, and it appears to work. Tomcat starts. Tomcat stops. I don't
know why it stops. There is nothing in the logs I am looking in (but
I've include it below anyway). So where should I look now and what
should I do?
Below is a log of me manually starting tomcat5, seeing it is working
with /etc/init.d/tomcat5 status, then it stops a few seconds after it
starts, and I display the log file. My machine is called john.one.co.uk
and I am executing this script as root.
There seems to be a bit of info about using Tomcat 5 on debian I found
in Google but I see more or less the same thing with Tomcat 4. So,
what's up or any ideas most welcome even if you're using Windows or
other flavours of linux. Or if there are other logs I should be
reviewing etc.
Thanks in advance
Barry
<<< Log from john.one.co.uk started August 25, 2005, 19:50:57 >>>
john:/# find / -name tomcat5.pid -print
john:/# ls /var/log/tomcat5
john:/# /etc/init.d/tomcat5 start
Starting Tomcat 5 servlet engine using Java from /usr/lib/kaffe:
tomcat5.
john:/# /etc/init.d/tomcat5 status
Tomcat 5 servlet engine is running with Java pid 25197
john:/# /etc/init.d/tomcat5 status
Tomcat 5 servlet engine is running with Java pid 25197
john:/# /etc/init.d/tomcat5 status
Tomcat 5 servlet engine is running with Java pid 25197
john:/# /etc/init.d/tomcat5 status
Tomcat 5 servlet engine is running with Java pid 25197
john:/# /etc/init.d/tomcat5 status
Tomcat 5 servlet engine is running with Java pid 25197
john:/# /etc/init.d/tomcat5 status
Tomcat 5 servlet engine is not running, but pid file exists.
john:/# find / -name tomcat5.pid -print
/var/lib/tomcat5/temp/tomcat5.pid
john:/# cat /var/lib/tomcat5/temp/tomcat5.pid
25197
john:/# ls -la /var/log/tomcat5
total 12
drwxr-x--- 2 tomcat5 root 4096 Aug 25 13:02 .
drwxr-xr-x 11 root root 4096 Aug 25 01:52 ..
prwx------ 1 tomcat5 root0 Aug 25 13:02 catalina.out
-rw-r--r-- 1 tomcat5 nogroup 558 Aug 25 13:02
catalina_2005-08-25.log
john:/# cat /var/log/tomcat5/catalina_2005-08-25.log
Using CATALINA_BASE: /var/lib/tomcat5
Using CATALINA_HOME: /usr/share/tomcat5
Using CATALINA_TMPDIR: /var/lib/tomcat5/temp
Using JAVA_HOME:/usr/lib/kaffe
Due to new licensing guidelines mandated by the Apache Software
Foundation Board of Directors, a JMX implementation can no longer
be distributed with the Apache Tomcat binaries. As a result, you
must download a JMX 1.2 implementation (such as the Sun Reference
Implementation) and copy the JAR containing the API and
implementation of the JMX specification to:
${catalina.home}/bin/jmx.jar
john:/# ls -l /usr/share/tomcat5/bin
total 816
-rw-r--r-- 1 root root 29869 Aug 20 09:51 bootstrap.jar
-rwxr-xr-x 1 root root 9726 Aug 20 09:48 catalina.50.sh
-rwxr-xr-x 1 root root 10321 Aug 20 09:48 catalina.sh
lrwxrwxrwx 1 root root 29 Aug 21 15:26 commons-daemon.jar ->
.../../java/commons-daemon.jar
lrwxrwxrwx 1 root root 31 Aug 21 15:26 commons-launcher.jar ->
.../../java/commons-launcher.jar
lrwxrwxrwx 1 root root 34 Aug 21 15:26 commons-logging-api.jar ->
.../../java/commons-logging-api.jar
-rwxr-xr-x 1 root root 848 Aug 20 09:48 digest.sh
-rw-r--r-- 1 root root 343900 Jun 18 2004 jmx.jar
-rw-r--r-- 1 root root 398235 Aug 20 09:46 jmxOLD.jar
-rwxr-xr-x 1 root root 2315 Aug 20 09:48 setclasspath.sh
-rwxr-xr-x 1 root root 787 Aug 20 09:48 shutdown.sh
-rwxr-xr-x 1 root root 1136 Aug 20 09:48 startup.sh
-rwxr-xr-x 1 root root 2510 Aug 20 09:48 tool-wrapper.sh
-rwxr-xr-x 1 root root 790 Aug 20 09:48 version.sh
john:/#
<<< Log from john.one.co.uk ended August 25, 2005, 19:55:15 >>>
>> Stay informed about: problem getting Tomcat5 working (log file and trace includ..