File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes JSF tomahawk file upload problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF tomahawk file upload problem" Watch "JSF tomahawk file upload problem" New topic

JSF tomahawk file upload problem

vijay k vemula

Joined: Dec 17, 2008
Posts: 10
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:
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(
at java.lang.J9VMInternals.verify(
at java.lang.J9VMInternals.initialize(
at org.apache.commons.fileupload.DefaultFileItemFactory.createItem(
at org.apache.commons.fileupload.FileUploadBase.parseRequest(
at org.apache.commons.fileupload.FileUploadBase.parseRequest(
at org.apache.myfaces.webapp.filter.MultipartRequestWrapper.parseRequest(
at org.apache.myfaces.webapp.filter.MultipartRequestWrapper.getParameter(
at javax.servlet.ServletRequestWrapper.getParameter(
at com.sun.faces.context.RequestParameterMap.get(

Any suggestions will be highly appreciated.

Thanks in Advance.
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Originally posted by vijay k vemula:

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.
I agree. Here's the link:
subject: JSF tomahawk file upload problem
It's not a secret anymore!