Originally posted by Pradip Bhat:
Usually this is the order
1. Bootstrap classes like java.lang.String
2. Classes in java.ext.dirs
3. System classpath defined by CLASSPATH
4. AppServer libraries inside of some lib folder
5. For web app - lib folder first and then the classes folder.
Originally posted by Bear Bibeault:
Sorry, but most of that is incorrect. The WEB-INF/classes folder will always take precedence over jars in WEB-INF/lib, and the app-local classes take precendence over container-defined folders.
Again, refer to the Servlet Specification and your container documentation for precise details.