Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 148387 - tomcat 5.5 CATALINA_TMPDIR not set appropriately
Summary: tomcat 5.5 CATALINA_TMPDIR not set appropriately
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: William L. Thomson Jr. (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-20 08:53 UTC by Chris Lear
Modified: 2006-09-20 10:55 UTC (History)
0 users

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


Attachments
Patch to /etc/init.d/tomcat-5.5 (tomcat-5.5.patch,573 bytes, patch)
2006-09-20 08:55 UTC, Chris Lear
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Lear 2006-09-20 08:53:06 UTC
In /etc/conf.d/tomcat-5.5, it says this:

# (Optional) Directory path location of temporary directory the JVM should
# use (java.io.tmpdir).  Defaults to $CATALINA_BASE/temp.
CATALINA_TMPDIR="/var/tmp/tomcat-5.5/"

But, as far as I can see, CATALINA_TMPDIR is never set if this "optional" line is removed.

I'll upload a patch to /etc/init.d/tomcat-5.5 that I think fixes the problem (code taken from tomcat's catalina.sh)
Comment 1 Chris Lear 2006-09-20 08:55:59 UTC
Created attachment 97549 [details, diff]
Patch to /etc/init.d/tomcat-5.5

Sets CATALINA_TMPDIR if not set, in line with information in /etc/conf.d/tomcat-5.5 (and as per upstream catalina.sh)
Comment 2 William L. Thomson Jr. (RETIRED) gentoo-dev 2006-09-20 10:55:22 UTC
Ok sorry about that must have missed that and the other when making the init script some time back. Interesting no one has caught those till now. Although we have had some other issues with the init script and logging.

Thanks for catching that and for the patch. I have made the changes in the init script and committed to tree. Closing bug.