Project provides two servlets which help in debugging classloading issues in Java web applications.
This is a WizTools.org project.
The servlets are compatible with Servlet 3.0 specification, and should be used in JavaEE 6.0+ applications only.
Place the Jar file inside your web-application's /WEB-INF/lib directory.
After placing the Jar in your application's /WEB-INF/lib directory, during application context startup, you can find in your app-server logs:
####################################
## Classloader Servlet Is Enabled ##
## NOT RECOMMENDED FOR PRODUCTION ##
##================================##
## Usage: ##
## /ctx/class-source?class=[] ##
## /ctx/list-classpath ##
####################################
This means the servlet is registered correctly.
http://<host>:<port>/<app-ctx>/class-source?class=fully.qualified.ClassName
Sample response:
Listing of servlet classpath helps in understanding in which order the Jars and classes folder are loaded by the classloader.
http://<host>:<port>/<app-ctx>/list-classpath
Sample response: