• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 260
  • Last Modified:

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?
0
rospcc
Asked:
rospcc
  • 2
3 Solutions
 
Ajay-SinghCommented:
Sounds to me incomplete installation. sevlet-api.jar is missing.
0
 
rospccAuthor Commented:
Is there any other related Jar files?
0
 
Ajay-SinghCommented:
other jar you can look at is jsp-api.jar
0
 
Brian UtterbackPrinciple 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

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now