Hi. I'm trying to use the Apache Commons FileUpload component (http://commons.apache.org/fileupload). It works fine on my local PC (Java 1.5.0_15) but fails on the Unix server running Tomcat 4.1.29 and Java 1.4.2_12-b03. I've got the latest version of the upload component in the WEB-INF/lib folder. It throws this error (included only the top section; there are more, similar errors having to do with each fileupload component call). Do I need an older version of the upload component to work with this version of Tomcat and Java? If so, which version do I need to download? The oldest I could find dated to 2003. Thanks.
The server encountered an internal error () that prevented it from fulfilling this request. org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 15 in the jsp file: /fpauto/viewPremiums.jsp Generated servlet error: [javac] Compiling 1 source file /usr/local/jakarta-tomcat-4.1.29/work/mywork/fpauto/viewPremiums_jsp.java:12: package org.apache.commons.fileupload does not exist import org.apache.commons.fileupload.FileItem; /usr/local/jakarta-tomcat-4.1.29/work/mywork/fpauto/viewPremiums_jsp.java:14: package org.apache.commons.fileupload.servlet does not exist import org.apache.commons.fileupload.servlet.ServletFileUpload; /usr/local/jakarta-tomcat-4.1.29/work/mywork/fpauto/viewPremiums_jsp.java:15: package org.apache.commons.fileupload.disk does not exist import org.apache.commons.fileupload.disk.DiskFileItemFactory; /usr/local/jakarta-tomcat-4.1.29/work/mywork/fpauto/viewPremiums_jsp.java:16: package org.apache.commons.fileupload does not exist import org.apache.commons.fileupload.FileUpload; /usr/local/jakarta-tomcat-4.1.29/work/mywork/fpauto/viewPremiums_jsp.java:74: cannot resolve symbol symbol : class DiskFileItemFactory location: class org.apache.jsp.viewPremiums_jsp DiskFileItemFactory factory = new DiskFileItemFactory(); An error occurred at line: 15 in the jsp file: /fpauto/viewPremiums.jsp Generated servlet error: /usr/local/jakarta-tomcat-4.1.29/work/mywork/fpauto/viewPremiums_jsp.java:74: cannot resolve symbol symbol : class DiskFileItemFactory location: class org.apache.jsp.viewPremiums_jsp DiskFileItemFactory factory = new DiskFileItemFactory(); [I accidentally posted this to the Sun JSP forum and was told this is the better place for this question. Thanks.] -- View this message in context: http://www.nabble.com/Apache-FileUpload-problem-tp19088887p19088887.html Sent from the Commons - Issues mailing list archive at Nabble.com.
