The message is clear, you don't have commons-fileupload-1.2.jar in
your classpath.

-Manolo



On Tue, Apr 27, 2010 at 5:58 PM, DeliveryNinja <noble1...@googlemail.com> wrote:
> I've recently been building some blogging software just to brush up on
> my skills and I wanted to add file upload to new posts.
>
> I created a servlet which will get the post request from the file
> upload box.
>
> What happens then is I get the following stack trace
>
> java.lang.NoClassDefFoundError: Could not initialize class
> org.apache.commons.fileupload.disk.DiskFileItem
>        at
> org.apache.commons.fileupload.disk.DiskFileItemFactory.createItem(DiskFileItemFactory.java:
> 196)
>        at
> org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:
> 358)
>        at
> org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:
> 126)
>        at blogger.server.FileUpload.getFileItem(FileUpload.java:77)
>
> I have not edited any xml files and I'm using commons-
> fileupload-1.2.1.jar and commons-io-1.4.jar but i'm only using them in
> a class called FileUpload in the server package of my GWT application.
>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to