I am using some classes that need to be able to call java.lang.Thread.setContextClassLoader in a web-application.
<p>
To that end I added<br>
grant codeBase "file:${catalina.home}/webapps/AppX/-"{<br>
permission java.lang.RuntimePermission "setContextClassLoader";<br>
}
<br>
to my catalina.policy file
<p>
But the problem persistis, can anyone help? What is missing?
Exception in thread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" jav
a.security.AccessControlException: access denied (java.lang.RuntimePermission se
tContextClassLoader)
<p>
To that end I added<br>
grant codeBase "file:${catalina.home}/webapps/AppX/-"{<br>
permission java.lang.RuntimePermission "setContextClassLoader";<br>
}
<br>
to my catalina.policy file
<p>
But the problem persistis, can anyone help? What is missing?
Exception in thread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" jav
a.security.AccessControlException: access denied (java.lang.RuntimePermission se
tContextClassLoader)