File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes java.lang.ClassNotFoundException: org.apache.commons.fileupload.FileUploadException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "java.lang.ClassNotFoundException: org.apache.commons.fileupload.FileUploadException" Watch "java.lang.ClassNotFoundException: org.apache.commons.fileupload.FileUploadException" New topic

java.lang.ClassNotFoundException: org.apache.commons.fileupload.FileUploadException

damodaran puliyassery

Joined: Dec 17, 2009
Posts: 13
i am trying to upload files from my flex RIA to server.But i am getting this error in eclipse console

thanks in advance
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Have you added the FileUpload library to the runtime classpath? Keep in mind that the runtime classpath is different from the compile-time classpath - it consists of the WEB-INF/classes and WEB-INF/lib directories of the web app in question.
damodaran puliyassery

Joined: Dec 17, 2009
Posts: 13
Sir i added the jar files in library path.
Any other methods available in eclipse to add the jar files???
David Newton

Joined: Sep 29, 2008
Posts: 12617

It needs to be deployed, not just available at compilation.
Jitmer Jijo

Joined: Oct 17, 2010
Posts: 6

If you are getting the exception copy both commons_io.jar and commons_file_upload.jar files to the WEB_INF/lib folder of the war file in the app/web server.
[size=12]It should work. Some IDE s don't automatically put the jar files in the library path to the deployment war files in the server.
I agree. Here's the link:
subject: java.lang.ClassNotFoundException: org.apache.commons.fileupload.FileUploadException
It's not a secret anymore!