logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gülcü <c...@qos.ch>
Subject Re: Uncaught Exception?!
Date Thu, 29 Aug 2002 16:56:00 GMT

Is this run in an application server?

At 09:35 29.08.2002 -0700, you wrote:
>A problem with file permissions and
>RollingFileAppender (still dont know what the problem
>is?) causes this exception, which also kills the
>thread:
>
>(JDK 1.3.1, Log4J 1.2.6, Win2k)
>
>Exception in thread "main"
>java.security.AccessControlException: access denied
>(java.io.FilePermission C:\xxxx\lo
>gs\xxx.log write)
>         at
>java.security.AccessControlContext.checkPermission(AccessControlContext.java:272)
>         at
>java.security.AccessController.checkPermission(AccessController.java:399)
>         at
>java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
>         at
>java.lang.SecurityManager.checkWrite(SecurityManager.java:978)
>         at java.io.File.renameTo(File.java:1007)
>         at
>org.apache.log4j.RollingFileAppender.rollOver(RollingFileAppender.java:139)
>         at
>org.apache.log4j.RollingFileAppender.subAppend(RollingFileAppender.java:228)
>         at
>org.apache.log4j.WriterAppender.append(WriterAppender.java:150)
>         at
>org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:221)
>         at
>org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:57)
>         at
>org.apache.log4j.Category.callAppenders(Category.java:187)
>         at
>org.apache.log4j.Category.forcedLog(Category.java:372)
>         at
>org.apache.log4j.Category.info(Category.java:674)
>         at xxxx.mmmmm(xxx.java)
>         at xxxx.xxxx.<init>(xxx.java
>         at xxxx.main(xxx.java)
>
>----
>
>My log4j.properties is as follows (excerpt) and I am
>using default initialization (in the classpath):
>
>log4j.appender.R=org.apache.log4j.RollingFileAppender
>log4j.appender.R.File=${log4j.logpath}/${log4j.filename}
>#log4j.appender.R.Threshold=WARN
>
>log4j.appender.R.MaxFileSize=1000KB
>log4j.appender.R.MaxBackupIndex=3
>
>log4j.appender.R.layout=org.apache.log4j.PatternLayout
>log4j.appender.R.layout.ConversionPattern=%p\t%d\t%c\t%t\t%m%n
>
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Finance - Get real-time stock quotes
>http://finance.yahoo.com
>
>--
>To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>

--
Ceki


--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>


Mime
View raw message