I use commons-fileupload-1.1.1 and commons-io-1.3.2 to upload/download files in a web application with java 6. In localhost, it runs correctly because I have the 2 jars in my lib (server\default\lib) (I use jboss 4).
When I deploy the application in the server, I have an exception when I try to upload/download files:
java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileUploadException
The one difference between localhost and the server is: in the server, I have not the 2 jars.
When I change the classpath of the project and I add the two jars, I deploy the application --> I have the same exception.
Any suggestions?