You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Pedro Alves <PA...@sibs.mailcom.pt> on 2001/01/16 19:50:01 UTC
Applet can't start
Hi,
I've been using log4j 1.0.4 for a few days and I'm very satisfied with it,
when using it in applications.
Meanwhile, I've tried to use log4j in an applet, using BasicConfigurator
(since the applet is not signed and therefore can't access the local file
system), but it throws an Exception, because it tries to read a system
property for which the browser doesn't grant access - "log4j.configDebug".
Now, I don't want to sign the applet only because it tries to access a
system property that I didn't even define. :-)
I think it would be nice to have some default procedure to these cases, for
example using the default properties file when a security exception is
caught.
Just my $0.02,
pedro.
Re: Applet can't start
Posted by Ceki Gulcu <cg...@urbanet.ch>.
Pedro,
Wait a minute! Is the exception is caught or thrown? According to the code
of static initializer of BasicConfigurator the exception should be caught
and reported with a full stack trace. Maybe that's the cause of the
confusion. Ceki
At 18:50 16.01.2001 +0000, you wrote:
>Hi,
>
>I've been using log4j 1.0.4 for a few days and I'm very satisfied with it,
>when using it in applications.
>Meanwhile, I've tried to use log4j in an applet, using BasicConfigurator
>(since the applet is not signed and therefore can't access the local file
>system), but it throws an Exception, because it tries to read a system
>property for which the browser doesn't grant access - "log4j.configDebug".
>Now, I don't want to sign the applet only because it tries to access a
>system property that I didn't even define. :-)
>I think it would be nice to have some default procedure to these cases, for
>example using the default properties file when a security exception is
>caught.
>
>Just my $0.02,
>pedro.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: log4j-user-help@jakarta.apache.org
---
Freedom as in the capacity to exercise choice.