Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 175393 - Tomcat 5.5 init script working directory is /
Summary: Tomcat 5.5 init script working directory is /
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All All
: High normal
Assignee: William L. Thomson Jr. (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-20 22:43 UTC by Daniel Barkalow
Modified: 2007-05-15 04:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.