Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
Author

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

damodaran puliyassery
Greenhorn

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
Marshal

Joined: Mar 22, 2005
Posts: 41125
    
  45
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.


Ping & DNS - my free Android networking tools app
damodaran puliyassery
Greenhorn

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
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Oct 17, 2010
Posts: 6
All,

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.
[/size]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.ClassNotFoundException: org.apache.commons.fileupload.FileUploadException
 
Similar Threads
java.lang.ClassNotFoundException: org.apache.commons.beanutils.Converter
Allocate exception for servlet AxisServlet
marking servlet as Unavailable
log4j ClassNotFoundException
servlets in jar