"Brice Ruth" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I'm refactoring (so to speak) my currently working form, which accepts
> an image to be uploaded, to use a DynaValidator(Action?)Form and I'm
> again running into an exception being thrown:
>
> java.lang.NoClassDefFoundError:
> org/apache/commons/fileupload/FileUploadBase$SizeLimitExceededException

This usually happens when your container has another copy of (a different
version of) the Commons FileUpload jar file, and you are not putting all of
your application's jar files in your WEB-INF/lib directory, so that the
wrong jar file is being loaded. Just make sure that your web app is
self-contained and you should be fine.

>
> What's going on here?! Also, to get more mileage out of this post, what
> exactly is the difference between a DynaValidatorForm and a
> DynaValidatorActionForm?!

I believe the only difference is in the key passed to the Validator. The
former uses the value of the 'name' attribute from struts-config.xml, while
the latter uses the value of the 'path' attribute. (But no, I don't know
when you would choose one over the other. ;)

--
Martin Cooper


>
> -- 
> Brice D. Ruth
> Sr. IT Analyst
> Fiskars Brands, Inc.




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to