Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet calls jar method but NoClassDefFoundError occurs

 
Rogerio Kioshi
Ranch Hand
Posts: 690
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The servlet calls a jar method. This method is inside a class which is inside th jar. This class uses others libs (jars) which are inside Glassfish lib path, but I'm getting "NoClassDefFoundError" error...

Could it be a classloader problem? Is it possible changing Webcontent\META-INF\MANIFEST.MF file content in the java web app can solve my problem?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64833
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are getting that error then the class is simply not there.
 
Rogerio Kioshi
Ranch Hand
Posts: 690
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:If you are getting that error then the class is simply not there.


But is is there... I've already checked many times...
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64833
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I seriously doubt that you've found a class loader bug. I'll move this to a more specific forum where the Glassfish-savvy may be able to help you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic