"Sachin S. Khanna" wrote:

> Hi Guys,
>         Well i'm facing a funny problem.
> When i import a custom class with the following code:
> <%@ page import = "Product" %>
> everything is alright.
> This would sugges that the jspengine is able to find the above
> Product.class, but amazingly when i try to instantiate an object of this
> class, i get ClassDefNotFound Error.
> Can you guys tell me why such a thing is happening.
> Have a nice day.
> With regards,
> Sachin S. Khanna.
>

The "ClassDefNotFound" exception means that some other class referred to by
Product is inaccessible.  For example, if your class started like this:

    public class Product extends Component {
        ...
    }

you would get this error if the Component class could not be found.  Besides
superclasses and interfaces, check for object types used as arguments or variables
in your class.

Craig McClanahan

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to