Bug#324845: tomcat4: Stopping Tomcat with a cronjob sometimes crashs the System!

Michael Nitsche michael at feldwies.de
Thu Sep 1 10:50:28 UTC 2005


Because the character set, theres no difference between Tomcat restart
on console and restart with Cronjob. The used character set is still the
same. After a Tomcat restart everything is correct. However after a few
days without restart of Tomcat all German characters from MySQL-DB
become "?". But MySQL works well, which I could examine with PHP and a
Tomcat-Restart helps. But around this problem I am not in this report,
in addition this problem is maybe similar to bug #294741.

The rsync-update was only a way to use the anyway necessary restart
directly meaningfully. Thanks for the tips! I can exclude the Script
with the RSync-Line, because theres already the same problem without
this Script by restart Tomcat directly in crontab. The problem must be
connected somewhere with "/etc/init.d/tomcat4 stop".

On my laptop I've a similar problem. There run Etch and not Sarge, but
the same Tomcat version (4.1.31-3) and without any special
configurations. If I run Tomcat on my laptop and shutdown the system,
the computer freezes completely with the following message 
"Stopping Tomcat 4.1 servlet engine:"! 

Afterwards only reset helps. This error is at any time reproducible with
me, which is not possible for the problem on the server. I think its
definitely on terminating Tomcat together and I think that the problem
on the laptop is the same as on the server. The computer is freezing in
the init-Script in line 172:

 su -p -s /bin/sh $TOMCAT4_USER -c "\"$DAEMON\" stop" \
        >/dev/null 2>&1 || true

If I reroute the expenditure not to /dev/null, unfortunately theres
nothing interesting. On both systems I use j2re1.4(1.4.2.02 1) and
j2sdk1.4(1.4.2.02 1) (Blackdown) of "http://www.tux.org/pub/java/debian"

Greetings Michael






More information about the pkg-java-maintainers mailing list