文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>Tomcat permissions to access local folder

Tomcat permissions to access local folder

时间:2007-11-16  来源:linxh

本文转自: http://ubuntuforums.org/showthread.php?t=371205     I'm trying to grant read permissions to a local folder from a web service, but even though I've added the following
Code:
grant codeBase "file:/home/fernando/movies" { permission java.io.FilePermission "<<ALL FILES>>", "read"; }; grant codeBase "file:/home/fernando/movies/*" { permission java.io.FilePermission "<<ALL FILES>>", "read"; };
into the catalina.policy file I'm not able to put it to work. Any ideas?   ==========================================   Just fixed it, it is as easy as creating a file like AXIS.policy under /etc/tomcat5/policy.d, and adding to it something like:
Code:
grant{ permission java.io.FilePermission "yourLocalFolder", "read"; };
This would be automatically added to catalina.policy when tomcat is restarted.

With the above code what you grant is reading permissions to any class loaded by tomcat.

Hope this helps anyone with little knowledge about AXIS (my case).
排行榜 更多 +
Office转换器

Office转换器

商务办公 下载
牛杂网

牛杂网

购物比价 下载
极上红颜

极上红颜

角色扮演 下载