WebSphere Classloaders
Here I present some info on classloader hierarchies of WebSphere
Application Server. The snapshots were obtained using a servlet
with the following code:
PrintWriter out = resp.getWriter();
out.println("<html><head<>title<ShowClassLoader</title></head><body>");
out.println("<center><h1>ClassLoader Hierarchy</h1>");
out.println("<h2>" + getClass().getName() + "</h2></center>");
out.println("<p><ol>");
ClassLoader cl = getClass().getClassLoader();
while (cl != null) {
out.println("<li><b>" + cl.getClass().getName() + "</b> - " +
cl + "<p>");
cl = cl.getParent();
}
out.println("</ol><p>");
out.println("</body></html>");
out.close();
Here is the output from that servlet in the following runtime environments: