My JSP file compiles just fine...but I always get a NoClassDefFoundError when I try to access a bean via the useBean tag. Why?

Govind Seshadri

Make sure your beans belong to a package, and that you are fully qualifying the bean when indicating the value for the class attribute. For example, if your bean abc.class belongs to the package foo, make sure you indicate the value for the class attribute as:

<useBean id="mybean" class="foo.abc" scope="session" />

and not as:

<useBean id="mybean" class="abc" scope="session" />