%@ page import="org.apache.geronimo.kernel.config.MultiParentClassLoader" %>
<%@ page import="java.net.URL" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
Diagnostics
Class Loader Parents:
<%
ClassLoader mine = getClass().getClassLoader().getParent();
if (mine instanceof MultiParentClassLoader) {
MultiParentClassLoader cl = (MultiParentClassLoader) mine;
ClassLoader[] parents = cl.getParents();
for (int i = 0; i < parents.length; i++) {
ClassLoader temp = parents[i];
if (temp instanceof MultiParentClassLoader) {
MultiParentClassLoader parent = (MultiParentClassLoader) temp;
out.println("- Parent " + parent.getId());
URL[] urls = parent.getURLs();
out.println("
");
for (int j = 0; j < urls.length; j++) {
URL url = urls[j];
out.println("- "+url+"
");
}
out.println("
");
out.println(" ");
} else {
out.println("- Parent not MPCL: " + temp.getClass().getName() + "
");
}
}
} else {
out.println("- Unknown CL type: " + mine.getClass().getName() + "
");
}
%>