Oh... freaking a. I forgot to also import commons-io file. Seems like that was the problem.
made me wasted a few hours trying to find alternative ways :/ On Jun 26, 4:19 pm, "[email protected]" <[email protected]> wrote: > Hi, I tried using the commons-fileupload-1.2.1.jar in jetty and I get > this problem > > <html> > <head> > <meta http-equiv="Content-Type" content="text/html; > charset=ISO-8859-1"/> > <title>Error 500 org/apache/commons/io/output/ > DeferredFileOutputStream</title> > </head> > <body><h2>HTTP ERROR: 500</h2><pre>org/apache/commons/io/output/ > DeferredFileOutputStream</pre> > <p>RequestURI=/newworkflow/uploadcompanylogo</p><h3>Caused by:</ > h3><pre>java.lang.NoClassDefFoundError > : org/apache/commons/io/output/DeferredFileOutputStream > at org.apache.commons.fileupload.disk.DiskFileItemFactory.createItem > (DiskFileItemFactory.java:196) > at org.apache.commons.fileupload.FileUploadBase.parseRequest > (FileUploadBase.java:358) > at > org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest > (ServletFileUpload.java:126) > at > com.ottocap.NewWorkFlow.server.FileHandlers.UploadCompanyLogo.doPost > (UploadCompanyLogo.java:47) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: > 487) > at org.mortbay.jetty.servlet.ServletHandler.handle > (ServletHandler.java:362) > at org.mortbay.jetty.security.SecurityHandler.handle > (SecurityHandler.java:216) > at org.mortbay.jetty.servlet.SessionHandler.handle > (SessionHandler.java:181) > at org.mortbay.jetty.handler.ContextHandler.handle > (ContextHandler.java:729) > at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: > 405) > at org.mortbay.jetty.handler.HandlerWrapper.handle > (HandlerWrapper.java:152) > at org.mortbay.jetty.handler.RequestLogHandler.handle > (RequestLogHandler.java:49) > at org.mortbay.jetty.handler.HandlerWrapper.handle > (HandlerWrapper.java:152) > at org.mortbay.jetty.Server.handle(Server.java:324) > at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: > 505) > at org.mortbay.jetty.HttpConnection$RequestHandler.content > (HttpConnection.java:843) > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647) > at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) > at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) > at org.mortbay.io.nio.SelectChannelEndPoint.run > (SelectChannelEndPoint.java:395) > at org.mortbay.thread.QueuedThreadPool$PoolThread.run > (QueuedThreadPool.java:488) > </pre> > <p><i><small><a href="http://jetty.mortbay.org/">Powered by > Jetty://</a></small></i></p><br/> > > <br/> > <br/> > <br/> > <br/> > <br/> > <br/> > <br/> > <br/> > <br/> > <br/> > <br/> > <br/> > <br/> > <br/> > <br/> > <br/> > <br/> > <br/> > <br/> > > </body> > </html> > > Why doesnt this seem to work in jetty? How can I code a fileupload for > gwt that works? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
