I was having this problem some time back.
The error was that of the classloader. The class was in the path.
The class compiled properly so i would expect we should have no trounble

instantiting it.

The error was like this:

I was initilizing a all the vector 31 elements to some value inside
constructor.
But the condition i used was from 0 <31 so i am still in business, not
out of bounds.
But at runtime it does not allow this.
So i change it to 0 to <vector.size() and it worked !!

-------------------------------------

-----Original Message-----
From: Lund, Kevin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 13, 2001 9:13 AM
To: '[EMAIL PROTECTED]'
Subject: NoClassDefFoundError


OK, to start I'll admit that I'm a Tomcat newbie. I have looked over the
FAQ
and the list archives, and haven't really found anything that has
helped, so
here goes.

I am getting a NoClassDefFoundError exception from a servlet, even
though
the specified class is most certainly in a jar file in the /lib
directory of
the web application.

I want to avoid putting the jar file in the system classpath, if at all
possible. Any thoughts on where I should point my investigation?

Thanks in advance,
Kevin Lund

Reply via email to