• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
damodaran puliyassery
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sir i added the jar files in library path.
Any other methods available in eclipse to add the jar files???
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It needs to be deployed, not just available at compilation.
 
Jitmer Jijo
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic