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?
rospccAsked:
Who is Participating?
 
Ajay-SinghConnect With a Mentor Commented:
Sounds to me incomplete installation. sevlet-api.jar is missing.
0
 
rospccAuthor Commented:
Is there any other related Jar files?
0
 
Ajay-SinghConnect With a Mentor Commented:
other jar you can look at is jsp-api.jar
0
 
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.
0
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.