views:

133

answers:

1

I took a Struts2 FileUpload example from internet. When uploading file I see that a temporary file is created under the Tomcat's work directoy.

After the returning from my action class I see this in logs:

WARNING: Resource Leaking:  Could not remove uploaded file 'C:\Program Files\apache-tomcat-5.5.28\work\Catalina\localhost\FileUploadApp\upload__668d4a82_126bffe35f7__7ff9_00000002.tmp'

This is weird because usually on the first request Tomcat removes the temporary files, but subsequen request it gives me the above warning message.

Anyone have any ideas how to fix this?

A: 

I meat this problem also ,anyone can show your answer!!