geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Hejl <martin.h...@guh-software.de>
Subject Re: ClassNotFoundException: org.apache.commons.io.output.DeferredFileOutputStream
Date Tue, 15 Mar 2011 17:15:43 GMT
Hi Kevan,

Probably I'm doing something wrong - but I'm seeing the same effect.

Here's what I did:

    * create a simple Dynamic Web Project (jsp file containing the form
      definition, and a servlet that the form-action points to
    * add commons-fileupload.jar and commons-io.jar to
      WebContent/WEB-INF/lib/
    * Deploy

When posting the form from the jsp, I get this:

ERROR [[PostServlet]] Servlet.service() for servlet PostServlet threw 
exception
java.lang.ClassNotFoundException: 
org.apache.commons.io.output.DeferredFileOutputStream in classloader 
org.apache.geronimo.configs/axis2/2.2.1/car
     at 
org.apache.geronimo.kernel.config.MultiParentClassLoader.loadOptimizedClass(MultiParentClassLoader.java:407)
     at 
org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:257)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
     at 
org.apache.commons.fileupload.disk.DiskFileItemFactory.createItem(DiskFileItemFactory.java:179)
     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.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:116)
     at de.guhsoft.test.PostServlet.doPost(PostServlet.java:38)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
     at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
     at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
     at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
     at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
     at 
org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:420)
     at 
org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47)
     at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
     at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
     at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
     at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
     at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
     at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
     at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
     at 
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:396)
     at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:214)
     at 
org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:344)
     at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
     at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
     at java.lang.Thread.run(Thread.java:662)

Any help is appreciated

Best regards,
Martin

Am 28.02.2011 10:55, schrieb Ben Adam:
>
> Hi
>
> I am getting the following runtime error in geronimo 2.2.1 while 
> trying upload a file using a servlet to activemq.  Any help appriciated.
>
> Regards,
> Adam
>
> 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)
>  com.hcl.stpa.simulator.FileUploadServlet.doPost(FileUploadServlet.java:74)
>  javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
>  javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
>
>
> root cause
>
> java.lang.ClassNotFoundException: 
> org.apache.commons.io.output.DeferredFileOutputStream in classloader 
> org.apache.geronimo.configs/axis2/2.2.1/car
>  org.apache.geronimo.kernel.config.MultiParentClassLoader.loadOptimizedClass(MultiParentClassLoader.java:407)
>  org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:257)
>  java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>  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)
>  com.hcl.stpa.simulator.FileUploadServlet.doPost(FileUploadServlet.java:74)
>  javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
>  javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
>

-- 
G&  H Softwareentwicklung GmbH    Tel.: {+49|0} 7451 - 53 706 0
Robert-Bosch-Str. 23              Sitz der Gesellschaft: Horb a.N.
D-72160 Horb a.N.                 Amtsgericht Stuttgart HRB 440599
Geschäftsführer:                  Dirk Gfrörer, Martin Hejl


Mime
View raw message