Hi Guys,
I'm trying to upload a file to the server following the common
examples of "FileUpload" and I have the following error:
java.lang.NoClassDefFoundError: org/apache/commons/fileupload/
FileUploadException
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
at java.lang.Class.getConstructor0(Class.java:2671)
at java.lang.Class.newInstance0(Class.java:321)
at java.lang.Class.newInstance(Class.java:303)
at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
at org.mortbay.jetty.servlet.ServletHolder.getServlet
(ServletHolder.java:339)
.......
I can put my code, but the problem is in the server side, concretely
when I use the classes that required from the package commons-
fileupload.jar, for example this import:
import org.apache.commons.fileupload.FileUploadException;
Im running the application in host mode, but ive tried to deploy it to
Google App Engine, and i've the same error. If I dont use that package
in my server class the calls work good, so the problem must to be king
of configuration about classpath or something...
Does anyone know how to configure my eclipse to fix this error?
Thanks in advance.
--
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.