Commons IO is listed as a dependency here:

   http://jakarta.apache.org/commons/fileupload/dependencies.html

Niall

----- Original Message ----- 
From: "Pere Cortada Bonjoch" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, February 28, 2006 4:28 PM
Subject: [FileUpload] Commons-io is required?


> Hello,
> When i updated the commons-fileupload from 1.0 to 1.1  realized 2 issues:
>   First, the example from userguide uses deprecated classes and functions.
>   Second , when i uses the new code get an error
> java.lang.NoClassDefFoundError:
> org/apache/commons/io/output/DeferredFileOutputStream
>
> I think that commons-io is not listed as an requirement for FileUpload.
> This could be a bug.
>
> Thanks
>
>
> PD: All the error log
>
>
>   HTTP Status 500 -
>
> ------------------------------------------------------------------------
>
> *type* Exception report
>
> *message*
>
> *description* _The server encountered an internal error () that
> prevented it from fulfilling this request._
>
> *exception*
>
> javax.servlet.ServletException: Servlet execution threw an exception
>
> *root cause*
>
> java.lang.NoClassDefFoundError:
org/apache/commons/io/output/DeferredFileOutputStream
>
org.apache.commons.fileupload.disk.DiskFileItemFactory.createItem(DiskFileIt
emFactory.java:179)
>
org.apache.commons.fileupload.FileUploadBase.createItem(FileUploadBase.java:
500)
>
org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.jav
a:367)
>
org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(Servlet
FileUpload.java:116)
>
siTecla.servlet.ControlIntroduccioCurriculum.doPost(ControlIntroduccioCurric
ulum.java:115)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
> *note* _The full stack trace of the root cause is available in the
> Apache Tomcat/5.5.9 logs._
>
> ------------------------------------------------------------------------
>
>
>       Apache Tomcat/5.5.9
>
>
> -- 
> ------------------------------------------------------------------------
>
> *Pere Cortada*
> *Enginyeria de Sistemes*
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> Tel/Fax: +34 977110526 / 977110529
> Av. Països Catalans 15 C 1er 2a - 43007 Tarragona (Spain)
>
>
> www.simpple.com <http://www.simpple.com>
>
> AVÍS LEGAL
>
> Aquesta informació és privada i confidencial i està dirigida únicament
> al seu destinatari. Si vosté no és el destinatari original d'aquest
> missatge si us plau elimini'l. La distribució o còpia d'aquest missatge
> queda estrictament prohibida. Aquesta comunicació és sols per a
> propòsits d'informació i no pot ser considerada com una declaració
> oficial del SIMPPLE. La transmissió d'e-mails no garanteix que el correu
> electrònic sigui segur o lliure d'error. Per tant, no manifestem que
> aquesta informació sigui completa o precisa.
>
> Esta información es privada y confidencial y está dirigida únicamente a
> su destinatario. Si usted no es el destinatario original de este mensaje
> y por este medio pudo acceder a dicha información por favor elimine el
> mensaje. La distribución o copia de este mensaje esta estrictamente
> prohibida. Esta comunicación es solo para propósitos de información y no
> deberian ser considerados como una declaración oficial de SIMPPLE. La
> transmisión de e-mails no garantiza que el correo electronico sea seguro
> o libre de error. Por consiguiente, no manifestamos que esta informacion
> sea completa o precisa.
>
> This information is private and confidential and intended for the
> recipient only. If you are not the intended recipient of this message
> you are hereby notified that any review, dissemination, distribution or
> copying of this message is strictly prohibited. This communication is
> for information purposes only and should not be regarded as an official
> statement from SIMPPLE. Email transmission cannot be guaranteed to be
> secure or error-free. Therefore, we do not represent that this
> information is complete or accurate and it should not be relied upon as
> such.
>
>


----------------------------------------------------------------------------
----


> Hello,
> When i updated the commons-fileupload from 1.0 to 1.1  realized 2 issues:
>   First, the example from userguide uses deprecated classes and functions.
>   Second , when i uses the new code get an error
java.lang.NoClassDefFoundError:
org/apache/commons/io/output/DeferredFileOutputStream
>
> I think that commons-io is not listed as an requirement for FileUpload.
This could be a bug.
>
> Thanks
>
>
> PD: All the error log
>
> HTTP Status 500 -
>
> --------------------------------------------------------------------------
------
>
> type Exception report
>
> message
>
> description The server encountered an internal error () that prevented it
from fulfilling this request.
>
> exception
>
> javax.servlet.ServletException: Servlet execution threw an exception
> root cause
>
> java.lang.NoClassDefFoundError:
org/apache/commons/io/output/DeferredFileOutputStream
>
org.apache.commons.fileupload.disk.DiskFileItemFactory.createItem(DiskFileIt
emFactory.java:179)
>
org.apache.commons.fileupload.FileUploadBase.createItem(FileUploadBase.java:
500)
>
org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.jav
a:367)
>
org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(Servlet
FileUpload.java:116)
>
siTecla.servlet.ControlIntroduccioCurriculum.doPost(ControlIntroduccioCurric
ulum.java:115)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> note The full stack trace of the root cause is available in the Apache
Tomcat/5.5.9 logs.
>
>
> --------------------------------------------------------------------------
------
>
> Apache Tomcat/5.5.9
>
>
> -- 
>
> --------------------------------------------------------------------------
------
>         Pere Cortada
>             Enginyeria de Sistemes
>             [EMAIL PROTECTED]
>             Tel/Fax: +34 977110526 / 977110529
>             Av. Països Catalans 15 C 1er 2a - 43007 Tarragona (Spain)
>
>       www.simpple.com
>



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

Reply via email to