文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
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).
排行榜 更多 +
坦克冒险大师安卓版

坦克冒险大师安卓版

策略塔防 下载
自动防御

自动防御

策略塔防 下载
枪战大乱斗2

枪战大乱斗2

飞行射击 下载