Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 78174 invoked from network); 10 Jul 2004 10:14:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 10 Jul 2004 10:14:35 -0000 Received: (qmail 48391 invoked by uid 500); 10 Jul 2004 10:14:31 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 48370 invoked by uid 500); 10 Jul 2004 10:14:31 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 48357 invoked by uid 99); 10 Jul 2004 10:14:30 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [212.113.174.9] (HELO smtp.netcabo.pt) (212.113.174.9) by apache.org (qpsmtpd/0.27.1) with ESMTP; Sat, 10 Jul 2004 03:14:28 -0700 Received: from eurico ([213.22.24.229]) by smtp.netcabo.pt with Microsoft SMTPSVC(5.0.2195.6713); Sat, 10 Jul 2004 11:14:25 +0100 From: "Eurico Frade" To: "'Jakarta Commons Users List'" Subject: RE: FileUpload.setSizeMax(I)V Error Date: Sat, 10 Jul 2004 11:14:22 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 In-Reply-To: <20040709111420.X63628@minotaur.apache.org> Thread-Index: AcRl4O3OwU74JgyxTKuTpJ/uP9fK7QAhaGXw Message-ID: X-OriginalArrivalTime: 10 Jul 2004 10:14:25.0618 (UTC) FILETIME=[AD772320:01C46666] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N The only difference is that I'm using Jboss 3.0.8. -----Original Message----- From: Martin Cooper [mailto:martinc@apache.org] Sent: sexta-feira, 9 de Julho de 2004 19:16 To: Jakarta Commons Users List Subject: RE: FileUpload.setSizeMax(I)V Error On Fri, 9 Jul 2004, Eurico Frade wrote: > If I don't have the file in classpath I get a NoClassDefFoundError and if I > have the file in classpath I get the error that I had describe. Hmm, that doesn't make sense if you're using the struts-upload.war file, since that war contains all of the classes required for the app to work correctly. I just tested struts-upload.war from Struts 1.1 Final on JBoss 3.2.1, and everything works perfectly. What is different about your configuration, I wonder? -- Martin Cooper > > -----Original Message----- > From: Martin Cooper [mailto:martinc@apache.org] > Sent: quarta-feira, 7 de Julho de 2004 22:06 > To: Jakarta Commons Users List > Subject: Re: FileUpload.setSizeMax(I)V Error > > > > On Wed, 7 Jul 2004, Eurico Frade wrote: > >> I'm using Jboss and I'd put the commons-fileupload-1.0.jar in the > classpath. >> When I run the struts-upload.war example I have the following error. What >> should I do? > > Take out the Commons FileUpload jar that you added. The struts-upload app > already includes the version of FileUpload it needs, so you don't want > another one in the classpath (especially since it appears to be the wrong > version). > > -- > Martin Cooper > >> >> >> >> Thanks >> >> >> >> java.lang.NoSuchMethodError: >> org.apache.commons.fileupload.FileUpload.setSizeMax(I)V >> >> at >> > org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest(Common >> sMultipartRequestHandler.java:220) >> >> at >> org.apache.struts.util.RequestUtils.populate(RequestUtils.java:934) >> >> at >> > org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j >> ava:779) >> >> at >> > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:246) >> >> at >> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292) >> >> at >> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510) >> >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) >> >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) >> >> at >> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:366) >> >> at >> > org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandl >> er.java:284) >> >> at >> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:577) >> >> at org.mortbay.http.HttpContext.handle(HttpContext.java:1674) >> >> at >> > org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext >> .java:544) >> >> at org.mortbay.http.HttpContext.handle(HttpContext.java:1624) >> >> at org.mortbay.http.HttpServer.service(HttpServer.java:875) >> >> at org.jboss.jetty.Jetty.service(Jetty.java:541) >> >> at org.mortbay.http.HttpConnection.service(HttpConnection.java:785) >> >> at >> org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:935) >> >> at org.mortbay.http.HttpConnection.handle(HttpConnection.java:802) >> >> at >> org.mortbay.http.SocketListener.handleConnection(SocketListener.java:200) >> >> at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:294) >> >> at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:743) >> >> at java.lang.Thread.run(Thread.java:534) >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org