Blog Archive

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

Got this error when doing a file upload java Servlet using apache Commons FileUpload package. It seems there is dependency on the Commons IO library. So if you see this error make sure to add the commons-io.jar file in your project.

Here is the link to get the commons IO jar file - http://commons.apache.org/io/