...
If you get a NoClassDefFoundError exception, the root cause might be the same as for a ClassNotFound exception.
Questions
*Why is
No Format |
---|
jsp:useBean |
is not working?*
Make sure:
- Your bean is packaged in a class.
- You have fully qualified your class name (eg:
) ORNo Format com.bar.package.MyClass
- You have imported your class into your jsp (eg:
)No Format <%@ pageimport="com.bar.package.MyClass"%>
- Why do I get
*No Format java.lang.NoClassDefFoundError: javax/servlet/Filter?
You probably have servlet.jar floating around somewhere it shouldn't be. This really messes up the classloaders since Tomcat's classloaders don't act quite as normal as one expects (see links above). servlet.jar should only be found only once in $CATALINA_HOME/common/lib.
- Why do I get
?*No Format java.lang.NoClassDefFoundError: org/xml/sax/InputSource
You have conflicting XML api jar files in your classpath. Read the README or RELEASE-NOTES for more information.