Error 500: java.lang.NoClassDefFoundError:

You may face this error when you are working with Apache commons file upload.

Error 500: java.lang.NoClassDefFoundError:

In order to solve this error, you need to include the Apache commons IO jar in the lib folder of your web application. You can download this jar from:

This entry was posted in Java Web, WebSphere and tagged , , , by Hazem Saleh. Bookmark the permalink.

About Hazem Saleh

Hazem Saleh has more than eleven years of experience in Cloud, Mobile and Open Source technologies. He worked as a software engineer, technical leader, application architect, and technical consultant for many clients around the world. He is an Apache PMC (Project Management Committee) member and a person who spent many years of his life writing open source software. Beside being the author of the "JavaScript Unit Testing" book, "JavaScript Mobile Application Development" book, "Pro JSF and HTML5" book and the co-author of the "Definitive guide to Apache MyFaces" book, Hazem is also an author of many technical articles, a developerWorks contributing author and a technical speaker in both local and international conferences such as ApacheCon North America, Geecon, JavaLand, JSFDays, CON-FESS Vienna and JavaOne. Hazem is an XIBMer, he worked in IBM for ten years. Now, He is working for Nickelodeon New York as a Mobile Architect. He is also an OpenGroup Master Certified Specialist.

2 thoughts on “Error 500: java.lang.NoClassDefFoundError:

  1. Sorry, I’m not sure about the point of this article even if I believe that it’ll help some people.

    Knowing how to find out a missing jar for a classnotfoundexception can be easily resolved with a basic google search. Yes sometimes the problem cannot be solved in few seconds, but still…

    Any decent developer, who pretends to be employed should be able to deal with the annoyances of libraries that don’t/can’t ship with dependencies. The civil way of distributing those libraries should be at list a simple HTML page with a bullet list of required dependencies as well as optional dependencies…

    • Thanks for your comment, however, I made this post because I felt that it may help someone who is still a Java web beginner and may need this type of help.

Comments are closed.