reset password
Author Message
Phanit
Posts: 10
Posted 00:34 Oct 12, 2010 |

I'm trying to see if fileupload that I checked out from svn is working properly, but I keep on getting this exception. Advice please. I'm doing this on my local system.

javax.servlet.ServletException: java.io.FileNotFoundException: C:\Users\Phanit\Desktop\CS520\Workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\fileupload\WEB-INF\files (Access is denied)
cs520.fileupload.FileUploadHandler.doPost(FileUploadHandler.java:63)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 

cysun
Posts: 2935
Posted 07:47 Oct 12, 2010 |

Make sure you are uploading two files; otherwise the servlet would try to write a file with an empty name which would cause the IO exception.