DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=40736>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40736 Summary: log4j delete permission denied Product: Log4j Version: unspecified Platform: Sun OS/Version: Windows Server 2003 Status: NEW Severity: normal Priority: P2 Component: Other AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] I will like to seek for help and advise on the problem that I have encountered for the application that i am doing now. Hope that i am able to gain some hint or advise on resolve this problem. Below is the description of the problem Currently i am doing one application using EJB (MARS). We have made use of log4j to perform logging for our application. We are able to perform the log rotation by specifying the below permission in the server.policy // Permissions to delete the log file for rotation purpose grant { permission java.io.FilePermission "${com.sun.aas.installRoot}/nodeagents/vs03/anserver2/lo gs/an/MARS.log.4","delete"; }; However, the above permissions is not correct because i am hard coding the number of rotation. If i changed my permission to the one below. The log4j cannot delete the last log and the exception is permission denied // Permissions to delete the log file for rotation purpose grant { permission java.io.FilePermission "${com.sun.aas.installRoot}/nodeagents/vs03/anserver2/lo gs/an/-","delete"; } or i have also tried this permission grant { permission java.io.FilePermission "directory${com.sun.aas.installRoot}/nodeagents/vs03/ans erver2/logs/an/-","delete"; }; -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
