I found a solution.
And as always its sooo simple.
I need the RMISecurity Manager for other parts of my app which requires a
SecurityManager.
Normally as mentioned we use the policy.all file means we GRANT everything.
I fixed my Problem now by writing and registering my own Manager which
simply overrides everything like:
public class NullRMISecurityManager extends RMISecurityManager {
public void checkCreateClassLoader() {
}
public void checkAccess(Thread g) {
}
public void checkAccess(ThreadGroup g) {
}
.... and so on.
At my app I register the NullRMISecurityManager iso the RMISecurityManager
and voila... everything is working...
Greets
Markus Lutum
--
View this message in context:
http://openejb.979440.n4.nabble.com/java-lang-RuntimePermission-setContextClassLoader-if-using-java-security-tp3599454p3627662.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.