Bug#456608: tomcat5.5: Tomcat Temp Directory Cleaning Fails When Temp Directory contains Sub-Directory
Matt Petteys
mpetteys at gmail.com
Sun Dec 16 22:26:37 UTC 2007
Package: tomcat5.5
Version: 5.5.25-2
Severity: important
When I attempt to start tomcat, I receive the following error
sh-3.1# /etc/init.d/tomcat5.5 start
Starting Tomcat servlet engine: tomcat5.5rm: cannot remove
`/var/lib/tomcat5.5/temp/JSPWiki-11143287': Is a directory
In /etc/init.d/tomcat5.5, on or about line 148 .. The startup script trys to clean the temp directory with the below command but the jspwiki package is creating a directory in the temp folder which the rm command is not handling..
find "$CATALINA_BASE"/temp/ -mindepth 1 -exec rm -f {} +
If this line is changed to the following, to perform a recursive rm, it successfully cleans the directory
find "$CATALINA_BASE"/temp/ -mindepth 1 -exec rm -rf {} +
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.21-2-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
Versions of packages tomcat5.5 depends on:
ii adduser 3.104 add and remove users and groups
ii jsvc 1.0.2~svn20061127-6 wrapper to launch Java application
ii libecj-java 3.3.0+0728-2 Eclipse Java compiler (library)
ii libtomcat5.5-java 5.5.25-2 Java Servlet engine -- core librar
ii sun-java5-jre [java2 1.5.0-12-2 Sun Java(TM) Runtime Environment (
tomcat5.5 recommends no packages.
-- no debconf information
More information about the pkg-java-maintainers
mailing list