• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javax/servlet./ServletRequest

 
Ankita Jha
Ranch Hand
Posts: 55
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ankita Jha
Ranch Hand
Posts: 55
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 55
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 118
Java Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how do we know which jar has this class ?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic