Skip to content

Servlet to find classloader path and debug classloading issues in JEE environment

Notifications You must be signed in to change notification settings

wiztools/classloader-servlet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Project provides two servlets which help in debugging classloading issues in Java web applications.

This is a WizTools.org project.

JavaEE Compatibility Version

The servlets are compatible with Servlet 3.0 specification, and should be used in JavaEE 6.0+ applications only.

Installation

Place the Jar file inside your web-application's /WEB-INF/lib directory.

Usage

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.

Servlet to Find From Where a Class is Loaded From

http://<host>:<port>/<app-ctx>/class-source?class=fully.qualified.ClassName

Sample response:

Servlet to List Classpath

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:

About

Servlet to find classloader path and debug classloading issues in JEE environment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages