[jetty-dev] [jira] (JETTY-1540) classLoader cause rmi network traffic
"fuyou001 (JIRA)" <[email protected]> Wed, 22 Aug 2012 02:41:23 -0500 (CDT)
| Newsgroups | gmane.comp.java.jetty.general |
|---|---|
| Message-ID | <301569446.43976.1345621283428.JavaMail.j2ee-jira@codehaus01.managed.contegix.com> |
fuyou001
commented on JETTY-1540
classLoader cause rmi network traffic
I suspect the root cause that The WebAppClassLoader extends URLClassLoader,as it is RMIClassLoader.getClassAnnotation() method last delegates to LoaderHandler.getClassAnnotation().
the relevant code is :
else if (loader instanceof URLClassLoader) {
try {
URL[] urls = ((URLClassLoader) loader).getURLs();
if (urls != null) {
/*
- If the class loader is not one of our RMI class loaders,
- we must verify that the current access control context
- has permission to know all of these URLs.
*/
SecurityManager sm = System.getSecurityManager();
if (sm != null) {
Permissions perms = new Permissions();
for (int i = 0; i < urls.length; i++) {
Permission p =
urls[i].openConnection().getPermission();
if (p != null)
Unknown macro: { if (!perms.implies(p)) {
sm.checkPermission(p);
perms.add(p);
} }
}
}
annotation = urlsToPath(urls);
}
}
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators .
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email