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

Problem

Getting a HTTP Status 500 error in Tomcat Server (version 6) while using the Apache Common library, specifically with the following error:


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

 

Resolution

Download the Apache Common IO library, commons-io-2.4.jar, at:
Apache Commons IO Download Link

 

Scenario

While working on some HTML to PDF development, on WebSphere Portal Server, i’m using some of the Apache Common libraries including a commons-fileupload-1.2.2.jar. The project used to run fine but during my conversion from WebSphere to Tomcat (and later Liferay) I noticed that the project did not run anymore without adding the library mentioned in the resolution. It could be that the commons IO library was already there in WebSphere Portal, or somebody placed it there ages ago, I’ll try and find out when I get a chance.

Leave a Reply

Your email address will not be published. Required fields are marked *