aspose file tools*
The moose likes Struts and the fly likes Problem with File Upload Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem with File Upload" Watch "Problem with File Upload" New topic
Author

Problem with File Upload

Bunty Paul
Greenhorn

Joined: Jun 26, 2006
Posts: 28
I am using Jsp + struts

I am using struts formfile tag for file upload.

Iam getting the following exception

<code>
java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileUploadBase$SizeLimitExceededException
java.lang.Class.getDeclaredConstructors0(Native Method)
java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
java.lang.Class.getConstructor0(Class.java:2640)
java.lang.Class.newInstance0(Class.java:321)
java.lang.Class.newInstance(Class.java:303)
org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:143)
org.apache.struts.util.RequestUtils.getMultipartHandler(RequestUtils.java:562)
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:428)
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:804)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:203)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
</code>

I have commons-fileupload.jar in my lib directory.

what is the problem here
Sri Gnana
Ranch Hand

Joined: Apr 29, 2004
Posts: 166
Check with the server path and file size.


Thanks & Regards
Sri Gnana
Everythings Programmed!...
Bunty Paul
Greenhorn

Joined: Jun 26, 2006
Posts: 28
that was version mismatch problem...
now it is resolver


this class was added from struts 1.2.9
 
jQuery in Action, 2nd edition
 
subject: Problem with File Upload