Want help in uploading file

hi,I am using org.apahce.commons.FileUpload api to upload file.three is no error when i compile the servlet class ,but when i run it .it give the error.at this situation what can i do?

java.lang.NoClassDefFoundError: org/apache/commons/io/output/DeferredFileOutputStream

org.apache.commons.fileupload.disk.DiskFileItemFactory.createItem(DiskFileItemFactory.java:179)

org.apache.commons.fileupload.FileUploadBase.createItem(FileUploadBase.java:500)

org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:367)

org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:116)

webtest.FileUpload.doPost(FileUpload.java:29)

javax.servlet.http.HttpServlet.service(HttpServlet.java:709)

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

[850 byte] By [ovea] at [2007-10-3 2:29:57]
# 1
Did you remember to place the commons-fileupload.x.x.x.jar file in the WEB-INF directory of your application?
linxpdaa at 2007-7-14 19:28:54 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

No, that's not it. Later versions of Commons FileUpload started to depend on the Commons IO utilities:

http://jakarta.apache.org/commons/io/

without, as far as I can tell, bothering to mention this dependency. You'll need to download the jar for that project and include it in your WEB-INF/lib directory as well.

DrClapa at 2007-7-14 19:28:54 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Thanks, I copied the jar file to WEB-INF lib directory .now i am trying with the commons.io dependency pacakages.
ovea at 2007-7-14 19:28:54 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
I have added the jar files for common.fileupload and common.io my WEB-INF lib directory but still I am facing the error I mentioned earlier.
ovea at 2007-7-14 19:28:54 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...