You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by jpsm <jp...@deetc.isel.ipl.pt> on 2006/08/26 03:25:19 UTC
Tomcat 5, catalina.policy problem
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?
--
View this message in context: http://www.nabble.com/Tomcat-5%2C-catalina.policy-problem-tf2167845.html#a5993876
Sent from the Tomcat - User forum at Nabble.com.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat 5, catalina.policy problem
Posted by jpsm <jp...@deetc.isel.ipl.pt>.
Found the problem.
I must start Tomcat With A SecurityManager.
%CATALINA_HOME%\bin\catalina start -security
jpsm wrote:
>
> I am using some classes that need to be able to call
> java.lang.Thread.setContextClassLoader in a web-application.
>
> To that end I added
>
> grant codeBase "file:${catalina.home}/webapps/AppX/-"{<br>
> permission java.lang.RuntimePermission "setContextClassLoader";<br>
> }
>
> to my catalina.policy file.
>
> But the problem persistis, can anyone help? What is missing?
>
--
View this message in context: http://www.nabble.com/Tomcat-5%2C-catalina.policy-problem-tf2167845.html#a6009912
Sent from the Tomcat - User forum at Nabble.com.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org