Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

FileUpload - No such path or directory

843841Feb 27 2005 — edited Feb 28 2005
I have written a little servlet that uploads files from the client to the server, using FileUploader of Jakarta. This servlet works fine on the WSAD but when I tries to run it using Websphere I get the following exception:

FileUploadException Processing of multipart/form-data request failed. No such path or directory. /temp/upload_00000013.tmp

The relevant code is:

DiskFileUpload fu = new DiskFileUpload();
fu.setSizeMax(1000000);
fu.setSizeThreshold(4096);
fu.setRepositoryPath("/temp");
List fileItems = fu.parseRequest(req);

The structure of the war file is:
WEB-INF
/classes
/temp
/lib
/temp

The directory exists, so where am I wrong?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 28 2005
Added on Feb 27 2005
1 comment
188 views