We have a java web service application that uses log4j to do logging. An exception gets thrown when log4j tries to delete its rolling log files
Exception:java.security.AccessControlException: access denied
(java.io.FilePermission /var/opt/SUNWappserver/domains/domain1/
applications/j2ee-modules/ourwebservice/WEB-INF/logs/IMWrapper.log.10 delete)
When we do an ls
in the directory the service account does have access to read and write to the files and the directory.
From some initial Googling it seems we may have to change the security.policy
file to allow the service to delete files. Any suggestions?