---- "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: 
> Hi all,
> this the code i execute... following the doc seems to be right... i created 
> the war with inside commons-fileupload-1.2.jar and commons-io-1.3.1.jar.
> but when i try to execute this
> FileItemFactory factory = new DiskFileItemFactory();
> //Create a new file upload handler
> ServletFileUpload upload = new ServletFileUpload(factory);
> Method[] mets = upload.getClass().getMethods();
> try {
>       //FileItem  
>       List items = upload.parseRequest(request);  <-- here i ve the error 
> java.lang.NoSuchMethodError
> ...
> } catch() ...
> 
> i've this error:
> 
> java.lang.NoSuchMethodError: 
> org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(Lorg/apache/commons/fileupload/RequestContext;)Ljava/util/List;

I suspect that there are multiple copies of commons-fileupload in the 
classpath. Your code is compiled against one version but at runtime another 
version is being found which does not have a method with the required signature.

Regards,

Simon

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to