Can't use the function from Upload bean

Posted on 2007-09-28
Last Modified: 2013-12-27
Hi, we're currently using UploadBean API to support our application's upload feature. However, we can't seem to install properly at our client's data centre which is running on Sun Solaris and Sun App Server 8.1. I've uploaded the 4 required jar files (i.e. uploadbean.jar, cos.jar, fileupload.jar, struts.jar) into the server, however the system still gives me error as follows:

[#|2007-09-28T16:38:54.402+0800|SEVERE|sun-appserver-ee8.1_02|javax.enterprise.system.container.web|_ThreadID=14;|StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
java.lang.NoClassDefFoundError: javax/servlet/ServletRequest

What could be the issue?
Question by:rospcc
    LVL 23

    Accepted Solution

    Sounds to me incomplete installation. sevlet-api.jar is missing.

    Author Comment

    Is there any other related Jar files?
    LVL 23

    Assisted Solution

    other jar you can look at is jsp-api.jar
    LVL 22

    Assisted Solution

    Are you using TomCat? If so, check the $JAVA_HOME/jre/lib/ext directory, and remove the jar file from there. If TomCat finds a jar file in there, it has odd class loading rules designed to keep all of the applications separate,
    so it will not look where the rest of the jar are. In fact, you can try moving all the jars from that directory to somewhere else, incase it doesn't work you can put them back. If it still doesn't work, trying putting the jars back there and also
    adding the jar for your bean so they are all in $JAVA_HOME/jre/lib/ext.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
    If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
    In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now