[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 620
  • Last Modified:

lang.NoClassDefFoundError: javax/servlet/ServletInputStream on uploading file

Hi,
I am using the commons-fileupload-1.1.jar for file upload this is working fine in the tomcat server.

but when i am doing the eame thing in the oracle application server i am getting the error
lang.NoClassDefFoundError: javax/servlet/ServletInputStream

I also added the servelt-api.jar in the classpath for compilation.

I have the commons-fileupload-1.1.jar and the servlet.jar file in the jserv.properties file in the folowing  path:/sev/115102/inst/visora/iAS/Apache/Jserv/etc

Please suggset me if any body knows the solution for same.

Thanks & Regards,
smruti
0
smruti_patra
Asked:
smruti_patra
1 Solution
 
fargoCommented:
I also added the servelt-api.jar in the classpath for compilation.
>> where in the classpath? Only for compilation OR in the application classpath for runtime also.
keep the servlet-api.jar in the WEB-INF/lib (used in tomcat for application classpath). Don't know how oracle app server handle webapps.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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