Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 6.1.14
-
Fix Version/s: 6.1.15.rc4
-
Component/s: Servlet
-
Labels:None
-
Environment:Windows XP SP2, JRE 1.4.2
-
Number of attachments :
Description
Jetty is embedded into my application and a WebAppContext created from a WAR file. When the server is started, a temporary directory is created for the web application. When the server is stopped, the temporary directory remains, it has been cleanup but not completely: the jsps sub folder has been deleted (which is correct) but the webapp directory is still there: some JAR files remains under WEB-INF/lib.
Jeff,
What settings did you configure for the WebAppContext regarding the tmp directory and unpacking the war? For example, do you call any of the following:
+ setExtractWar(true)
+ setCopyWebDir(true)
+ setTempDirectory(String)
When jetty creates the tmp directory (ie it does not already exist) then that directory is entirely removed when jetty stops. If the tmp directory already exists, or it is a dir called "work" then we don't delete the dir or its contents. I've checked this behaviour for jetty-6.1.14 on linux, but I don't have access to a windows machine to verify. I don't think anything has changed with this area of the software for a while. Can you double check that if you let jetty use the default system tmp dir (not sure what java.io.tmpdir is on windows) that the dir and all contents are removed?
cheers
Jan