When I start tomcat5.5 with the init script, the server's cwd is /. Some applications expect it to be a directory which can have useful files put in it (e.g., a DTD subdirectory with useful DTDs). Gentoo bug #86905 seems to have set it to ${CATALINA_HOME}/webapps, for 5.0 (instead of the cwd of the user running the init script), but this property seems to have been lost in 5.5. Reproducible: Always Steps to Reproduce: 1. Start tomcat 2. ls -l /proc/`cat /var/run/tomcat.pid`/cwd Actual Results: /proc/21148/cwd -> / Expected Results: /proc/21148/cwd -> /var/lib/tomcat-5.5/ (or /usr/share/tomcat-5.5, or something similar)
As per recommendations from those in community working dir is not set to Tomcat's temp dir, which is CATALINA_TMPDIR="${CATALINA_BASE}"/temp. Closing bug as it should be fixed now. Please comment or re-open if problem remains.