access denied (java.io.FilePermission
Hi everybody
I have a jsp that using outputstream write a jpeg on the server.I have tried this on my local server and everything was ok.but on the server I have the access denied (java.io.FilePermission /var/chroot/home/..../front.jpg write)
error.I have set the permission of the folder to 777 but still tyhe same error.
Can anyone help me
Thanks
[379 byte] By [
Zareha] at [2007-11-27 5:17:02]

Add write permission to your web app server policy.
For example, in Tomcat, do to TOMCAT_INSTALL_DIR/conf/catalina.policy, then add something like that:
permission java.io.FilePermission "/var/chroot/home/..../-", "write";
See this http://mail-archives.apache.org/mod_mbox/tomcat-users/200408.mbox/%3CBOEJJFBJBNPOFOBEMFLFAENJCCAA.snalgonda@mypublisher.com%3E for more information.
hth