aspose file tools*
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
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "javax/servlet./ServletRequest" Watch "javax/servlet./ServletRequest" New topic
Author

javax/servlet./ServletRequest

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
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17259
    
    6

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.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

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


javax/servlet./ServletRequest


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.


-Nate
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: javax/servlet./ServletRequest