aspose file tools*
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
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: 61202
    
  66

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: 61202
    
  66

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlet calls jar method but NoClassDefFoundError occurs