Forums Register Login

JSF tomahawk file upload problem

+Pie Number of slices to send: Send
Hi All,

Thanks all for your valuable suggestions.
Currently iam working on File upload functionality using Tomahawk <t:inputFileUpload> and I am getting following exception when i click on "Upload Photos" command button.

[12/17/08 16:30:07:707 CST] 00000021 WebApp E [Servlet Error]-[Faces Servlet]: java.lang.NoClassDefFoundError: org.apache.commons.io.output.DeferredFileOutputStream
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:59)
at java.lang.J9VMInternals.verify(J9VMInternals.java:57)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:120)
at org.apache.commons.fileupload.DefaultFileItemFactory.createItem(DefaultFileItemFactory.java:103)
at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:350)
at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:302)
at org.apache.myfaces.webapp.filter.MultipartRequestWrapper.parseRequest(MultipartRequestWrapper.java:86)
at org.apache.myfaces.webapp.filter.MultipartRequestWrapper.getParameter(MultipartRequestWrapper.java:182)
at javax.servlet.ServletRequestWrapper.getParameter(ServletRequestWrapper.java:203)
at com.sun.faces.context.RequestParameterMap.get(ExternalContextImpl.java:676)
at com.ibm.faces.util.AjaxUtil.getAjaxModeValue(AjaxUtil.java:77)
at com.ibm.faces.util.AjaxUtil.getAjaxMode(AjaxUtil.java:55)

Any suggestions will be highly appreciated.

Thanks in Advance.
V.Vijay
+Pie Number of slices to send: Send
 

Originally posted by vijay k vemula:
java.lang.NoClassDefFoundError: org.apache.commons.io.output.DeferredFileOutputStream



This means that the mentioned class is missing in the classpath. Just add it to the classpath and you're fine. It's part of Apache Commons IO.

Tomahawk has more dependencies as well. Read the dependencies page at the Tomahawk homepage which exectly you need.
Always look on the bright side of life. At least this ad is really tiny:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 3634 times.
Similar Threads
commons-fileupload
commons fileupload problem
Error while parsing simple plain text fields in multipart form at Restlet 1.1
Tomcat works but Geronimo gives an error - File Uploading
Problem while uploading file using <t:inputFileUpload>
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 06:02:46.