Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 19577 invoked from network); 9 Nov 2007 16:01:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Nov 2007 16:01:20 -0000 Received: (qmail 25539 invoked by uid 500); 9 Nov 2007 16:01:03 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 25494 invoked by uid 500); 9 Nov 2007 16:01:02 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 25483 invoked by uid 99); 9 Nov 2007 16:01:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Nov 2007 08:01:02 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mwessendorf@gmail.com designates 64.233.162.235 as permitted sender) Received: from [64.233.162.235] (HELO nz-out-0506.google.com) (64.233.162.235) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Nov 2007 16:01:03 +0000 Received: by nz-out-0506.google.com with SMTP id r28so500933nza for ; Fri, 09 Nov 2007 08:00:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=FnJZe+DFg6Re6mlQ/qAQBiDOXz2/qCIMCyrNRfdfoPU=; b=mtNfVNsfSDaXlw8hwCkGPhIQz4XJgoQCi12D3jUTueamSq4WE1eU9Kn1Fg0dtX8mkZSnmEOdMONupZSMU7PSWy4P0i6izk5J0ZCFau+JiDGWV2XGDpLdH8/hqrFuaXMyUVG7T+oBhVvAtX+3cPjvQPtx10TfriPjbWUa7h2a5do= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=iB+0mi/mxAA1cVCkrNkzOUdR0S8rHP1XbOj7TuI4I1o7MN1/yGobmHQ6YZk6eXfsyBoKf796hXm7NkHhxgyyTdg3Cob9FDP1V+8sk2hSNENHuM8VnO+rfp8TTrHU9UKaRFNipm7+nYv5Y9wU7neR/LYa835tnLozS0OE1XoLKmg= Received: by 10.115.76.1 with SMTP id d1mr495206wal.1194624041398; Fri, 09 Nov 2007 08:00:41 -0800 (PST) Received: by 10.114.79.10 with HTTP; Fri, 9 Nov 2007 08:00:41 -0800 (PST) Message-ID: <71235db40711090800y61b0ade2s43650b8e827ef722@mail.gmail.com> Date: Fri, 9 Nov 2007 17:00:41 +0100 From: "Matthias Wessendorf" Sender: mwessendorf@gmail.com To: "MyFaces Discussion" Subject: Re: [Myfaces][Trinidad] error while uploading a zip file In-Reply-To: <71235db40711090758k488c9f09rabd379915c935a74@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47347454.6070801@tecnotp.it> <71235db40711090657s33922e58x3c46cf0a9c9b9535@mail.gmail.com> <71235db40711090708o6138544cqb8986143fae67079@mail.gmail.com> <473481A3.3010606@tecnotp.it> <71235db40711090758k488c9f09rabd379915c935a74@mail.gmail.com> X-Google-Sender-Auth: 8a15d3d75558977e X-Virus-Checked: Checked by ClamAV on apache.org source says "uploadMaxFileSize" and "uploadThresholdSize". So this is right: http://wiki.apache.org/myfaces/Setup_For_File_Uploads On Nov 9, 2007 4:58 PM, Matthias Wessendorf wrote: > here is all you need to know for Trinidad: > > http://myfaces.apache.org/trinidad/devguide/fileUpload.html > > and on Tomahawk... puh' ... hard to say. The "API" is total different. > (the context-params are named different, in these two pages) > > Let me check the documentation, ahm... the source > > -Matthias > > > > On Nov 9, 2007 4:49 PM, Renzo Tomaselli wrote: > > > > Done, indeed now it seems working well. One more jar for my collection, > > there are already so many I don't know what they are for :-( . > > One more point, though: I'm having uploaded file threshold problems - I > > know I have to configure my web.xml - but it seems there are documented two > > different ways: > > > > from myfaces docs: http://myfaces.apache.org/tomahawk/extensionsFilter.html > > from myfaces wiki: http://wiki.apache.org/myfaces/Setup_For_File_Uploads > > > > since they refer to different filter classes - which is the right one ? > > > > > > > > > > Matthias Wessendorf wrote: > > try to just add commons-io > > > > On Nov 9, 2007 3:57 PM, Matthias Wessendorf wrote: > > > > > > this isn't specific to myfaces/trinidad. this is caused by tomahawk > > > > > > On Nov 9, 2007 3:53 PM, Renzo Tomaselli wrote: > > > > > > Hi, I'm using component tr:inputFile from Trinidad. > > I successfully uploaded several kind of files to my application without > > problems. > > When I try to upload a zip file, I get a server error, according to the > > following trace: > > > > java.lang.NoClassDefFoundError: > > org/apache/commons/io/output/DeferredFileOutputStream > > at > > org.apache.commons.fileupload.DefaultFileItemFactory.createItem(DefaultFileItemFactory.java:102) > > at > > org.apache.commons.fileupload.FileUploadBase.createItem(FileUploadBase.java:500) > > at > > org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:367) > > at > > org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:268) > > at > > org.apache.myfaces.webapp.filter.MultipartRequestWrapper.parseRequest(MultipartRequestWrapper.java:85) > > ... > > Eclipse report the top error as occurring in > > org.apache.commons.fileupload.DefaultFileItemFactory from > > commons-fileupload-1.1.1.jar. > > What else should I include in my project to account specifically for zip > > uploading and the missing class DeferredFileOutputStream ? > > > > Thanks -- Renzo > > > > > > > > > > -- > > Matthias Wessendorf > > > > further stuff: > > blog: http://matthiaswessendorf.wordpress.com/ > > mail: matzew-at-apache-dot-org > > > > > > > > > > > > > > > > -- > > Matthias Wessendorf > > further stuff: > blog: http://matthiaswessendorf.wordpress.com/ > mail: matzew-at-apache-dot-org > -- Matthias Wessendorf further stuff: blog: http://matthiaswessendorf.wordpress.com/ mail: matzew-at-apache-dot-org