It's not a secret anymore!
The moose likes Other Application Frameworks and the fly likes javax/servlet./ServletRequest Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "javax/servlet./ServletRequest" Watch "javax/servlet./ServletRequest" New topic


Ankita Jha
Ranch Hand

Joined: Sep 15, 2008
Posts: 55
Hello Ranchers,
I m getting this error

This happens when i try to deploy my application on Linux Server which is our Main Application Server.

Can any one please help me.. I have all possible jar file in my application.

Any help will be appreciated.

Thanks in advance,
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

NoClassDefFoundError is about a class not being in the classpath, and 98% of the time means that a jar is not in the lib directory or classpath. What is your directory structure of your war and what and where are the jars that you are including?

It might be an internal dependency, like one of the jars you are using is dependent on another jar that isn't included.


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

Something looks suspicious in the error... there's a period after "servlet" in the package hierarchy.


Is there perhaps a JSP that's attempting to import something like "javax.servlet..ServletRequest"? Not sure if that would cause that error - I'll have to try it out and see.

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Ankita Jha
Ranch Hand

Joined: Sep 15, 2008
Posts: 55
Thnks for all replies,
Follwing is my Directory structre :
1.JRE System Library
2.Web app Libraries
3.apachae tomcat Library
Ankita Jha
Ranch Hand

Joined: Sep 15, 2008
Posts: 55
also this same application when i run on my local it works properly...
error comes when i try to deploy it on my application server.
Atul Darne
Ranch Hand

Joined: Jul 05, 2009
Posts: 118

how do we know which jar has this class ?

Regards, Atul.
I came to this world on a Learner's License
I agree. Here's the link:
subject: javax/servlet./ServletRequest
It's not a secret anymore!