File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes NoClassDefFoundError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "NoClassDefFoundError" Watch "NoClassDefFoundError" New topic


JJ Devine

Joined: Jan 04, 2008
Posts: 2

I am having an issue where I am getting a NoClassDefFoundError when running a web app. The app is too complicated to explain here, but I am having a real problem identifying the cause of the issue because the only error I get is:

at com.iplanet.dpro.session.SessionID.parseSessionString(
at com.iplanet.dpro.session.SessionID.getSessionServerProtocol(
at com.iplanet.dpro.session.Session.getSessionServiceURL(
at com.iplanet.dpro.session.Session.getSession....

I.E. it isn't giving me an error message with the exception, so I have no idea what class it can't find a definition for. also tracing the (decompiled) code isn't giving me any obvious candidates either.

As a general question, why when you get a java.lang.NoClassDefFoundError would you not get an accompanying error message?

Campbell Ritchie

Joined: Oct 13, 2005
Posts: 46437
Not certain, but it may be that the whole application was previously compiled and a class has gone missing since then. You will find it very difficult to sort out from decompiled code; it might be easier to compile the decompiled code and see whether the lines numbers where the errors occur change!
I agree. Here's the link:
subject: NoClassDefFoundError
It's not a secret anymore!