Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 175393

Summary: Tomcat 5.5 init script working directory is /
Product: Gentoo Linux Reporter: Daniel Barkalow <barkalow>
Component: [OLD] ServerAssignee: William L. Thomson Jr. (RETIRED) <wltjr>
Status: RESOLVED FIXED    
Severity: normal CC: java
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Daniel Barkalow 2007-04-20 22:43:21 UTC
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)
Comment 1 William L. Thomson Jr. (RETIRED) gentoo-dev 2007-05-15 04:38:58 UTC
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.