Return-Path: Delivered-To: apmail-logging-log4j-dev-archive@www.apache.org Received: (qmail 74199 invoked from network); 12 Oct 2006 02:51:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Oct 2006 02:51:52 -0000 Received: (qmail 7444 invoked by uid 500); 12 Oct 2006 02:51:51 -0000 Delivered-To: apmail-logging-log4j-dev-archive@logging.apache.org Received: (qmail 7413 invoked by uid 500); 12 Oct 2006 02:51:51 -0000 Mailing-List: contact log4j-dev-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Developers List" Reply-To: "Log4J Developers List" Delivered-To: mailing list log4j-dev@logging.apache.org Received: (qmail 7384 invoked by uid 99); 12 Oct 2006 02:51:51 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Oct 2006 19:51:51 -0700 X-ASF-Spam-Status: No, hits=-9.2 required=10.0 tests=ALL_TRUSTED,MAILTO_TO_SPAM_ADDR,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Oct 2006 19:51:50 -0700 Received: by brutus.apache.org (Postfix, from userid 33) id CAC5F7142DF; Wed, 11 Oct 2006 19:51:08 -0700 (PDT) From: bugzilla@apache.org To: log4j-dev@logging.apache.org Subject: DO NOT REPLY [Bug 40736] New: - log4j delete permission denied Message-ID: X-Bugzilla-Reason: AssignedTo Date: Wed, 11 Oct 2006 19:51:08 -0700 (PDT) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . 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: log4j-dev@logging.apache.org ReportedBy: skteo72@yahoo.com 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: log4j-dev-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-dev-help@logging.apache.org