OnJava.com have a good in depth article discussing Classloaders in Java.
The article introduces and discusses classloaders in the Java VM – this is essential background reading if you are working in a J2EE environment and are struggling to understand NoClassDefFoundErrors running your code on an app server with it’s own classloader hierarchy.