geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Adam <adam.be...@gmail.com>
Subject ClassNotFoundException: org.apache.commons.io.output.DeferredFileOutputStream
Date Mon, 28 Feb 2011 09:55:10 GMT
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)

Mime
View raw message