logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 40736] New: - log4j delete permission denied
Date Thu, 12 Oct 2006 02:51:08 GMT
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: 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


Mime
View raw message