Can't use the function from Upload bean

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?
Who is Participating?
Ajay-SinghConnect With a Mentor Commented:
Sounds to me incomplete installation. sevlet-api.jar is missing.
rospccAuthor Commented:
Is there any other related Jar files?
Ajay-SinghConnect With a Mentor Commented:
other jar you can look at is jsp-api.jar
Brian UtterbackConnect With a Mentor Principle Software EngineerCommented:
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.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.