You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2008/10/09 23:38:50 UTC
DO NOT REPLY [Bug 45981] New: Missing temp directory never gets
recreated
https://issues.apache.org/bugzilla/show_bug.cgi?id=45981
Summary: Missing temp directory never gets recreated
Product: Tomcat 6
Version: 6.0.14
Platform: Macintosh
OS/Version: Mac OS X 10.4
Status: NEW
Severity: major
Priority: P2
Component: Catalina
AssignedTo: dev@tomcat.apache.org
ReportedBy: skillcoyne@systemsbiology.org
It has been necessary when using some web applications in tomcat to remove
everything in the work/ and temp/ directories before restarting. However, if
the temp directory itself is removed it is not recreated causing web
applications to throw java.io.IOExceptions when a user attempts to download a
file.
java.io.IOException: No such file or directory
java.io.UnixFileSystem.createFileExclusively(Native Method)
java.io.File.checkAndCreate(File.java:1704)
java.io.File.createTempFile(File.java:1793)
java.io.File.createTempFile(File.java:1830)
....
Tomcat should be checking and recreating the temp directory if it is not there
at start up.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 45981] Missing temp directory never gets recreated
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45981
Sarah <sk...@systemsbiology.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|WONTFIX |
--- Comment #2 from Sarah <sk...@systemsbiology.org> 2008-10-09 15:02:06 PST ---
Then either 1) the temp directory needs to clear itself out when tomcat is
stopped/started. There are applications that do not work properly if this is
not done (especially when dealing with jsp's). Or 2) Tomcat needs to check that
all of it's directories are in place and fail to startup with an error if they
aren't. There were no errors in the logs after restarting several times.
This cost me nearly a day in debugging an issue that does not exist in my code
but was caused by someone messing up the distribution and tomcat not noticing.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 45981] Missing temp directory never gets recreated
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45981
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |INVALID
--- Comment #4 from Mark Thomas <ma...@apache.org> 2008-11-01 17:56:49 PST ---
Closing assuming that it was the web applciation that failed to log that the
temp diretcory was missing.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 45981] Missing temp directory never gets recreated
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45981
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
--- Comment #1 from Mark Thomas <ma...@apache.org> 2008-10-09 14:56:44 PST ---
You can't delete part of an installed application (in the case the temp
directory) and expect it to continue to work.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 45981] Missing temp directory never gets recreated
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45981
--- Comment #3 from Mark Thomas <ma...@apache.org> 2008-10-09 15:25:59 PST ---
re 1) The application that creates the files should be responsible for any
necessary housekeeping. Tomcat can't make assumptions about what housekeeping
is required.
re 2) It isn't practical to test for every required file and library on
startup. If Tomcat tried to use the temp directory and failed to log an error
then if you provide enough details to reproduce the problem then an appropriate
error message can be added. If it was web app code that tried to use temp and
failed then the error handling needs to be added there.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org