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.
Can you be more specific about where in the user guide, and which deprecated classes and methods are being used?
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.
It is listed as a dependency here:
http://jakarta.apache.org/commons/fileupload/dependencies.html
--
Martin Cooper
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 exceptionroot cause
java.lang.NoClassDefFoundError: org/apache/commons/io/output/DeferredFileOutputStream
org.apache.commons.fileupload.disk.DiskFileItemFactory.createItem(DiskFileItemFactory.java:179)
org.apache.commons.fileupload.FileUploadBase.createItem (FileUploadBase.java:500)
org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:367)
org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:116)
siTecla.servlet.ControlIntroduccioCurriculum.doPost (ControlIntroduccioCurriculum.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.comAVÍ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.
