Friday 15 February 2013

Java 7 update 25 doesn't allow classloading with security manager installed? -


A URLClassLoader . This then uses the class loader so that the class can be loaded and call a steady method on it.

Java 7 update is starting with 25, that we have established a security manager ( using -djava.security.manager) on the command line), that Class loaders have always ClassNotFoundException throws if we leave the -djava.security.manager on the command line, then everything is fine.

I have tried to modify the Java code for the java.security grant. All entries for all the codes , but does it not help any other ideas?

Maybe this information to help find you the solution:

7u25 release notes for the position:

Java. security.AccessController.doPrivileged (PrivilegedAction, AccessControlContext) and implementation of AccessController.doPrivileged (PrivilegedExceptionAction, AccessControlContext) has been modified to improve security.

In particular, if a security manager is installed, AccessControlContext is not created by the system code and went disallowed security Protekshndomen collar (java.security.SecurityPermission) createAccessControlContext, then action Not done with permissions

View the method "findClass" in the URLClassLoader that it searches for a class within an AccessControl.doPrivileged block.

Hope it helps, I'm struggling with a similar problem myself.

Regards.

No comments:

Post a Comment