Jakarta Commons -- File Upload does not work with Application Server

Hi ALl,
I tried Jakarta Commons file upload. In the netbeans, I copied the common jar files "commons-io-1.2.jar" and "commons-fileupload-1.1.1.jar" in the
netbeans-5.5\enterprise3\apache-tomcat-5.5.17\common\lib and set the class paths. It is working correctly when I compile and run from the netbeans. However, when I deployed in Sun Application Server PE 9.0, I am receiving the following errors. In Sun application I copied the above jars files to "C:\Sun\AppServer\jdk\jre\lib\ext"..
I have read in several postings that it does not work this way but could find any solution. Any idea will be greatly appreciated.
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: java.lang.NoClassDefFoundError: javax/servlet/ServletInputStream
     org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:930)
     org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:863)
     org.apache.jsp.fileUpload_jsp._jspService(fileUpload_jsp.java:109)
     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:353)
     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:409)
     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:317)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
     com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
     com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
     org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
     com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
     com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
     com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
     com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
     com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
     com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
     com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
root cause
java.lang.NoClassDefFoundError: javax/servlet/ServletInputStream
     org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:116)
     org.apache.jsp.fileUpload_jsp._jspService(fileUpload_jsp.java:76)
     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:353)
     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:409)
     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:317)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
     com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
     com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
     org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
     com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
     com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
     com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
     com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
     com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
     com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
     com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
note The full stack trace of the root cause is available in the Sun Java System Application Server Platform Edition 9.0 logs.
Sun Java System Application Server Platform Edition 9.0
Thank you,
--Sam                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Hi All,
I solved this few minutes after I posted this question. Thought I should share with everybody, just in case some one else need it.
I copied these three files in the folder C:\Sun\AppServer\jdk\jre\lib\ext
1. servelet-api.jar
2. commons-io-1.2.jar
3. commons-fileupload-1.1.1.jar
No need to set any class path.
Thanks

Similar Messages

  • Windows 8.1 File recory does not work with EFS, any solution?

    Hello,
    File recovery does not see my encrypted files, as soon as I decrypt them no problem. Is there a way to have File recovery see my encrypted files and back them up?
    Thanks

    Hi,
    The behavior is by design.File History doesn’t protect files encrypted by the encrypted file system (EFS).
    But,files stored on a volume encrypted with BitLocker are protected.
    Thanks for your understanding.
    Regards,
    Kelvin Xu
    TechNet Community Support

  • Google documents - 'select files to upload' does not work with v 3.6.8 Firefox - several users have noticed this.

    Until Friday, I could upload documents using google's facility within Firefox . Suddenly, the 'select files to upload' stopped working. Internet Explorer does this ok.
    I noticed on the Google forum that several users have reported this and someone suggested it should be reported to Firefox as it works with other browsers. I am using Windows XP on a laptop.

    It is an issue that Google are aware of and are working on a solution. See [http://www.google.com/support/forum/p/Google+Docs/thread?tid=4f0369bdcf6fd7ff&hl=en "Select files to upload" not working in Firefox - Google Docs Help]
    (Thanks to Joolsa for the link)

  • File Protocol does not work with double slash ...PLEASE HELP

    Hi ALL
    POSTING THIS AGAIN....Please have alook
    I am using j2sdk 1.4.2 . In 1.4.1 version File protocol was working with double slash
    But Now in 1.4.2 version I have to use /// slashes to make it work...
    Can anyone shed any light on this. Has Sun changed something ?
    I searched the release notes but could not find anything useful.....
    Please comment .
    Thanks

    The problem is that it leads to maintenance problems
    for our products
    future releases and I need to find a good solution to
    this problemRead the spec for file URLs, fix your existing code to use it, and remember this lesson for next time.
    (Side note: I can't remember ever using or seeing double slases.)

  • File copy does not work with exe files

    I used BufferedReader and BufferedWriter to make copy of an exe file in local drive. Nothing was strange in this code. But I wonder the newly created exe file is denied "..exe is not a valid win32 application" by Windows. I could see the bytes are copied. Is that something like header of exe file is damaged etc ??

    Readers and Writers are for text. For binary data use InputStream and OutputStream.

  • The PC Suite File Manager does not work with NOKIA...

    Hi
    OS: XP SP2
    Pone Model: 3120
    Thhe version of Pc Suite is 6.5.12
    the ERROR is:
    "the operation could not be complited"
    When I try to update my phone messages between my phone and my computer via pc suite file manager,it shows below error :
    "the operation could not be complited"
    I can not manage my phone sms text messages trouth my computer!
    Would you assist me?

    Operating system:
    Microsoft Windows XP
    Build 2600
    Service Pack 2
    Language: English (United States)
    Language for non-Unicode programs: English (United States)
    Locale: English (United States)
    Input language: English (United States)
    Nokia PC Suite:
    Version 6.81.13.0
    Language: English
    Connectivity Cable Drivers:
    Version 6.81.1.2

  • Back arrow does not work with SQL Server Reporting Services Reports. When one pages back from a sub report the back action appears to skip moving to the previous step. IE 8 works fine?

    I have a SSRS report that has a parameter driven drop down list to select a catagory for a report to run a summary for the category in Report Manager. When the report runs there are links to a sub report with more detailed information about the category summary. Firefox runs everything correctly up to this point.
    When I try to back arrow from the sub report Firefox skips the summary report page and reverts to the initial page where the sub category can be selected to run the summary report.
    Can you help? IE8 works well with this but has severe spped issues with reports that contain multiple selection parameters. Firefox handles the multiple parameters very fast but has the page back issue.

    I have a SSRS report that has a parameter driven drop down list to select a catagory for a report to run a summary for the category in Report Manager. When the report runs there are links to a sub report with more detailed information about the category summary. Firefox runs everything correctly up to this point.
    When I try to back arrow from the sub report Firefox skips the summary report page and reverts to the initial page where the sub category can be selected to run the summary report.
    Can you help? IE8 works well with this but has severe spped issues with reports that contain multiple selection parameters. Firefox handles the multiple parameters very fast but has the page back issue.

  • Iphone does not work with exchange server 2003

    keeps saying server not found....

    You have to activate Exchange ActiveSync for each user's mobile device.  This is done by the IT folks in the back office.
    http://www.google.com/url?sa=t&rct=j&q=&esrc=s&frm=1&source=web&cd=4&sqi=2&ved=0 CDwQFjAD&url=http%3A%2F%2Fimages.apple.com%2Fiphone%2Fbusiness%2Fdocs%2FiPhone_M S_Exchange.pdf&ei=API8UN6UCIiB6AGzgoHYDw&usg=AFQjCNHykbMLl4i_zgFoN2AAF6P5ucjrow

  • Database Mail not working with SQL Server Agent

    I'm running SQL Server 2005 Standard edition 64 bit with SP2 on a 64 bit machine. 
    Database mail does not work with SQL Server Agent.  When I configure SQL Server Agent to use database mail the test email button is greyed out and inactive therefore I cannot send emails using operators or for jub success failure etc. 
    I've read that there was supposed to be a fix for this with SP1 but I have SP2 and still receive the same problem.  Please can somebody help as I do not wish to use SQL Mail as a work around due to this becomming redundant in future versions of SQL Server.
    Kind Regards

    The problems solved
    steps:
    1)we create a mail profile at at Managment->Database Mail ,of SQL Managment
    2)we set this account as "default" at Managment->Database Mail -> Configure Database Mail -> Manage profile security
    3)At tab "Alert System" of SQL Server Agent properties , we check the "Enable mail profile" , Mail System=Database Mail, Mail profile = "the profile we already create"
    4)we create a new operator at "Operators" of sql agent, where at "notification options" -> "Email name" we put the mail where we want to sent the agent the mails at failured job
    5)We go at a specific job, at tab "Notifications" ,we check the "email" check box and then we choose the operator we just create, at the text box next to check box.
    I hope not to forget something
    Thank You all for the help

  • I keep getting the message: "what should firefox do with this file" in Windows XP every time I want to download a file, e.g., adobe, excel, etc. How can this annoying message be deleted? The check box to "open file automatically" does not work!

    I keep getting the message: "what should Firefox do with this file" in Windows XP every time I want to download a file, e.g., adobe, excel, etc. How can this annoying message be deleted? The check box to "open file automatically" does not work!

    cor-el,
    Thanks for your prompt reply. However, the sources you gave do not seem to apply exactly to my situation. I have attached some screenshots that show what the dialogue box looks like for a pdf download, and what my settings in the Apps panel of Options are. You will note in the first screenshot that I have checked the box to handle this file type automatically; however, the next time I try to download a file of that type, the same dialogue box appears looking exactly like the one shown, so checking the "automatic" option appears to do nothing. The files to be downloaded from my Gmail messages are not generic or altered file types - they are shown as pdf, doc, docx, etc. So while your intent was good, your post did not help. Thanks anyway.

  • Quicklook does not work with WMV files and quick look no longer maintains resized views when viewing from a folder using the up/down arrows

    Quicklook does not work with WMV files and quick look no longer maintains resized views when viewing from a folder using the up/down arrows. Any fixes?

    Same problem here...

  • I recently uploaded OSX 10.6.7 and ever since then, my Boris titler in FCP does not work with all the fonts, notably Avenir. It actually crashes FCP now. It was fine with the previous version. What's up Apple?

    I recently uploaded OSX 10.6.7 and ever since then, my Boris titler in FCP does not work with all the fonts, notably Avenir. It actually crashes FCP now. It was fine with the previous version. What's up Apple?

    I know what your'e going through, Gary.   OSX 10.6.7 is an absolute disaster.   Since I upgraded, I've had problems in FCP, Logic, Garageband, even issue dealing with peripheral hardware like external monitors.
    Before 10.6.7 my system was running fine.
    I've brought this up with Apple repeatedly.   They smile and shrug.   They've been helpful resolving the issues, but none of them has been easy to solve.  I have spent days, dealing back and forth with tech support, sending logs, etc., before solutions have been found.  
    I wish I could give you an answer to your question.   My only guess is that Apple has totally dropped the ball on this one.   In the future they should provide a disclaimer when they offer an upgrade.  Something like:   "Caution: all of your software may not function after this upgrade. But go ahead, you'll feel cool that your OS is the latest thing."
    As someone who has been with Apple for close to 25 years, I'm disturbed by what appears to be an increasing sloppiness in their work.   This is especially disturbing when you depend upon their system to make your living.
    Good luck.
    david

  • Adobe Photoshop Elements 12 does not work with Yosemite 10.10

    My Adobe Photoshop Elements 12 does not work with Yosemite 10.10 nor does my Premier Elements 12. When I try to start them up I get the error message. After uninstalling and reinstalling a few times its still the same. Strangely enough PSE 11 seem to work with Yosemite.  I uninstalled my Premier Elements as well and it behave the same way. How do I get a new copy of Premier Elements 12 to reinstall?

    Just to further test what is happening to my iMac on Yosemite is I downloaded the trial version of Photoshop CC and when I go to launch it it gives mr the same error message as when I try to launch PES 12 or Premier Elements 12. So whatever the problem is it involves all three and so upgrading to Photoshop CC doesn't even help.  Could there be an Adobe file damaged or missing somewhere that is common to these and yet does not effect Revel and Lightroom?

  • My Time Capsule does not work with existing WiFi

    Following a question solved on March 24 by LaPastenague, but gone bad again.
    Apple AirPort Time Capsule
    I felt the need for a physical backup of my data, as I would not completely trust the different clouds. I use, and have used Dropbox for 4-5 years and are very satisfied with that, but I am still not sure if or when a political lunatic will shut off the internet.
    I purchased the Apple AP Time Capsule 2T, because all my other stuff are Apple, and that it's wireless. My old backup is Maxtor 300 GB.
    Since we stay 2-3 weeks on two locations, one in Norway and one in Sweden (two different countries) we must use Mobile Broadband 4G, cables or fibre connections are useless for us, and we don't have it up to the houses. I have one mini router for each country, we bring with us iPhones, iPads, iMac, Apple TV, APExpress. When we pass the boarder I change the mini router, and the system continues working perfect on the WiFi, except the APExpress that needs to be reconfigured,  but then it works.
    The APTC was difficult to make working as it would not accept to be in an existing network, but with good help from the Apple Community, LaPastenague, with forcing the TC connect to the APE with Ethernet cable in bridge mode, ref "My Time Capsule does not work with existing WiFi" from March 24, the problem was solved and all gadgets worked together in a perfect harmony, until we changed location.
    Now, as I have my second WiFi network, and the APExspress is reconfigured, it's like the TC thinks, I am the base boss here, I am not taking orders from APE one more time, and it simply does not work, not only that, it fluctuates all the time.
    I have a slight feeling that the two WiFi bands are making the trouble as during the configuration of the TC sometime the last figure 6 and 7 pops up, and that has something two do with the two different 2,4 and 5 GHZ bands
    So, I am curious if you have any idea ?
    I am thinking of returning the TC if I don't make it work now, but how do I delete all the data that's on it?

    I can deal with the last question first and easily.
    I am thinking of returning the TC if I don't make it work now, but how do I delete all the data that's on it?
    Open the airport utility .. go to the disk tab and select erase.
    When you select erase you will get mulitiple options.
    Quick removes the file table but does not delete the files,, it takes 2min or less.
    A Zero out data is the secure way,, by writing 0 ie low level drive format.
    It can take several hours..
    7 pass will take a week.. not recommended..
    35 pass erase is ridiculous.. it would take a month.. put an ax through the TC. It is quick and better.
    Now, as I have my second WiFi network, and the APExspress is reconfigured, it's like the TC thinks, I am the base boss here, I am not taking orders from APE one more time, and it simply does not work, not only that, it fluctuates all the time.
    The fact that it did work and has now failed might point to faulty unit.
    The only way to tell is reset it properly to factory and start over.
    Universal Factory Reset.. any model TC or AE.
    Unplug your TC/AE from power or turn off at the power point.
    Hold in reset. and power the TC/AE back on..  all without releasing reset and keep holding in for about 10sec. (this is often difficult without a 2nd person or a 3rd arm).
    Release it when the status light flashes rapidly. If it doesn’t flash rapidly you have missed it and try again.
    Note..
    Be Gentle! Feel the switch click on. It has a positive feel..  add no more pressure after that.
    TC/AE will reboot after a couple of minutes with default factory settings and will wipe out previous configurations of the router.
    No files are deleted on the hard disk in a TC.. No reset of the TC deletes files.. to do that you use erase from the airport utility.
    Generally having multiple wireless AP should not cause problems.. but it is better to set channels manually.. so it doesn't go beserk rotating channels.
    Remember to keep all names short, no spaces and pure alphanumeric.
    Sadly though the Apple routers have no logging now and no SNMP and almost nothing to help diagnose a problem, so if it continues .. take it back to apple.. they have given you no other method of fixing it.

  • External USB HD does not work with HAL:

    External USB HD does not work with HAL:
    From the last 10 days the HAL auto-mount with ntfs-3g file system of my external hard drive  does not woks.
    But the manual mount procedure with the command mount -t ntfs-3g /dev/sdb* /mnt/XYZ works.
    I've followed the instructions in the wiki: http://wiki.archlinux.org/index.php/HAL and the system has worked up to the last kernel or HAL update.
    My fat32 usb-stick works without any problem.
    If I try to open the device with KDE it appears an error popup wit this message:
    TODO: have to rethink extra options
    Error: kio_media_mount_helper
    The log from the kernel.log is
    Nov 6 22:03:16 myhost usb 5-1: new high speed USB device using ehci_hcd and address 4
    Nov 6 22:03:16 myhost usb 5-1: configuration #1 chosen from 1 choice
    Nov 6 22:03:17 myhost Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
    Nov 6 22:03:17 myhost ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
    Nov 6 22:03:17 myhost Initializing USB Mass Storage driver...
    Nov 6 22:03:17 myhost scsi6 : SCSI emulation for USB Mass Storage devices
    Nov 6 22:03:17 myhost usb-storage: device found at 4
    Nov 6 22:03:17 myhost usb-storage: waiting for device to settle before scanning
    Nov 6 22:03:17 myhost usbcore: registered new interface driver usb-storage
    Nov 6 22:03:17 myhost USB Mass Storage support registered.
    Nov 6 22:03:22 myhost scsi 6:0:0:0: Direct-Access WDC WD32 00JB-00KFA0 0811 PQ: 0 ANSI: 0
    Nov 6 22:03:22 myhost sd 6:0:0:0: [sdb] 625142448 512-byte hardware sectors (320073 MB)
    Nov 6 22:03:22 myhost sd 6:0:0:0: [sdb] Test WP failed, assume Write Enabled
    Nov 6 22:03:22 myhost sd 6:0:0:0: [sdb] Assuming drive cache: write through
    Nov 6 22:03:22 myhost sd 6:0:0:0: [sdb] 625142448 512-byte hardware sectors (320073 MB)
    Nov 6 22:03:22 myhost sd 6:0:0:0: [sdb] Test WP failed, assume Write Enabled
    Nov 6 22:03:22 myhost sd 6:0:0:0: [sdb] Assuming drive cache: write through
    Nov 6 22:03:22 myhost sdb: sdb1
    Nov 6 22:03:22 myhost sd 6:0:0:0: [sdb] Attached SCSI disk
    Nov 6 22:03:22 myhost sd 6:0:0:0: Attached scsi generic sg2 type 0
    Nov 6 22:03:22 myhost usb-storage: device scan complete
    and the error.log is
    Nov 6 22:03:22 myhost sd 6:0:0:0: [sdb] Assuming drive cache: write through
    Nov 6 22:03:22 myhost sd 6:0:0:0: [sdb] Assuming drive cache: write through
    Do you have some idea ....
    Bye.

    I have done the following:
    Downloaded the patched hal version.
    used makepkg in /abs/local/trunk/ to create a pkg for pacman
    used sudo pacman -U pkgname to install it.
    used sudo nano /etc/hal/fdi/policy/preferences.fdi to create the fdi file with the following content:
    saved the file and removed my ntfs entryes from fstab and rebooted. and still there is no automount off ntfs partitions.
    have i done something wrong?
    br fjodork
    WARNING: what follows is a guide of what did work for me, I'm still in an early stage of learning linux, so please correct me if anything of what follows is wrong/dangerous/stupid. As I said, this worked for me, it's not pretty, since I was learning each step on the fly and I'm sure there are better ways to do this.
    So fjodork, you seem to have done the the necessary steps, though i couldn't get it to work until i first removed hal without dependencies
    pacman -Rd hal
    it will give you some warning about the dependencies, ignore  it since we are reinstalling hal in a few steps.
    First i tried to follow Raymano's link, obviously it showed me nothing in the browser so I thought it might be a broken link.
    So I downloaded the source tarball from here http://hal.freedesktop.org/releases/hal-0.5.10.tar.gz
    unpacked it changed the /tools/hal-storage-mount.c as per Milfadoodle's instructions.
    at first I tried to compile directly from source, the process would finish without a glitch though after reboot nothing changed, as if hal weren't
    installed, i guess there were issues with paths. anyway read on
    Then repacked the source in tarball, copied it to /var/abs/extra/system/hal and modified the PKGBUILD as follows
    makedepends=('pkgconfig' 'gperf')
    options=('!libtool')
    install=hal.install
    source=(${pkgname}-${pkgver}.tar.gz #removed url so makepkg looks in the current directory for the tarball
        hal
        hal-policy.patch
        cryptsetup_location.patch
        hal-0.5.9-hide-diagnostic.patch
        ntfs3g-valid-options.patch)
    md5sums=('6641c30a27c00485c6accac5110ff911' # replace with md5sum of your package's sourceball (run md5sum filename)
             '882f67668cb14a0a9e4a27ef22278027'
             '5ba8b610aa9763a5f42b9f7cbd7a86ad'
    then makepkg (i had to add --asroot, don't ask why
    and finally pacman -U hal-0.5.10-1-i686.pkg
    another reboot and everything worked without a glitch!:D (yeah i know i still haven't got rid of the reboot mentality )
    I have also put the policy files as per the wiki instructions.
    PS: I know this is a dirty way to getting things done but as i said, I'm just starting
    If anyone could comment/correct/explain this post I'd be more than happy, the automount issue was bothering me for about a month now (you'll say why do I need ntfs in the first place? well, I only recently switched for Linux as my primary OS, these are some relics of the M$ era

Maybe you are looking for