|Re: Integrating BIRT and fileupload in GWT [message #794392 is a reply to message #794391]
||Thu, 09 February 2012 08:25
| Chris K
Registered: February 2012
I got the error when uploading medium-sized files, using a basic upload-servlet. Without BIRT there were no such problems. With BIRT there are. But only with files around 700kbytes - small files around 5kbytes were successfully uploaded.
Finally I stumble upon the solution myself, after hours of google-ing:
I need to have the commons-io-2.1.jar in my classpath!
I found a hint in the book: http://www.scribd.com/doc/59180898/111/GWT%E2%80%99s-File-Upload-Widget at book-page 301:
Don't Forget to Add the Commons IO JAR File to Your Build Path
Apache Commons projectsoften have dependencies on one another; for example, thefileUpload project uses Commons IO. Therefore, you must include both CommonsfileUpload and Commons IO JAR files on your build path for Commons fileUpload to workproperly. A "class not found" exception when you are using Commons fileUpload most likely meansthat you've forgotten to add the Commons IO JAR to your build path.
So basically the fileupload uses different approaches, each for different file sizes (e.g. small, large, very large --> memory, temporary file on disk, should not be permitted) as described in http://commons.apache.org/fileupload/using.html. When having BIRT and uploading medium-sized files, fileuploader needs another class to procede -- small files are working.
Thank you for your time Jason!
(I will put the answer in my first question, so others can directly see)
Powered by FUDForum
. Page generated in 0.07305 seconds