wood burning stoves 2.0*
The moose likes Other Java Products and Servers and the fly likes Servlet calls jar method but NoClassDefFoundError occurs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Servlet calls jar method but NoClassDefFoundError occurs" Watch "Servlet calls jar method but NoClassDefFoundError occurs" New topic
Author

Servlet calls jar method but NoClassDefFoundError occurs

Rogerio Kioshi
Ranch Hand

Joined: Apr 12, 2005
Posts: 689
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?


SCEA 5 (part 1), SCBCD, SCWCD, SCJP, CLP, CLS
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

If you are getting that error then the class is simply not there.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Rogerio Kioshi
Ranch Hand

Joined: Apr 12, 2005
Posts: 689
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

Joined: Jan 10, 2002
Posts: 60810
    
  65

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Servlet calls jar method but NoClassDefFoundError occurs
 
Similar Threads
NoClassDefFoundError
NoClassDefFoundError
NoClassDefFoundError
NoClassDefFoundError
NoClassDefFoundError