File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes java 1.6.0.20 doesn´t error uploading files because jar version Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "java 1.6.0.20 doesn´t error uploading files because jar version" Watch "java 1.6.0.20 doesn´t error uploading files because jar version" New topic
Author

java 1.6.0.20 doesn´t error uploading files because jar version

Dura Hurtado
Ranch Hand

Joined: Feb 16, 2011
Posts: 120
Hi I am using the java 1.6.0.20 version, when I try to upload a file I get the error:



I am using commons-fileupload 1.2.1.jar

¿Any clue?

Thanks
Aditya Jha
Ranch Hand

Joined: Aug 25, 2003
Posts: 227

Can you also paste the code (only the part where this is failing)?
Dura Hurtado
Ranch Hand

Joined: Feb 16, 2011
Posts: 120
Thanks for reply.

I going to explain you it better, I am trying from a .html, upload a file using a servlet. Then I´ve debug it, and no method there is run, the error comes from a jar version or classpath, because I´ve researched on the net, but I don´t find the exact reason.

I going to paste the servlet code below:



And below the .html code:




And the trace is as follows:




Any help would highly appretiated. Thanks
Aditya Jha
Ranch Hand

Joined: Aug 25, 2003
Posts: 227

Looks like the commons-fileupload JAR is acting rather funny. Try to find if there are multiple versions of this JAR file on your system. Also, try replacing this JAR in your application with a freshly downloaded JAR.
Dura Hurtado
Ranch Hand

Joined: Feb 16, 2011
Posts: 120
Hi it´s very fun because it works well if I run it(upload.html) alone but it´s call from an .xhtml file and in that case the error happens.

I going to postg it in the JSF post too.

Thanks
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19544
    
  16

And I've closed that one. UseOneThreadPerQuestion.

If you believe the problem is JSF related I'll move this thread to the JSF forum.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java 1.6.0.20 doesn´t error uploading files because jar version
 
Similar Threads
File Upload Tool
not getting time in action class from dojo tag <sx:datetimepicker type="time"/> in jsp (Struts2)
java.lang.NoClassDefFoundError error
sending a file to servlet
Java 1.6.0.20 broke my SwingWorker threads!