var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
I am trying to access a mySql database at localhost from a servlet on Tomcat 4 running on Redhat Linux 7.2. I am using a user name & password with the mySql prvileges set to % (access any host)
I keep getting the following error message
java.security.AccessControlException: access denied (java.util.PropertyPermission file.encoding read)
I saw something on one of the forums that suggested that I have to add a permission to catalina.policy but what they suggested Tomcat didn't like and wouldn't start up. It was
grant all privileges on mysql.* to root@'%' identified by 'root'; (obviously with my username etc)
Can anyone tell me what I need to add and where. Also do I need to grant specific permission to my database driver?
Thanks for your help
Last edited by waaabbly; 08-22-03 at 06:17.
I think I have it sorted. If you add
permission java.util.PropertyPermission "file.encoding", "read";
to either java.policy or catalina.policy (whichever is determining your permissions) the error goes away.