You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Sven Schliesing <sv...@schliesing.de> on 2006/03/31 22:53:12 UTC
Re: [fileupload] Exception while using Jakarta Commons File upload
Hi,
you also have to include "IO" from Jakarte Commons to your classpath.
The missing class
"org/apache/commons/io/output/DeferredFileOutputStream" is in this package.
You find the package here: http://jakarta.apache.org/commons/io/
Greets,
Sven
PS: Please prefix your subject with [fileupload]
Natu, Ashlesha [IT] wrote:
> Hi all,
>
> I am new to Jakarta Commons File Upload. I downloaded the following jar file from the website:
> commons-fileupload-1.1.jar
>
> I am trying to save an uploaded file to the server. Part of my code is:
> if (FileUpload.isMultipartContent(request))
> {
> DiskFileUpload diskFileUpload = new DiskFileUpload();
> List fileItemsList = diskFileUpload.parseRequest(request);
>
>
> }
>
> When I run it, I get an exception :
> Unexpected error condition thrown (java.lang.NoClassDefFoundError: org/apache/commons/io/output/DeferredFileOutputStream
>
> I added the following in the code:
> import org.apache.commons.io.output.DeferredFileOutputStream;
>
> But then I get a compilation error:
> package org.apache.commons.io.output does not exist
>
>
> Is there any other jar that I have to include in the classpath? Please help...
>
>
> thanks, AN
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org