Apache FileUpload - what version of Tomcat can run it?

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();

Apache FileUpload - what version of Tomcat can run it?First of all, why don't you ask Apache specific questions at the Apache mailinglist?
Regarding to your actual problem: those are just ordinary compilation errors which are complaining that the mentioned packages and classes aren't available in the classpath. The solution is obvious: add the mentioned packages and classes (or in this case, the JAR file(s) with it) to the classpath during compile time and you're fine.

Similar Messages

  • I am running Facetime version 1.0.3 (167) on MacBook Pro OSx 10.6.8 but Facetime fails to other Mac devices. What version of Facetime can I upgrade to in order to rectify this ?.

    I am running Facetime version 1.0.3 (167) on MacBook Pro OSx 10.6.8 but Facetime fails to other Mac devices. What version of Facetime can I upgrade to in order to rectify this ?.

    Unable to make or receive FaceTime calls after April 16, 2014

  • Love firefox but am running on MAC OS X 4.0 still. what version of firefox can i download to be compatible with my system and where can i download? jo

    love firefox but am running on MAC OS X 4.0 still. what version of firefox can i download to be compatible with my system and where can i download? jo

    Firefox 3.6.21 - http://www.mozilla.com/en-US/firefox/all-older.html

  • What version of imovie will run on Lion and where can I get it?

    What version of imovie will run on Lion and where can I get it?

    You can check here:  http://www.adobe.com/products/flash/about/  to see which version you should install for your Mac and OS. Note that version 10,1,102,64 is the last version available to PPC Mac users*. The latest version,10.3.183.23 or later, is for Intel Macs only running Tiger or Leopard, as Adobe no longer support the PPC platform. Version 11.4.402.265 or later is for Snow Leopard onwards.
    * Unhelpfully, if you want the last version for PPC (G4 or G5) Macs, you need to go here:  http://kb2.adobe.com/cps/142/tn_14266.html  and scroll down to 'Archived Versions/Older Archives'. Flash Player 10.1.102.64 is the one you download. More information here:  http://kb2.adobe.com/cps/838/cpsid_83808.html
    You should first uninstall any previous version of Flash Player, using the uninstaller from here (make sure you use the correct one!):
    http://kb2.adobe.com/cps/909/cpsid_90906.html
    and also that you follow the instructions closely, such as closing ALL applications first before installing. You must also carry out a permission repair after installing anything from Adobe.
    (If you are running a PPC Mac with Flash Player 10.1.102.64 and are having problems with watching videos on FaceBook or other sites, try the following solution which fools the site into thinking that you are running the version 11.5.502.55:)
    Download this http://scriptogr.am/nordkril/post/adobe-flash-11.5-for-powerpc to your desktop, unzip it, and replace the current Flash Player plug-in which is in your main/Library/Internet Plug-Ins folder, (not the user Library). Save the old one just in case this one doesn't work.

  • How do I find what version of firmware is running on my iPhone 4?

    How do I find what version of firmware is running on my iPhone 4?

    Is the actual firmware shown next to Version?
    I can see a Modem Firmware but not the phones actual firmware! Unless of course Version is the veer ware version!

  • What version of Java can be used in the scriptlet part of JSP 2.1?

    hi
    can anyone tell me What version of Java can be used in the scriptlet part of JSP 2.1?
    Does that depend on the app server we use?
    we are not sure whether we can use in Java 5 in JSP 2.0 itself?

    yes im sure , im using thread in the both sidesthat doesn't give a deadlock... you need two or more threads running in the same side to get a deadlock! do you know what causes a deadlock?
    and all the streams and the fkuses are finehow have you tested that?
    about the broswe display i dont know i havent tried.http://forum.java.sun.com/thread.jsp?forum=31&thread=163929

  • I have just got an old ibook 4g and i want to know what os system i can run on it please

    i have just got an old refurbed ibook 4g and was wondering if anyone out there would know what os system i can run on it pleased

    Hello,
    Depends on which version of the iBook G4 you own. If it greater than the 800Mhz model then you could install Mac OS X 10.5 (leopard) Otherwise it would be Mac OS X 10.4 (Tiger)
    There are alterative PPC versions of Linux like Ubuntu that could also be installed as an OS
    Best of Luck

  • What version of firefox can I use with windows me?

    What version of Firefox can I use with windows me? Where can I get it?

    Firefox 3.0 versions and later do not work on the Windows 98/ME platform
    *http://www.mozilla.com/en-US/firefox/system-requirements.html - Mozilla Firefox 3.6 System Requirements
    Firefox 2.0.0.20 is the last release that runs on the Windows 98 and Windows ME platform.
    * https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/2.0.0.20/win32/en-US/

  • What versions of Reader can fill-in forms?

    Hi,
    I have Adobe Acrobat 9 and I am trying to create a short form.  The recipients are not all computer savy and will have various versions of reader so I need this to be super simple. 
    I have been testing it and Reader 7 doesn't seem to be able to fill-in the form.   I have not been able to find any documentation that states what versions of Reader can fillin forms to be returned. 
    I would also like to have the file emailed back as the filled form, but I understand I do not have to use "distribute forms". 
    Any help would be appreciated!
    Thanks,
    C

    Actually, the first version of Reader that could take advantage of Reader-enabled documents is Reader 5.1. The problem is backwards compatibility for documents that have been enabled with Acrobat due to various changes since Reader Extensions (usage rights) was first introduced. And for the sake of completeness, versions of Acrobat prior to 8 could apply certain usage rights (e.g., commenting, typewriter), just not those that allow saving a filled-in form.

  • I have PS CS5. It does not recognize .CR2 files from my new Canon PowerShot SX50HS camera. Can I update my CR plugin? To what version? Where can I get it?

    I have PS CS5. It does not recognize .CR2 files from my new Canon PowerShot SX50HS camera. Can I update my CR plugin? To what version? Where can I get it?

    http://helpx.adobe.com/creative-suite/kb/camera-raw-plug-supported-cameras.html
    http://helpx.adobe.com/x-productkb/global/camera-raw-compatible-applications.html
    Mylenium

  • What version of photoshop can i use on mac osx 10.8.3

    what version of photoshop can i use on mac osx 10.8.3

    I have Photoshop CC on my 10.8.4 system if you want the Cloud version.

  • I still have os x 10.5.8. and need latest snow leopard version so I can run quickbooks2012. What do i need to buy to get it and where?

    i still have os x 10.5.8 and need the latest version of snow leopard so i can run quickbooks. What do i need to buy and where?

    Snow Leopard/10.6.x Requirements...
    General requirements
       * Mac computer with an Intel processor
        * 1GB of memory (I say 2GB at least)
        * 5GB of available disk space (I say 30GB at least)
        * DVD drive for installation
        * Some features require a compatible Internet service provider; fees may apply.
        * Some features require Apple’s MobileMe service; fees and terms apply.
    Which apps work with Mac OS X 10.6?...
    http://snowleopard.wikidot.com/
    It looks like they might still have it...
    http://store.apple.com/us/product/MC573Z/A?fnode=MTY1NDAzOA
    If it's a Core Duo & not a Core2Duo, then it'll only run in 32 bit mode.

  • What version of firefox can I use best if i am running Mac OS 10.4 and am not planning to change my OS?

    I keep on getting automatic updates from firefox and then I am told that I cannot run the update because my OS is too old (!).
    I get sent to the firefox website saying that I can find the best version for my OS version and yet once I click, I get no info at all, it only tells me I need the newest version –that I cannot run.
    Since this issue, my browser has frozen and crashed each time I have it open for more than two hours.
    I currently seem to be running firefox 3.6.24

    Unfortunately, Firefox 4 and later dropped support for mac 10.4 :( Firefox 3.6.28 is the latest version you can use on that Operating System.
    Now, that said, have you tried to start Firefox in [[Safe Mode|Safe Mode]]? That will test to see if your crashes are caused by an extension.
    You can also try using the unofficial version of Firefox for Mac 10.4, tenfourfox. [http://www.floodgap.com/software/tenfourfox/ http://www.floodgap.com/software/tenfourfox/]. Keep in mind this version is unofficial, and there is no support for it from Mozilla. But it might be worth a try.

  • How to tell what version of htmldb is running?

    A while back I installed htmldb (now application express) on AIX 5.2.
    I think I used the Companion CD 10gR2 so thought that I had installed version 2 of htmldb. But when you log in it appears to show that version 1.6 is running.
    Is there a way I can tell for sure which version I have?

    David,
    The 10gR2 companion CD has 1.6 on it. 2.0 is a separate download.
    See: http://otn.oracle.com/apex
    The version number you see at the bottom right on the login screen is what you have installed.
    Sergio

  • What is the program can run this flash

    hi all, I download some flash from this funny site
    http://www.funny-pictures.com/
    but i can't run it in my computer , means my computer not my
    browser , i run it only into flash programs as flash editor or
    macromedia flash 6 (open it and click file menu and choce open and
    search it), I want to open it directly , just click it to open
    without any program

    If you know the job name, than you can find out the associated program name.
    Go to SM37.
    Select your job from the list
    Select "Step" ... here it will show you the program name
    Put cursor on the program name and Go to > Variant to know what was the input to run this job.
    Regards,
    Naimesh Patel

Maybe you are looking for