Re: Tomcat permissions and class loading

2010-07-16 Thread Florent Georges
Louis Simard wrote: > accessClassInPackage accepts some shortcuts that affect all > subpackages: >   permission java.lang.RuntimePermission > "accessClassInPackage.org.apache.tomcat"; > will work just as well. Yes, thank you. I could get rid of the AllPermission, thanks to you! Regards,

Re: Tomcat permissions and class loading

2010-07-15 Thread Louis Simard
At 2010-07-15 22:25 GMT, Florent Georges wrote: > Louis Simard wrote: > >  Hi, > >> Would this do the trick: > >  Thanks for your response. > >> permission java.lang.RuntimePermission "getClassLoader"; >> permission java.lang.RuntimePermission "createClassLoader"; > >  I got getClassLoader but not

Re: Tomcat permissions and class loading

2010-07-15 Thread Florent Georges
Louis Simard wrote: Hi, > Would this do the trick: Thanks for your response. > permission java.lang.RuntimePermission "getClassLoader"; > permission java.lang.RuntimePermission "createClassLoader"; I got getClassLoader but not createClassLoader. After having added it, I get now the foll

Re: Tomcat permissions and class loading

2010-07-15 Thread Louis Simard
Forgot to post the mail to the list. Here goes... At 2010-07-15 21:57 GMT, I wrote: >> If I add the following permission in the file >> /etc/tomcat6/policy.d/50local.policy, everything's fine: >> >>    grant codeBase "file:${catalina.base}/webapps/mywebapp/-" { >>        permission java.security.A