• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

javax/servlet./ServletRequest

 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 119
Oracle Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
how do we know which jar has this class ?
 
reply
    Bookmark Topic Watch Topic
  • New Topic